summaryrefslogtreecommitdiff
path: root/tool/vcs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/vcs.rb')
-rw-r--r--tool/vcs.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/tool/vcs.rb b/tool/vcs.rb
index d54094a..ec75840 100644
--- a/tool/vcs.rb
+++ b/tool/vcs.rb
@@ -317,6 +317,10 @@ class VCS
end
end
end
+
+ def commit
+ system(*%W"#{COMMAND} commit")
+ end
end
class GIT < self
@@ -456,5 +460,14 @@ class VCS
end
end
end
+
+ def commit
+ rev = cmd_read(%W"#{COMMAND} svn info"+[STDERR=>[:child, :out]])[/^Last Changed Rev: (\d+)/, 1]
+ ret = system(COMMAND, "svn", "dcommit")
+ if ret and rev
+ cmd_read(%W"#{COMMAND} svn reset -r#{rev}")
+ end
+ ret
+ end
end
end