diff -r b6ce3568771d -r ffd7b7cd309b mercurial/commands.py --- 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()