Mercurial > hg-stable
comparison tests/test-mq-symlinks.t @ 25472:4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
$TESTDIR is added to the path, so this is superfluous. Also,
inconsistent use of quotes means we might have broken on tests with
paths containing spaces.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 08 Jun 2015 14:44:30 -0500 |
parents | a387b0390082 |
children | c2380b448265 |
comparison
equal
deleted
inserted
replaced
25470:378a8e700e02 | 25472:4d2b9b304ad0 |
---|---|
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 $ 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 $ 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 $ 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 $ 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 |
50 committing files: | 50 committing files: |
51 a | 51 a |
52 committing manifest | 52 committing manifest |
53 committing changelog | 53 committing changelog |
54 now at: updatelink | 54 now at: updatelink |
55 $ "$TESTDIR/readlink.py" a | 55 $ readlink.py a |
56 a -> c | 56 a -> c |
57 $ hg st | 57 $ hg st |
58 | 58 |
59 | 59 |
60 test replacing a symlink with a file | 60 test replacing a symlink with a file |
105 popping movelink | 105 popping movelink |
106 now at: link | 106 now at: link |
107 $ hg qpush | 107 $ hg qpush |
108 applying movelink | 108 applying movelink |
109 now at: movelink | 109 now at: movelink |
110 $ "$TESTDIR/readlink.py" linkb | 110 $ readlink.py linkb |
111 linkb -> linkb | 111 linkb -> linkb |