From c9dc569a94e568de19a39c08d69cf4ea9bd159dd Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 28 Aug 2019 12:32:43 +0900 Subject: Ensure the last and changed revisions as Integers --- tool/lib/vcs.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tool/lib/vcs.rb') 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[/([^<>]*)/, 1] branch = info_xml[%r'\^/(?:branches/|tags/)?([^<>]+)', 1] - [last, changed, modified, branch] + [Integer(last), Integer(changed), modified, branch] end def self.search_root(path) -- cgit v1.2.3