# HG changeset patch # User Christian Ebert # Date 1202195090 -3600 # Node ID e99ace93ded024983f67f602b5c38c576e5015bf # Parent d935536a6abc6699e03d11eb3d6d2acf8de71e98 Disable expansion in mq directory; add test for qcommit There might still be problems with qsave copied patch queues. diff -r d935536a6abc -r e99ace93ded0 hgkw/keyword.py --- a/hgkw/keyword.py Fri Feb 01 00:48:37 2008 +0100 +++ b/hgkw/keyword.py Tue Feb 05 08:04:50 2008 +0100 @@ -394,7 +394,7 @@ def reposetup(ui, repo): - if not repo.local(): + if not repo.local() or repo.root.endswith('/.hg/patches'): return inc, exc = [], ['.hgtags', '.hg_archival.txt'] diff -r d935536a6abc -r e99ace93ded0 tests/test-keyword --- a/tests/test-keyword Fri Feb 01 00:48:37 2008 +0100 +++ b/tests/test-keyword Tue Feb 05 08:04:50 2008 +0100 @@ -90,8 +90,12 @@ echo % compare changenodes in a c cat a c +echo % qinit -c +hg qinit -c echo % qimport hg qimport -r tip -n mqtest.diff +echo % qcommit +hg qcommit -mqtest echo % keywords should not be expanded in patch cat .hg/patches/mqtest.diff echo % qpop diff -r d935536a6abc -r e99ace93ded0 tests/test-keyword.out --- a/tests/test-keyword.out Fri Feb 01 00:48:37 2008 +0100 +++ b/tests/test-keyword.out Tue Feb 05 08:04:50 2008 +0100 @@ -163,7 +163,9 @@ xxx $ $Id: c,v ba4426d1938e 1970/01/01 00:00:01 user $ tests for different changenodes +% qinit -c % qimport +% qcommit % keywords should not be expanded in patch # HG changeset patch # User User Name