Mercurial > hg
comparison tests/test-mq-symlinks.t @ 16350:4f795f5fbb0b stable
tests: make tests work if directory contains special characters
With this quoting tests will work e.g. in "/tmp/foo bar/mercurial/".
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 03 Apr 2012 19:06:35 +0200 |
parents | ea3d548132cc |
children | 5010448197bc |
comparison
equal
deleted
inserted
replaced
16349:425f1fbcfb94 | 16350:4f795f5fbb0b |
---|---|
9 $ echo aaa > a | 9 $ echo aaa > a |
10 $ echo bbb > b | 10 $ echo bbb > b |
11 $ echo ccc > c | 11 $ echo ccc > c |
12 $ hg add a b c | 12 $ hg add a b c |
13 $ hg qrefresh | 13 $ hg qrefresh |
14 $ $TESTDIR/readlink.py a | 14 $ "$TESTDIR/readlink.py" a |
15 a -> a not a symlink | 15 a -> a not a symlink |
16 | 16 |
17 | 17 |
18 test replacing a file with a symlink | 18 test replacing a file with a symlink |
19 | 19 |
20 $ hg qnew symlink.patch | 20 $ hg qnew symlink.patch |
21 $ rm a | 21 $ rm a |
22 $ ln -s b a | 22 $ ln -s b a |
23 $ hg qrefresh --git | 23 $ hg qrefresh --git |
24 $ $TESTDIR/readlink.py a | 24 $ "$TESTDIR/readlink.py" a |
25 a -> b | 25 a -> b |
26 | 26 |
27 $ hg qpop | 27 $ hg qpop |
28 popping symlink.patch | 28 popping symlink.patch |
29 now at: base.patch | 29 now at: base.patch |
30 $ hg qpush | 30 $ hg qpush |
31 applying symlink.patch | 31 applying symlink.patch |
32 now at: symlink.patch | 32 now at: symlink.patch |
33 $ $TESTDIR/readlink.py a | 33 $ "$TESTDIR/readlink.py" a |
34 a -> b | 34 a -> b |
35 | 35 |
36 | 36 |
37 test updating a symlink | 37 test updating a symlink |
38 | 38 |
39 $ rm a | 39 $ rm a |
40 $ ln -s c a | 40 $ ln -s c a |
41 $ hg qnew --git -f updatelink | 41 $ hg qnew --git -f updatelink |
42 $ $TESTDIR/readlink.py a | 42 $ "$TESTDIR/readlink.py" a |
43 a -> c | 43 a -> c |
44 $ hg qpop | 44 $ hg qpop |
45 popping updatelink | 45 popping updatelink |
46 now at: symlink.patch | 46 now at: symlink.patch |
47 $ hg qpush --debug | 47 $ hg qpush --debug |
48 applying updatelink | 48 applying updatelink |
49 patching file a | 49 patching file a |
50 a | 50 a |
51 now at: updatelink | 51 now at: updatelink |
52 $ $TESTDIR/readlink.py a | 52 $ "$TESTDIR/readlink.py" a |
53 a -> c | 53 a -> c |
54 $ hg st | 54 $ hg st |
55 | 55 |
56 | 56 |
57 test replacing a symlink with a file | 57 test replacing a symlink with a file |
102 popping movelink | 102 popping movelink |
103 now at: link | 103 now at: link |
104 $ hg qpush | 104 $ hg qpush |
105 applying movelink | 105 applying movelink |
106 now at: movelink | 106 now at: movelink |
107 $ $TESTDIR/readlink.py linkb | 107 $ "$TESTDIR/readlink.py" linkb |
108 linkb -> linkb | 108 linkb -> linkb |