mercurial/commands.py
changeset 35538 b6ce3568771d
parent 35523 31fe397f2bda
child 35539 ffd7b7cd309b
--- a/mercurial/commands.py	Fri Jan 05 19:30:30 2018 +0800
+++ b/mercurial/commands.py	Fri Jan 05 19:23:30 2018 +0530
@@ -293,7 +293,10 @@
         # to mimic the behavior of Mercurial before version 1.5
         opts['file'] = True
 
-    ctx = scmutil.revsingle(repo, opts.get('rev'))
+    rev = opts.get('rev')
+    if rev:
+        repo = scmutil.unhidehashlikerevs(repo, [rev], 'nowarn')
+    ctx = scmutil.revsingle(repo, rev)
 
     rootfm = ui.formatter('annotate', opts)
     if ui.quiet: