diff options
author | Nobuyoshi Nakada <[email protected]> | 2019-08-28 12:32:43 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2019-08-28 12:32:43 +0900 |
commit | c9dc569a94e568de19a39c08d69cf4ea9bd159dd (patch) | |
tree | 2d0ed9266ef4f7a46c8087e858debcb29a98ffaa | |
parent | 8e13da1ee83028000e5d7f9f9526379e32765a81 (diff) |
Ensure the last and changed revisions as Integers
-rw-r--r-- | tool/lib/vcs.rb | 4 |
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) |