mercurial/commands.py
changeset 41129 074c72a38423
parent 41121 5967995c32bb
parent 41020 fbd5e2f0bba7
child 41174 08dd462ea782
--- a/mercurial/commands.py	Mon Jan 07 15:25:41 2019 -0800
+++ b/mercurial/commands.py	Mon Jan 07 19:03:23 2019 -0500
@@ -6098,7 +6098,7 @@
         brev = rev
         if rev:
             repo = scmutil.unhidehashlikerevs(repo, [rev], 'nowarn')
-        ctx = scmutil.revsingle(repo, rev, rev)
+        ctx = scmutil.revsingle(repo, rev, default=None)
         rev = ctx.rev()
         hidden = ctx.hidden()
         overrides = {('ui', 'forcemerge'): opts.get(r'tool', '')}