Repository navigation
Home
{Website}[http://rubyworks.github.com/vclog] | {Source Code}[http://github.com/rubyworks/vclog] | {Report Issue}[http://github.com/rubyworks/vclog/issues] | {Mailing List}[http://googlegroups.com/group/rubyworks-mailinglist]
{}[http://travis-ci.org/rubyworks/vclog]
VCLog is a versatile cross-VCS/SCM changelog generator. It currently supports Git, Hg and (limited) Subversion.
== SYNOPSIS
=== Bumping Versions
VCLog can also be used to intelligently bump versions. To see the current tag version:
$ vclog-version 1.1.0
To see the next reasonable version based on current changes:
$ vclog-bump 1.2.0
VCLog can determine the appropriate version based on commit level. Any commit with a level greater than 1 will bump the major number, while any commit with a level of 0 or 1 will bump the minor number. All lower level only bump the patch level.
=== Writing Heuristics
You can configure custom log heuristics for your project. VCLog uses
the {confection gem}[http://rubyworks.github.com/confection] to
handle configuration, and will look for a .confile or Confile in
which to find a vclog section.
vclog do ... end
Within this block we can define rules via the #on method.
on /updated? (README|VERSION|MANIFEST)/ do |commit|
commit.label = "Adminstrative Changes"
commit.level = -3
end
To make things easier we can setup commit types. Types make it easier to categorize commits, assigning them labels and levels base on the type name. Use #type in the rules to specify the level and label of a commit type.
type :admin, -2, "Administrave Changes"
on /updated? (README|VERSION|MANIFEST)/ do |commit|
commit.type = :admin
end
These rules can also "massage" the commit message.
on /\Aadmin:/ do |commit, matchdata|
commit.type = :admin
commit.message = matchdate.post_match
end
Lastly, we can customize the colorization of the certain formats via #colors method.
colors :blue, :cyan, :green, :yellow, :red
== SUBVERSION ISSUES
Because Subversion is a centralized version control system, it contacts the server every time 'svn log' is run. For this reason, having vclog generate a release history is likely to fail since it must run 'svn log' for each tag. Any repository with more than a few tags may be denied access by the server for making too many rapid requests. I have no idea how to remedy this issue. If you have any ideas please let me know.
== RELEASE NOTES
Please see HISTORY file.
== COPYRIGHTS
Copyright (c) 2008 Rubyworks
VCLog is distributable in accordance with the terms of the FreeBSD license.
See COPYING.rdoc for details.