mercurial/commands.py
changeset 35519 31fe397f2bda
parent 35518 02fdb8c018aa
child 35534 b6ce3568771d
--- a/mercurial/commands.py	Wed Dec 27 00:14:00 2017 +0530
+++ b/mercurial/commands.py	Wed Dec 27 00:24:53 2017 +0530
@@ -4588,7 +4588,10 @@
         raise error.Abort(_('uncommitted merge with no revision specified'),
                          hint=_("use 'hg update' or see 'hg help revert'"))
 
-    ctx = scmutil.revsingle(repo, opts.get('rev'))
+    rev = opts.get('rev')
+    if rev:
+        repo = scmutil.unhidehashlikerevs(repo, [rev], 'nowarn')
+    ctx = scmutil.revsingle(repo, rev)
 
     if (not (pats or opts.get('include') or opts.get('exclude') or
              opts.get('all') or opts.get('interactive'))):