Commit 4096868a authored by Pulkit Goyal's avatar Pulkit Goyal
Browse files

annotate: add support to specify hidden revs if directaccess config is set

Differential Revision:
parent 8b958d21b19d
......@@ -293,7 +293,10 @@ def annotate(ui, repo, *pats, **opts):
# 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:
......@@ -138,6 +138,11 @@ Testing with hash
$ hg identify -r 28ad74
`hg annotate`
$ hg annotate -r 28ad74 a
0: foo
`hg status`
$ hg status --change 28ad74
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment