https://svn.lrde.epita.fr/svn/lrdetools/trunk
Index: ChangeLog from Nicolas Pouillard ertai@lrde.epita.fr
Minor fixes.
* vcs/lib/vcs/changelog.rb: Fix a bug, increment the revision number. * vcs/bin/vcs: Fix a bug, set locales to C. * vcs/lrdetools.rb: Update to the new common_commit.
bin/vcs | 1 + lib/vcs/changelog.rb | 2 +- lrdetools.rb | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-)
Index: vcs/bin/vcs --- vcs/bin/vcs (revision 221) +++ vcs/bin/vcs (working copy) @@ -115,6 +115,7 @@
end
+ENV['LC_ALL'] = 'C' if ENV.has_key? 'FULLNAME' FULLNAME = ENV['FULLNAME'] else Index: vcs/lib/vcs/changelog.rb --- vcs/lib/vcs/changelog.rb (revision 221) +++ vcs/lib/vcs/changelog.rb (working copy) @@ -66,7 +66,7 @@ ls = [] YAML.each_document(cl.read) { |x| (ls.size == 2)? break : ls << x } header, input = ls - rev = revision.read.to_i + rev = revision.read.to_i + 1 header.merge!('rev' => rev, 'revision' => rev) header['title'].sub!(/.$/, '') b = getBinding(header) Index: vcs/lrdetools.rb --- vcs/lrdetools.rb (revision 221) +++ vcs/lrdetools.rb (working copy) @@ -1,9 +1,9 @@ class Vcs
- def lrdetools_commit! ( s, *args ) + def lrdetools_commit! ( *args )
- common_commit!(*args) do |rev| - news!(:groups => ['lrde.proj'], :subject => "LT #{rev}: #{s}") + common_commit!("[LrdeTools] <%= rev %>: <%= title %>", *args) do |subject| + mail! :to => ['projects@lrde.epita.fr'], :subject => subject end
end