Mercurial > hg
diff tests/test-keyword @ 6051:1038b1458d7a
keyword: safeguards against erroneous behaviour or aborts
prevent issues due to global [keyword] filename patterns:
- add email to nokwcommands
- protect everything under .hg from expansion
(tested with qcommit)
- exclude everything starting with .hg* just in case
prevent abort when pulling from bundlerepo:
- do not set up kwrepo for bundlerepo
expansion inside a bundle is nonsense
bundlerepo issue spotted and test case provided by pmezard.
author | Christian Ebert <blacktrash@gmx.net> |
---|---|
date | Wed, 06 Feb 2008 23:14:33 +0100 |
parents | e181665c1c79 |
children | de08788511d7 |
line wrap: on
line diff
--- a/tests/test-keyword Thu Feb 07 15:56:20 2008 +0100 +++ b/tests/test-keyword Wed Feb 06 23:14:33 2008 +0100 @@ -24,8 +24,8 @@ hg --quiet kwdemo "Branch = {branches}" -hg init Test -cd Test +hg init Test-bndl +cd Test-bndl echo % kwshrink should exit silently in empty/invalid repo hg kwshrink @@ -69,6 +69,16 @@ mv $HGRCPATH.nohook $HGRCPATH rm hooktest +echo % bundle +hg bundle --base null ../kw.hg + +cd .. +hg init Test +cd Test + +echo % pull from bundle +hg pull -u ../kw.hg + echo % touch touch a b echo % status @@ -90,8 +100,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