diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-09-29 17:31:39 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-09-30 09:21:02 +0900 |
commit | 58b3a535cc899760aa69055fa54f4fcb85570dcd (patch) | |
tree | 192e5b68720de09439e6ab2314d0cbbaeded4e4d /tool/lib/vcs.rb | |
parent | aa490f9442c32cd0e1e449ac817f410bd5924c8b (diff) | |
download | ruby-58b3a535cc899760aa69055fa54f4fcb85570dcd.tar.gz |
Pull up `VCS.short_revision` from `VCS::SVN`
Diffstat (limited to 'tool/lib/vcs.rb')
-rw-r--r-- | tool/lib/vcs.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 87ed15f7d1..a08d40742a 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -104,6 +104,10 @@ class VCS ] end + def self.short_revision(rev) + rev + end + attr_reader :srcdir def initialize(path) @@ -251,10 +255,6 @@ class VCS "r#{rev}" end - def self.short_revision(rev) - rev - end - def _get_revisions(path, srcdir = nil) if srcdir and self.class.local_path?(path) path = File.join(srcdir, path) |