Mercurial > hg
annotate tests/test-symlinks.t @ 48343:eb428010aad2
rhg: Also parse flags in the manifest parser
Differential Revision: https://phab.mercurial-scm.org/D11772
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Tue, 23 Nov 2021 19:39:51 +0100 |
parents | b7fde9237c92 |
children | d5a91701f7dc |
rev | line source |
---|---|
22046
7a9cbb315d84
tests: replace exit 80 with #require
Matt Mackall <mpm@selenic.com>
parents:
19157
diff
changeset
|
1 #require symlink |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
2 |
48068
bf8837e3d7ce
dirstate: Remove the flat Rust DirstateMap implementation
Simon Sapin <simon.sapin@octobus.net>
parents:
47281
diff
changeset
|
3 #testcases dirstate-v1 dirstate-v2 |
47129
93eb6c8035a9
dirstate-tree: Add a dirstate-v1-tree variant of some tests
Simon Sapin <simon.sapin@octobus.net>
parents:
45846
diff
changeset
|
4 |
47281
6763913fa175
dirstate-v2: Add a variant of some tests, that uses the new format
Simon Sapin <simon.sapin@octobus.net>
parents:
47129
diff
changeset
|
5 #if dirstate-v2 |
48235
5c567aca080d
dirstate-v2: add an option to prevent unintentional slow dirstate-v2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48223
diff
changeset
|
6 $ cat >> $HGRCPATH << EOF |
5c567aca080d
dirstate-v2: add an option to prevent unintentional slow dirstate-v2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48223
diff
changeset
|
7 > [format] |
48295
bf11ff22a9af
dirstate-v2: freeze the on-disk format
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48235
diff
changeset
|
8 > exp-rc-dirstate-v2=1 |
48235
5c567aca080d
dirstate-v2: add an option to prevent unintentional slow dirstate-v2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48223
diff
changeset
|
9 > [storage] |
5c567aca080d
dirstate-v2: add an option to prevent unintentional slow dirstate-v2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48223
diff
changeset
|
10 > dirstate-v2.slow-path=allow |
5c567aca080d
dirstate-v2: add an option to prevent unintentional slow dirstate-v2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48223
diff
changeset
|
11 > EOF |
47281
6763913fa175
dirstate-v2: Add a variant of some tests, that uses the new format
Simon Sapin <simon.sapin@octobus.net>
parents:
47129
diff
changeset
|
12 #endif |
6763913fa175
dirstate-v2: Add a variant of some tests, that uses the new format
Simon Sapin <simon.sapin@octobus.net>
parents:
47129
diff
changeset
|
13 |
48335
b7fde9237c92
rhg: Enable `rhg status` in most tests
Simon Sapin <simon.sapin@octobus.net>
parents:
48295
diff
changeset
|
14 TODO: fix rhg bugs that make this test fail when status is enabled |
b7fde9237c92
rhg: Enable `rhg status` in most tests
Simon Sapin <simon.sapin@octobus.net>
parents:
48295
diff
changeset
|
15 $ unset RHG_STATUS |
b7fde9237c92
rhg: Enable `rhg status` in most tests
Simon Sapin <simon.sapin@octobus.net>
parents:
48295
diff
changeset
|
16 |
b7fde9237c92
rhg: Enable `rhg status` in most tests
Simon Sapin <simon.sapin@octobus.net>
parents:
48295
diff
changeset
|
17 |
11812
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
18 == tests added in 0.7 == |
1408 | 19 |
11812
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
20 $ hg init test-symlinks-0.7; cd test-symlinks-0.7; |
23462
afa3fbbcabd3
add: use lexists so that broken symbolic links are added
John Coomes <john.coomes@oracle.com>
parents:
22046
diff
changeset
|
21 $ touch foo; ln -s foo bar; ln -s nonexistent baz |
afa3fbbcabd3
add: use lexists so that broken symbolic links are added
John Coomes <john.coomes@oracle.com>
parents:
22046
diff
changeset
|
22 |
afa3fbbcabd3
add: use lexists so that broken symbolic links are added
John Coomes <john.coomes@oracle.com>
parents:
22046
diff
changeset
|
23 import with add and addremove -- symlink walking should _not_ screwup. |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
24 |
23462
afa3fbbcabd3
add: use lexists so that broken symbolic links are added
John Coomes <john.coomes@oracle.com>
parents:
22046
diff
changeset
|
25 $ hg add |
afa3fbbcabd3
add: use lexists so that broken symbolic links are added
John Coomes <john.coomes@oracle.com>
parents:
22046
diff
changeset
|
26 adding bar |
afa3fbbcabd3
add: use lexists so that broken symbolic links are added
John Coomes <john.coomes@oracle.com>
parents:
22046
diff
changeset
|
27 adding baz |
afa3fbbcabd3
add: use lexists so that broken symbolic links are added
John Coomes <john.coomes@oracle.com>
parents:
22046
diff
changeset
|
28 adding foo |
afa3fbbcabd3
add: use lexists so that broken symbolic links are added
John Coomes <john.coomes@oracle.com>
parents:
22046
diff
changeset
|
29 $ hg forget bar baz foo |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
30 $ hg addremove |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
31 adding bar |
23462
afa3fbbcabd3
add: use lexists so that broken symbolic links are added
John Coomes <john.coomes@oracle.com>
parents:
22046
diff
changeset
|
32 adding baz |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
33 adding foo |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
34 |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
35 commit -- the symlink should _not_ appear added to dir state |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
36 |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
37 $ hg commit -m 'initial' |
1408 | 38 |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
39 $ touch bomb |
1408 | 40 |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
41 again, symlink should _not_ show up on dir state |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
42 |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
43 $ hg addremove |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
44 adding bomb |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
45 |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
46 Assert screamed here before, should go by without consequence |
1408 | 47 |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
48 $ hg commit -m 'is there a bug?' |
11812
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
49 $ cd .. |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
50 |
11812
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
51 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
52 == fifo & ignore == |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
53 |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
54 $ hg init test; cd test; |
1408 | 55 |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
56 $ mkdir dir |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
57 $ touch a.c dir/a.o dir/b.o |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
58 |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
59 test what happens if we want to trick hg |
1408 | 60 |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
61 $ hg commit -A -m 0 |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
62 adding a.c |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
63 adding dir/a.o |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
64 adding dir/b.o |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
65 $ echo "relglob:*.o" > .hgignore |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
66 $ rm a.c |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
67 $ rm dir/a.o |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
68 $ rm dir/b.o |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
69 $ mkdir dir/a.o |
17492 | 70 $ ln -s nonexistent dir/b.o |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
71 $ mkfifo a.c |
1408 | 72 |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
73 it should show a.c, dir/a.o and dir/b.o deleted |
1487
2bc6cd62a29c
fix handling of files of unsupported type in the walk code
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
1408
diff
changeset
|
74 |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
75 $ hg status |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
76 M dir/b.o |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
77 ! a.c |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
78 ! dir/a.o |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
79 ? .hgignore |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
80 $ hg status a.c |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
81 a.c: unsupported file type (type is fifo) |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
82 ! a.c |
11812
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
83 $ cd .. |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
84 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
85 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
86 == symlinks from outside the tree == |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
87 |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
88 test absolute path through symlink outside repo |
1487
2bc6cd62a29c
fix handling of files of unsupported type in the walk code
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
1408
diff
changeset
|
89 |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
90 $ p=`pwd` |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
91 $ hg init x |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
92 $ ln -s x y |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
93 $ cd x |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
94 $ touch f |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
95 $ hg add f |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
96 $ hg status "$p"/y/f |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
97 A f |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
98 |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
99 try symlink outside repo to file inside |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
100 |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
101 $ ln -s x/f ../z |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
102 |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
103 this should fail |
2115
fd77b7ee4aac
Fix issue 165: `hg status' with abs path containing a symlink-to-dir fails
Jim Meyering <list+hg@meyering.net>
parents:
1620
diff
changeset
|
104 |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
105 $ hg status ../z && { echo hg mistakenly exited with status 0; exit 1; } || : |
18450
4f9a52858512
scmutil: localize and improve 'not under root' message
Mads Kiilerich <madski@unity3d.com>
parents:
17492
diff
changeset
|
106 abort: ../z not under root '$TESTTMP/x' |
11812
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
107 $ cd .. |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
108 |
11812
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
109 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
110 == cloning symlinks == |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
111 $ hg init clone; cd clone; |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
112 |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
113 try cloning symlink in a subdir |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
114 1. commit a symlink |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
115 |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
116 $ mkdir -p a/b/c |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
117 $ cd a/b/c |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
118 $ ln -s /path/to/symlink/source demo |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
119 $ cd ../../.. |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
120 $ hg stat |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
121 ? a/b/c/demo |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
122 $ hg commit -A -m 'add symlink in a/b/c subdir' |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
123 adding a/b/c/demo |
2115
fd77b7ee4aac
Fix issue 165: `hg status' with abs path containing a symlink-to-dir fails
Jim Meyering <list+hg@meyering.net>
parents:
1620
diff
changeset
|
124 |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
125 2. clone it |
4137
26596a6b6518
Create the parent directory when checking out symlinks.
Giorgos Keramidas <keramida@ceid.upatras.gr>
parents:
3988
diff
changeset
|
126 |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
127 $ cd .. |
11812
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
128 $ hg clone clone clonedest |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
129 updating to branch default |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
130 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
131 |
11812
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
132 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
133 == symlink and git diffs == |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
134 |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
135 git symlink diff |
4137
26596a6b6518
Create the parent directory when checking out symlinks.
Giorgos Keramidas <keramida@ceid.upatras.gr>
parents:
3988
diff
changeset
|
136 |
11812
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
137 $ cd clonedest |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
138 $ hg diff --git -r null:tip |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
139 diff --git a/a/b/c/demo b/a/b/c/demo |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
140 new file mode 120000 |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
141 --- /dev/null |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
142 +++ b/a/b/c/demo |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
143 @@ -0,0 +1,1 @@ |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
144 +/path/to/symlink/source |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
145 \ No newline at end of file |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
146 $ hg export --git tip > ../sl.diff |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
147 |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
148 import git symlink diff |
5116
35d47b06d4e3
patch: add git symlink support
Brendan Cully <brendan@kublai.com>
parents:
4882
diff
changeset
|
149 |
11798
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
150 $ hg rm a/b/c/demo |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
151 $ hg commit -m'remove link' |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
152 $ hg import ../sl.diff |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
153 applying ../sl.diff |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
154 $ hg diff --git -r 1:tip |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
155 diff --git a/a/b/c/demo b/a/b/c/demo |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
156 new file mode 120000 |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
157 --- /dev/null |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
158 +++ b/a/b/c/demo |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
159 @@ -0,0 +1,1 @@ |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
160 +/path/to/symlink/source |
1ab3d8977bdf
tests: unify test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
10775
diff
changeset
|
161 \ No newline at end of file |
11812
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
162 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
163 == symlinks and addremove == |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
164 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
165 directory moved and symlinked |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
166 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
167 $ mkdir foo |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
168 $ touch foo/a |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
169 $ hg ci -Ama |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
170 adding foo/a |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
171 $ mv foo bar |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
172 $ ln -s bar foo |
18625
2cbd27f4f3c4
dirstate: walk returns None for files that have a symlink in their path
Durham Goode <durham@fb.com>
parents:
18450
diff
changeset
|
173 $ hg status |
2cbd27f4f3c4
dirstate: walk returns None for files that have a symlink in their path
Durham Goode <durham@fb.com>
parents:
18450
diff
changeset
|
174 ! foo/a |
2cbd27f4f3c4
dirstate: walk returns None for files that have a symlink in their path
Durham Goode <durham@fb.com>
parents:
18450
diff
changeset
|
175 ? bar/a |
2cbd27f4f3c4
dirstate: walk returns None for files that have a symlink in their path
Durham Goode <durham@fb.com>
parents:
18450
diff
changeset
|
176 ? foo |
11812
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
177 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
178 now addremove should remove old files |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
179 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
180 $ hg addremove |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
181 adding bar/a |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
182 adding foo |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
183 removing foo/a |
19157
113681bbef9e
manifestmerge: local unknown, remote created: don't traverse symlinks
Siddharth Agarwal <sid0@fb.com>
parents:
18625
diff
changeset
|
184 |
113681bbef9e
manifestmerge: local unknown, remote created: don't traverse symlinks
Siddharth Agarwal <sid0@fb.com>
parents:
18625
diff
changeset
|
185 commit and update back |
113681bbef9e
manifestmerge: local unknown, remote created: don't traverse symlinks
Siddharth Agarwal <sid0@fb.com>
parents:
18625
diff
changeset
|
186 |
113681bbef9e
manifestmerge: local unknown, remote created: don't traverse symlinks
Siddharth Agarwal <sid0@fb.com>
parents:
18625
diff
changeset
|
187 $ hg ci -mb |
113681bbef9e
manifestmerge: local unknown, remote created: don't traverse symlinks
Siddharth Agarwal <sid0@fb.com>
parents:
18625
diff
changeset
|
188 $ hg up '.^' |
113681bbef9e
manifestmerge: local unknown, remote created: don't traverse symlinks
Siddharth Agarwal <sid0@fb.com>
parents:
18625
diff
changeset
|
189 1 files updated, 0 files merged, 2 files removed, 0 files unresolved |
113681bbef9e
manifestmerge: local unknown, remote created: don't traverse symlinks
Siddharth Agarwal <sid0@fb.com>
parents:
18625
diff
changeset
|
190 $ hg up tip |
113681bbef9e
manifestmerge: local unknown, remote created: don't traverse symlinks
Siddharth Agarwal <sid0@fb.com>
parents:
18625
diff
changeset
|
191 2 files updated, 0 files merged, 1 files removed, 0 files unresolved |
113681bbef9e
manifestmerge: local unknown, remote created: don't traverse symlinks
Siddharth Agarwal <sid0@fb.com>
parents:
18625
diff
changeset
|
192 |
11812
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
193 $ cd .. |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
194 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
195 == root of repository is symlinked == |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
196 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
197 $ hg init root |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
198 $ ln -s root link |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
199 $ cd root |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
200 $ echo foo > foo |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
201 $ hg status |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
202 ? foo |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
203 $ hg status ../link |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
204 ? foo |
15797
c7a8164c61ab
canonpath: allow canonicalization of non-existant paths
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
12399
diff
changeset
|
205 $ hg add foo |
c7a8164c61ab
canonpath: allow canonicalization of non-existant paths
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
12399
diff
changeset
|
206 $ hg cp foo "$TESTTMP/link/bar" |
c7a8164c61ab
canonpath: allow canonicalization of non-existant paths
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
12399
diff
changeset
|
207 foo has not been committed yet, so no copy data will be stored for bar. |
11812
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
208 $ cd .. |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
209 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
210 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
211 $ hg init b |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
212 $ cd b |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
213 $ ln -s nothing dangling |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
214 $ hg commit -m 'commit symlink without adding' dangling |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
215 abort: dangling: file not tracked! |
45846
96ca817ec192
errors: raise InputError when given non-existent paths etc
Martin von Zweigbergk <martinvonz@google.com>
parents:
25472
diff
changeset
|
216 [10] |
11812
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
217 $ hg add dangling |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
218 $ hg commit -m 'add symlink' |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
219 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
220 $ hg tip -v |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
221 changeset: 0:cabd88b706fc |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
222 tag: tip |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
223 user: test |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
224 date: Thu Jan 01 00:00:00 1970 +0000 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
225 files: dangling |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
226 description: |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
227 add symlink |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
228 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
229 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
230 $ hg manifest --debug |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
231 2564acbe54bbbedfbf608479340b359f04597f80 644 @ dangling |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
23462
diff
changeset
|
232 $ readlink.py dangling |
11812
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
233 dangling -> nothing |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
234 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
235 $ rm dangling |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
236 $ ln -s void dangling |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
237 $ hg commit -m 'change symlink' |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
23462
diff
changeset
|
238 $ readlink.py dangling |
11812
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
239 dangling -> void |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
240 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
241 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
242 modifying link |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
243 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
244 $ rm dangling |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
245 $ ln -s empty dangling |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
23462
diff
changeset
|
246 $ readlink.py dangling |
11812
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
247 dangling -> empty |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
248 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
249 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
250 reverting to rev 0: |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
251 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
252 $ hg revert -r 0 -a |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
253 reverting dangling |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
23462
diff
changeset
|
254 $ readlink.py dangling |
11812
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
255 dangling -> nothing |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
256 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
257 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
258 backups: |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
259 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
23462
diff
changeset
|
260 $ readlink.py *.orig |
11812
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
261 dangling.orig -> empty |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
262 $ rm *.orig |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
263 $ hg up -C |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
264 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
265 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
266 copies |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
267 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
268 $ hg cp -v dangling dangling2 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
269 copying dangling to dangling2 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
270 $ hg st -Cmard |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
271 A dangling2 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
272 dangling |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
23462
diff
changeset
|
273 $ readlink.py dangling dangling2 |
11812
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
274 dangling -> void |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
275 dangling2 -> void |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
276 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
277 |
12399
4fee1fd3de9a
tests: added a short description to issue numbers
Martin Geisler <mg@aragost.com>
parents:
12316
diff
changeset
|
278 Issue995: hg copy -A incorrectly handles symbolic links |
11812
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
279 |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
280 $ hg up -C |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
281 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
282 $ mkdir dir |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
283 $ ln -s dir dirlink |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
284 $ hg ci -qAm 'add dirlink' |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
285 $ mkdir newdir |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
286 $ mv dir newdir/dir |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
287 $ mv dirlink newdir/dirlink |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
288 $ hg mv -A dirlink newdir/dirlink |
6f12f53ae795
tests: merge all 4 test-symlink* into test-symlinks
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11798
diff
changeset
|
289 |
16913
f2719b387380
tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents:
16350
diff
changeset
|
290 $ cd .. |