Mercurial > hg
changeset 35534:b6ce3568771d
annotate: add support to specify hidden revs if directaccess config is set
Differential Revision: https://phab.mercurial-scm.org/D1811
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 05 Jan 2018 19:23:30 +0530 |
parents | 8b958d21b19d |
children | ffd7b7cd309b |
files | mercurial/commands.py tests/test-directaccess.t |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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: