summaryrefslogtreecommitdiff
path: root/tool/vcs.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-04-23 15:39:36 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-04-23 15:39:36 +0900
commit2fb83a0af7a49788e80c55fd324dfa8e046cd9d9 (patch)
tree6704cbcdbe4d957badd431793f1829ec6c9b1d82 /tool/vcs.rb
parent18eb9e585526881cba9752e50b2d206924714339 (diff)
Split git-svn dependent methods
Diffstat (limited to 'tool/vcs.rb')
-rw-r--r--tool/vcs.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/vcs.rb b/tool/vcs.rb
index 6b72312..fe81df8 100644
--- a/tool/vcs.rb
+++ b/tool/vcs.rb
@@ -484,7 +484,9 @@ class VCS
end
end
end
+ end
+ class GITSVN < GIT
def last_changed_revision
rev = cmd_read(%W"#{COMMAND} svn info"+[STDERR=>[:child, :out]])[/^Last Changed Rev: (\d+)/, 1]
com = cmd_read(%W"#{COMMAND} svn find-rev r#{rev}").chomp