ruby-changes:57354
From: Nobuyoshi <ko1@a...>
Date: Wed, 28 Aug 2019 13:23:27 +0900 (JST)
Subject: [ruby-changes:57354] Nobuyoshi Nakada: c9dc569a94 (master): Ensure the last and changed revisions as Integers
https://git.ruby-lang.org/ruby.git/commit/?id=c9dc569a94 From c9dc569a94e568de19a39c08d69cf4ea9bd159dd Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 28 Aug 2019 12:32:43 +0900 Subject: Ensure the last and changed revisions as Integers diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 37ff8f3..45cd910 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -266,7 +266,7 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L266 end def self.short_revision(rev) - Integer(rev) + rev end def _get_revisions(path, srcdir = nil) @@ -281,7 +281,7 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L281 _, last, _, changed, _ = info_xml.split(/revision="(\d+)"/) modified = info_xml[/<date>([^<>]*)/, 1] branch = info_xml[%r'<relative-url>\^/(?:branches/|tags/)?([^<>]+)', 1] - [last, changed, modified, branch] + [Integer(last), Integer(changed), modified, branch] end def self.search_root(path) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/