Show More
@@ -12,11 +12,12 b' Set up repo' | |||
|
12 | 12 | $ hg add base |
|
13 | 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 | 17 | $ mkdir -p b |
|
18 | 18 | $ echo c1 > b/c |
|
19 | $ hg add b/c | |
|
19 | $ echo d1 > d | |
|
20 | $ hg add b/c d | |
|
20 | 21 | $ hg commit -m "c1" |
|
21 | 22 | $ hg bookmark c1 |
|
22 | 23 | |
@@ -30,15 +31,17 b' Peform an update that causes b/c to be b' | |||
|
30 | 31 | b/c: replacing untracked file |
|
31 | 32 | getting b/c |
|
32 | 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 | 36 | (activating bookmark c1) |
|
35 | 37 | $ test -f .hg/origbackups/b/c |
|
36 | 38 | |
|
37 |
Make |
|
|
39 | Make files named b and d | |
|
38 | 40 | |
|
39 | 41 | $ hg up -q 0 |
|
40 | 42 | $ echo b1 > b |
|
41 | $ hg add b | |
|
43 | $ echo d2 > d | |
|
44 | $ hg add b d | |
|
42 | 45 | $ hg commit -m b1 |
|
43 | 46 | created new head |
|
44 | 47 | $ hg bookmark b1 |
@@ -52,7 +55,8 b' Perform an update that causes b to be ba' | |||
|
52 | 55 | b: replacing untracked file |
|
53 | 56 | getting b |
|
54 | 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 | 60 | (activating bookmark b1) |
|
57 | 61 | $ test -f .hg/origbackups/b |
|
58 | 62 | |
@@ -67,40 +71,54 b' Perform an update the causes b/c to be b' | |||
|
67 | 71 | getting b/c |
|
68 | 72 | creating directory: $TESTTMP/repo/.hg/origbackups/b (glob) |
|
69 | 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 | 76 | (activating bookmark c1) |
|
72 | 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 | 81 | $ hg up -q 0 |
|
77 | 82 | $ mkdir ../sym-link-target |
|
78 | 83 | #if symlink |
|
79 | 84 | $ ln -s ../../../sym-link-target b |
|
85 | $ ln -s ../../../sym-link-target d | |
|
80 | 86 | #else |
|
81 | $ touch b | |
|
87 | $ touch b d | |
|
82 | 88 | #endif |
|
83 | 89 | $ hg up b1 |
|
84 | 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 | 93 | (activating bookmark b1) |
|
87 | 94 | #if symlink |
|
88 | 95 | $ readlink.py .hg/origbackups/b |
|
89 | 96 | .hg/origbackups/b -> ../../../sym-link-target |
|
90 | 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 | 101 | $ hg up -q 0 |
|
95 | 102 | $ mkdir b |
|
96 | 103 | $ echo c4 > b/c |
|
104 | $ echo d3 > d | |
|
97 | 105 | $ hg up --verbose c1 |
|
98 | 106 | resolving manifests |
|
99 | 107 | b/c: replacing untracked file |
|
108 | d: replacing untracked file | |
|
100 | 109 | getting b/c |
|
101 | 110 | creating directory: $TESTTMP/repo/.hg/origbackups/b (glob) |
|
102 | 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 | 122 | (activating bookmark c1) |
|
105 | 123 | $ cat .hg/origbackups/b/c |
|
106 | 124 | c4 |
General Comments 0
You need to be logged in to leave comments.
Login now