summaryrefslogtreecommitdiff
path: root/tool/lib/vcs.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-28 12:32:43 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-28 12:32:43 +0900
commitc9dc569a94e568de19a39c08d69cf4ea9bd159dd (patch)
tree2d0ed9266ef4f7a46c8087e858debcb29a98ffaa /tool/lib/vcs.rb
parent8e13da1ee83028000e5d7f9f9526379e32765a81 (diff)
Ensure the last and changed revisions as Integers
Diffstat (limited to 'tool/lib/vcs.rb')
-rw-r--r--tool/lib/vcs.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index 37ff8f3985..45cd91078f 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -266,7 +266,7 @@ class VCS
end
def self.short_revision(rev)
- Integer(rev)
+ rev
end
def _get_revisions(path, srcdir = nil)
@@ -281,7 +281,7 @@ class VCS
_, 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)