Mercurial > hg
changeset 16889:0074c2babb13
test-import: enable for Windows
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Fri, 08 Jun 2012 15:11:05 +0200 |
parents | 040b8c08b6c0 |
children | 4d95878712ad |
files | tests/test-import.t |
diffstat | 1 files changed, 38 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-import.t Fri Jun 08 15:11:05 2012 +0200 +++ b/tests/test-import.t Fri Jun 08 15:11:05 2012 +0200 @@ -1,5 +1,3 @@ - $ "$TESTDIR/hghave" unix-permissions || exit 80 - $ hg init a $ mkdir a/d1 $ mkdir a/d1/d2 @@ -631,7 +629,7 @@ > rename to bar > EOF applying patch from stdin - abort: path contains illegal component: ../outside/foo + abort: path contains illegal component: ../outside/foo (glob) [255] $ cd .. @@ -906,12 +904,16 @@ > new mode 100755 > EOF applying patch from stdin + +#if execbit + $ hg sum parent: 1:d59915696727 tip help management of empty pkg and lib directories in perforce branch: default commit: (clean) update: (current) + $ hg diff --git -c tip diff --git a/lib/place-holder b/lib/place-holder new file mode 100644 @@ -930,6 +932,39 @@ diff --git a/src/cmd/gc/mksys.bash b/src/cmd/gc/mksys.bash old mode 100644 new mode 100755 + +#else + + $ hg sum + parent: 1:28f089cc9ccc tip + help management of empty pkg and lib directories in perforce + branch: default + commit: (clean) + update: (current) + + $ hg diff --git -c tip + diff --git a/lib/place-holder b/lib/place-holder + new file mode 100644 + --- /dev/null + +++ b/lib/place-holder + @@ -0,0 +1,2 @@ + +perforce does not maintain empty directories. + +this file helps. + diff --git a/pkg/place-holder b/pkg/place-holder + new file mode 100644 + --- /dev/null + +++ b/pkg/place-holder + @@ -0,0 +1,2 @@ + +perforce does not maintain empty directories. + +this file helps. + +/* The mode change for mksys.bash is missing here, because on platforms */ +/* that don't support execbits, mode changes in patches are ignored when */ +/* they are imported. This is obviously also the reason for why the hash */ +/* in the created changeset is different to the one you see above the */ +/* #else clause */ + +#endif $ cd ..