Mercurial > hg > soundsoftware-site
diff lib/redmine/scm/adapters/mercurial/redminehelper.py @ 1517:dffacf8a6908 redmine-2.5
Update to Redmine SVN revision 13367 on 2.5-stable branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:29:00 +0100 |
parents | e248c7af89ec |
children |
line wrap: on
line diff
--- a/lib/redmine/scm/adapters/mercurial/redminehelper.py Tue Sep 09 09:28:31 2014 +0100 +++ b/lib/redmine/scm/adapters/mercurial/redminehelper.py Tue Sep 09 09:29:00 2014 +0100 @@ -16,7 +16,7 @@ :file path: urlencoded, raw string :tag name: utf-8 :branch name: utf-8 -:node: 12-digits (short) hex string +:node: hex string Output example of rhsummary:: @@ -60,7 +60,7 @@ return repo.changelog.count() - 1 tipctx = repo.changectx(tiprev()) ui.write('<tip revision="%d" node="%s"/>\n' - % (tipctx.rev(), _x(node.short(tipctx.node())))) + % (tipctx.rev(), _x(node.hex(tipctx.node())))) _SPECIAL_TAGS = ('tip',) @@ -74,7 +74,7 @@ except error.LookupError: continue ui.write('<tag revision="%d" node="%s" name="%s"/>\n' - % (r, _x(node.short(n)), _x(t))) + % (r, _x(node.hex(n)), _x(t))) def _branches(ui, repo): # see mercurial/commands.py:branches @@ -94,7 +94,7 @@ for t, n, r in sorted(iterbranches(), key=lambda e: e[2], reverse=True): if repo.lookup(r) in branchheads(t): ui.write('<branch revision="%d" node="%s" name="%s"/>\n' - % (r, _x(node.short(n)), _x(t))) + % (r, _x(node.hex(n)), _x(t))) def _manifest(ui, repo, path, rev): ctx = repo.changectx(rev) @@ -119,7 +119,7 @@ tm, tzoffset = fctx.date() ui.write('<file name="%s" revision="%d" node="%s" ' 'time="%d" size="%d"/>\n' - % (_u(name), fctx.rev(), _x(node.short(fctx.node())), + % (_u(name), fctx.rev(), _x(node.hex(fctx.node())), tm, fctx.size(), )) ui.write('</manifest>\n')