
Index: ChangeLog from Nicolas Pouillard <ertai@lrde.epita.fr> * vcs/src/mycommit.rb (lrdetools_commit): Move to ... * misc/ltci.rb: ... here. * vcs/bin/vcs: Search the file to load, to execute the given method. Index: misc/ltci.rb --- misc/ltci.rb (revision 0) +++ misc/ltci.rb (revision 0) @@ -0,0 +1,16 @@ +class Vcs + + def lrdetools_commit! ( s, *args ) + + rev = common_commit!(*args) + + s = "LT #{rev}: #{s}" + + news(:groups => ['lrde.proj'], :subject => s) + + @@message.delete + + end + alias_command :ltci, :lrdetools_commit + +end # class Vcs Index: vcs/src/mycommit.rb --- vcs/src/mycommit.rb (revision 118) +++ vcs/src/mycommit.rb (working copy) @@ -42,19 +42,6 @@ protected :common_commit! - def lrdetools_commit! ( s, *args ) - - rev = common_commit!(*args) - - s = "LT #{rev}: #{s}" - - news(:groups => ['lrde.proj'], :subject => s) - - @@message.delete - - end - alias_command :ltci, :lrdetools_commit - def test_commit! ( s, *args ) rev = common_commit!(*args) Index: vcs/bin/vcs --- vcs/bin/vcs (revision 118) +++ vcs/bin/vcs (working copy) @@ -65,6 +65,10 @@ else meth = ARGV.shift.sub(/([^!])$/, '\1!') end + + Pathname.glob("*/#{meth.to_s.sub(/!$/, '')}.rb") do |file| + require file if file.exist? + end begin rcs.send(meth, *ARGV)