Mercurial > public > mercurial-scm > hg-stable
diff hgext/keyword.py @ 33077:0afdc1a4f925
keyword: make comparison webcommand suppress keyword expansion
Before this patch, diff in "comparison" webcommand doesn't suppress
keyword expansion as same as diff output of other webcommands.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Mon, 26 Jun 2017 03:40:12 +0900 |
parents | 9062458febca |
children | 5a51db8bf41b |
line wrap: on
line diff
--- a/hgext/keyword.py Mon Jun 26 03:40:06 2017 +0900 +++ b/hgext/keyword.py Mon Jun 26 03:40:12 2017 +0900 @@ -121,6 +121,9 @@ nokwcommands = ('add addremove annotate bundle export grep incoming init log' ' outgoing push tip verify convert email glog') +# webcommands that do not act on keywords +nokwwebcommands = ('annotate changeset rev filediff diff comparison') + # hg commands that trigger expansion only when writing to working dir, # not when reading filelog, and unexpand when reading from working dir restricted = ('merge kwexpand kwshrink record qrecord resolve transplant' @@ -763,6 +766,6 @@ extensions.wrapfunction(cmdutil, 'amend', kw_amend) extensions.wrapfunction(cmdutil, 'copy', kw_copy) extensions.wrapfunction(cmdutil, 'dorecord', kw_dorecord) - for c in 'annotate changeset rev filediff diff'.split(): + for c in nokwwebcommands.split(): extensions.wrapfunction(webcommands, c, kwweb_skip) repo.__class__ = kwrepo