##// END OF EJS Templates
annotate: add support to specify hidden revs if directaccess config is set...
Pulkit Goyal -
r35552:b6ce3568 default
parent child Browse files
Show More
@@ -293,7 +293,10 b' def annotate(ui, repo, *pats, **opts):'
293 # to mimic the behavior of Mercurial before version 1.5
293 # to mimic the behavior of Mercurial before version 1.5
294 opts['file'] = True
294 opts['file'] = True
295
295
296 ctx = scmutil.revsingle(repo, opts.get('rev'))
296 rev = opts.get('rev')
297 if rev:
298 repo = scmutil.unhidehashlikerevs(repo, [rev], 'nowarn')
299 ctx = scmutil.revsingle(repo, rev)
297
300
298 rootfm = ui.formatter('annotate', opts)
301 rootfm = ui.formatter('annotate', opts)
299 if ui.quiet:
302 if ui.quiet:
@@ -138,6 +138,11 b' Testing with hash'
138 $ hg identify -r 28ad74
138 $ hg identify -r 28ad74
139 28ad74487de9
139 28ad74487de9
140
140
141 `hg annotate`
142
143 $ hg annotate -r 28ad74 a
144 0: foo
145
141 `hg status`
146 `hg status`
142
147
143 $ hg status --change 28ad74
148 $ hg status --change 28ad74
General Comments 0
You need to be logged in to leave comments. Login now