[前][次][番号順一覧][スレッド一覧]

ruby-changes:73803

From: Nobuyoshi <ko1@a...>
Date: Fri, 30 Sep 2022 12:49:32 +0900 (JST)
Subject: [ruby-changes:73803] 58b3a535cc (master): Pull up `VCS.short_revision` from `VCS::SVN`

https://git.ruby-lang.org/ruby.git/commit/?id=58b3a535cc

From 58b3a535cc899760aa69055fa54f4fcb85570dcd Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 29 Sep 2022 17:31:39 +0900
Subject: Pull up `VCS.short_revision` from `VCS::SVN`

---
 tool/lib/vcs.rb | 8 ++++----
 1 file 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 https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L104
     ]
   end
 
+  def self.short_revision(rev)
+    rev
+  end
+
   attr_reader :srcdir
 
   def initialize(path)
@@ -251,10 +255,6 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L255
       "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)
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]