diff --git a/hgext/keyword.py b/hgext/keyword.py --- a/hgext/keyword.py +++ b/hgext/keyword.py @@ -92,8 +92,7 @@ nokwcommands = ('add addremove annotate # hg commands that trigger expansion only when writing to working dir, # not when reading filelog, and unexpand when reading from working dir -restricted = ('merge record resolve qfold qimport qnew qpush qrefresh qrecord' - ' transplant') +restricted = 'merge record qrecord resolve transplant' # provide cvs-like UTC date filter utcdate = lambda x: util.datestr((x[0], 0), '%Y/%m/%d %H:%M:%S') diff --git a/tests/test-keyword b/tests/test-keyword --- a/tests/test-keyword +++ b/tests/test-keyword @@ -21,7 +21,7 @@ hg --quiet kwdemo "Branch = {branches}" cat <> $HGRCPATH [keyword] -* = +** = b = ignore [hooks] commit= @@ -153,6 +153,10 @@ echo % qgoto - should imply qpush hg qgoto mqtest.diff echo % cat cat c +echo % hg cat +hg cat c +echo % keyword should not be expanded in filelog +hg --config 'extensions.keyword=!' cat c echo % qpop and move on hg qpop diff --git a/tests/test-keyword.out b/tests/test-keyword.out --- a/tests/test-keyword.out +++ b/tests/test-keyword.out @@ -158,6 +158,12 @@ now at: mqtest.diff % cat $Id: c,v 40a904bbbe4c 1970/01/01 00:00:01 user $ tests for different changenodes +% hg cat +$Id: c,v 40a904bbbe4c 1970/01/01 00:00:01 user $ +tests for different changenodes +% keyword should not be expanded in filelog +$Id$ +tests for different changenodes % qpop and move on popping mqtest.diff patch queue now empty @@ -208,7 +214,7 @@ 0 files updated, 0 files merged, 0 files [extensions] keyword = [keyword] -* = +** = b = ignore demo.txt = [keywordmaps]