summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-26 12:44:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-26 12:44:12 +0000
commit11f69dccf3d9dd5e70f0f34546aab10b1f733ae1 (patch)
treef3ac622eedaf7556ac307b59c49d312a9f73b885 /tool
parentae91976d561e3855753b936fa9ac6048f64e30bd (diff)
vcs.rb: commit
* tool/vcs.rb (commit): do commit, reset svn revision to sync git mirror. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rw-r--r--tool/vcs.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/tool/vcs.rb b/tool/vcs.rb
index d54094a409..ec75840746 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