Show More
@@ -12,11 +12,12 b' Set up repo' | |||||
12 | $ hg add base |
|
12 | $ hg add base | |
13 | $ hg commit -m "base" |
|
13 | $ hg commit -m "base" | |
14 |
|
14 | |||
15 | Make a dir named b that contains a file |
|
15 | Make a dir named b that contains a file, and a file named d | |
16 |
|
16 | |||
17 | $ mkdir -p b |
|
17 | $ mkdir -p b | |
18 | $ echo c1 > b/c |
|
18 | $ echo c1 > b/c | |
19 | $ hg add b/c |
|
19 | $ echo d1 > d | |
|
20 | $ hg add b/c d | |||
20 | $ hg commit -m "c1" |
|
21 | $ hg commit -m "c1" | |
21 | $ hg bookmark c1 |
|
22 | $ hg bookmark c1 | |
22 |
|
23 | |||
@@ -30,15 +31,17 b' Peform an update that causes b/c to be b' | |||||
30 | b/c: replacing untracked file |
|
31 | b/c: replacing untracked file | |
31 | getting b/c |
|
32 | getting b/c | |
32 | creating directory: $TESTTMP/repo/.hg/origbackups/b (glob) |
|
33 | creating directory: $TESTTMP/repo/.hg/origbackups/b (glob) | |
33 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
34 | getting d | |
|
35 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
34 | (activating bookmark c1) |
|
36 | (activating bookmark c1) | |
35 | $ test -f .hg/origbackups/b/c |
|
37 | $ test -f .hg/origbackups/b/c | |
36 |
|
38 | |||
37 |
Make |
|
39 | Make files named b and d | |
38 |
|
40 | |||
39 | $ hg up -q 0 |
|
41 | $ hg up -q 0 | |
40 | $ echo b1 > b |
|
42 | $ echo b1 > b | |
41 | $ hg add b |
|
43 | $ echo d2 > d | |
|
44 | $ hg add b d | |||
42 | $ hg commit -m b1 |
|
45 | $ hg commit -m b1 | |
43 | created new head |
|
46 | created new head | |
44 | $ hg bookmark b1 |
|
47 | $ hg bookmark b1 | |
@@ -52,7 +55,8 b' Perform an update that causes b to be ba' | |||||
52 | b: replacing untracked file |
|
55 | b: replacing untracked file | |
53 | getting b |
|
56 | getting b | |
54 | removing conflicting directory: $TESTTMP/repo/.hg/origbackups/b (glob) |
|
57 | removing conflicting directory: $TESTTMP/repo/.hg/origbackups/b (glob) | |
55 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
58 | getting d | |
|
59 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
56 | (activating bookmark b1) |
|
60 | (activating bookmark b1) | |
57 | $ test -f .hg/origbackups/b |
|
61 | $ test -f .hg/origbackups/b | |
58 |
|
62 | |||
@@ -67,40 +71,54 b' Perform an update the causes b/c to be b' | |||||
67 | getting b/c |
|
71 | getting b/c | |
68 | creating directory: $TESTTMP/repo/.hg/origbackups/b (glob) |
|
72 | creating directory: $TESTTMP/repo/.hg/origbackups/b (glob) | |
69 | removing conflicting file: $TESTTMP/repo/.hg/origbackups/b (glob) |
|
73 | removing conflicting file: $TESTTMP/repo/.hg/origbackups/b (glob) | |
70 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
74 | getting d | |
|
75 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
71 | (activating bookmark c1) |
|
76 | (activating bookmark c1) | |
72 | $ test -d .hg/origbackups/b |
|
77 | $ test -d .hg/origbackups/b | |
73 |
|
78 | |||
74 |
Cause |
|
79 | Cause two symlinks to be backed up that points to a valid location from the backup dir | |
75 |
|
80 | |||
76 | $ hg up -q 0 |
|
81 | $ hg up -q 0 | |
77 | $ mkdir ../sym-link-target |
|
82 | $ mkdir ../sym-link-target | |
78 | #if symlink |
|
83 | #if symlink | |
79 | $ ln -s ../../../sym-link-target b |
|
84 | $ ln -s ../../../sym-link-target b | |
|
85 | $ ln -s ../../../sym-link-target d | |||
80 | #else |
|
86 | #else | |
81 | $ touch b |
|
87 | $ touch b d | |
82 | #endif |
|
88 | #endif | |
83 | $ hg up b1 |
|
89 | $ hg up b1 | |
84 | b: replacing untracked file |
|
90 | b: replacing untracked file | |
85 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
91 | d: replacing untracked file | |
|
92 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
86 | (activating bookmark b1) |
|
93 | (activating bookmark b1) | |
87 | #if symlink |
|
94 | #if symlink | |
88 | $ readlink.py .hg/origbackups/b |
|
95 | $ readlink.py .hg/origbackups/b | |
89 | .hg/origbackups/b -> ../../../sym-link-target |
|
96 | .hg/origbackups/b -> ../../../sym-link-target | |
90 | #endif |
|
97 | #endif | |
91 |
|
98 | |||
92 |
Perform an update that causes b/c to be backed up again - |
|
99 | Perform an update that causes b/c and d to be backed up again - b/c should not go into the target dir | |
93 |
|
100 | |||
94 | $ hg up -q 0 |
|
101 | $ hg up -q 0 | |
95 | $ mkdir b |
|
102 | $ mkdir b | |
96 | $ echo c4 > b/c |
|
103 | $ echo c4 > b/c | |
|
104 | $ echo d3 > d | |||
97 | $ hg up --verbose c1 |
|
105 | $ hg up --verbose c1 | |
98 | resolving manifests |
|
106 | resolving manifests | |
99 | b/c: replacing untracked file |
|
107 | b/c: replacing untracked file | |
|
108 | d: replacing untracked file | |||
100 | getting b/c |
|
109 | getting b/c | |
101 | creating directory: $TESTTMP/repo/.hg/origbackups/b (glob) |
|
110 | creating directory: $TESTTMP/repo/.hg/origbackups/b (glob) | |
102 | removing conflicting file: $TESTTMP/repo/.hg/origbackups/b (glob) |
|
111 | removing conflicting file: $TESTTMP/repo/.hg/origbackups/b (glob) | |
103 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
112 | getting d | |
|
113 | removing conflicting directory: $TESTTMP/repo/.hg/origbackups/d (glob) | |||
|
114 | abort: None | |||
|
115 | [255] | |||
|
116 | ||||
|
117 | Workaround issue by deleting d: | |||
|
118 | ||||
|
119 | $ rm d | |||
|
120 | $ hg up c1 | |||
|
121 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
104 | (activating bookmark c1) |
|
122 | (activating bookmark c1) | |
105 | $ cat .hg/origbackups/b/c |
|
123 | $ cat .hg/origbackups/b/c | |
106 | c4 |
|
124 | c4 |
General Comments 0
You need to be logged in to leave comments.
Login now