# HG changeset patch # User Yuya Nishihara # Date 1426398326 -32400 # Node ID 9bbab9decd7120c83d565ae75199696b86af4a92 # Parent 5214cbdc37e56dabd926c8206cbd7ada36ee1613 tag: do not pass binary nullid to scmutil.revsingle() Future patches will remove the old-style parser that happen to accept a binary nodeid. A binary nodeid shouldn't be passed to scmutil.revrange() because it is ambiguous. For example, bin('20' * 19 + '30') is valid binary nodeid, but it can also be parsed as a revset expression, '0'. diff -r 5214cbdc37e5 -r 9bbab9decd71 mercurial/commands.py --- a/mercurial/commands.py Sat Jul 18 23:30:17 2015 +0900 +++ b/mercurial/commands.py Sun Mar 15 14:45:26 2015 +0900 @@ -6248,7 +6248,7 @@ raise util.Abort(_("tag '%s' is not a global tag") % n) else: raise util.Abort(_("tag '%s' is not a local tag") % n) - rev_ = nullid + rev_ = 'null' if not message: # we don't translate commit messages message = 'Removed tag %s' % ', '.join(names)