mercurial/commands.py
changeset 35535 ffd7b7cd309b
parent 35534 b6ce3568771d
child 35543 a7f7eff4ec08
--- a/mercurial/commands.py	Fri Jan 05 19:23:30 2018 +0530
+++ b/mercurial/commands.py	Fri Jan 05 19:30:37 2018 +0530
@@ -467,7 +467,10 @@
     '''
 
     opts = pycompat.byteskwargs(opts)
-    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 ctx:
         raise error.Abort(_('no working directory: please specify a revision'))
     node = ctx.node()