Show More
@@ -1,128 +1,128 b'' | |||
|
1 | 1 | $ hg init repo |
|
2 | 2 | $ cd repo |
|
3 | 3 | $ echo base > base |
|
4 | 4 | $ hg add base |
|
5 | 5 | $ hg commit -m "base" |
|
6 | 6 | $ hg bookmark -i base |
|
7 | 7 | $ mkdir a |
|
8 | 8 | $ echo 1 > a/b |
|
9 | 9 | $ hg add a/b |
|
10 | 10 | $ hg commit -m "file" |
|
11 | 11 | $ hg bookmark -i file |
|
12 | 12 | $ echo 2 > a/b |
|
13 | 13 | $ hg commit -m "file2" |
|
14 | 14 | $ hg bookmark -i file2 |
|
15 | 15 | $ hg up 0 |
|
16 | 16 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
17 | 17 | $ mkdir a |
|
18 | 18 | $ ln -s c a/b |
|
19 | 19 | $ hg add a/b |
|
20 | 20 | $ hg commit -m "link" |
|
21 | 21 | created new head |
|
22 | 22 | $ hg bookmark -i link |
|
23 | 23 | $ hg up 0 |
|
24 | 24 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
25 | 25 | $ mkdir -p a/b/c |
|
26 | 26 | $ echo 2 > a/b/c/d |
|
27 | 27 | $ hg add a/b/c/d |
|
28 | 28 | $ hg commit -m "dir" |
|
29 | 29 | created new head |
|
30 | 30 | $ hg bookmark -i dir |
|
31 | 31 | |
|
32 | 32 | Merge - local file conflicts with remote directory |
|
33 | 33 | |
|
34 | 34 | $ hg up file |
|
35 | 35 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
36 | 36 | (activating bookmark file) |
|
37 | 37 | $ hg bookmark -i |
|
38 | 38 | $ hg merge --verbose dir |
|
39 | 39 | resolving manifests |
|
40 | 40 | a/b: path conflict - a file or link has the same name as a directory |
|
41 | 41 | the local file has been renamed to a/b~0ed027b96f31 |
|
42 | 42 | resolve manually then use 'hg resolve --mark a/b' |
|
43 | 43 | moving a/b to a/b~0ed027b96f31 (glob) |
|
44 | 44 | getting a/b/c/d |
|
45 | 45 | 1 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
46 | 46 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
47 | 47 | [1] |
|
48 | 48 | $ hg status |
|
49 | 49 | M a/b/c/d |
|
50 | 50 | A a/b~0ed027b96f31 |
|
51 | 51 | R a/b |
|
52 | 52 | $ hg resolve --all |
|
53 | 53 | a/b: path conflict must be resolved manually |
|
54 | 54 | $ hg forget a/b~0ed027b96f31 && rm a/b~0ed027b96f31 |
|
55 | 55 | $ hg resolve --mark a/b |
|
56 | 56 | (no more unresolved files) |
|
57 | 57 | $ hg commit -m "merge file and dir (deleted file)" |
|
58 | 58 | |
|
59 | 59 | Merge - local symlink conflicts with remote directory |
|
60 | 60 | |
|
61 | 61 | $ hg up link |
|
62 | 62 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
63 | 63 | (activating bookmark link) |
|
64 | 64 | $ hg bookmark -i |
|
65 | 65 | $ hg merge dir |
|
66 | 66 | a/b: path conflict - a file or link has the same name as a directory |
|
67 | 67 | the local file has been renamed to a/b~2ea68033e3be |
|
68 | 68 | resolve manually then use 'hg resolve --mark a/b' |
|
69 | 69 | 1 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
70 | 70 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
71 | 71 | [1] |
|
72 | 72 | $ hg status |
|
73 | 73 | M a/b/c/d |
|
74 | 74 | A a/b~2ea68033e3be |
|
75 | 75 | R a/b |
|
76 | 76 | $ hg resolve --list |
|
77 | 77 | P a/b |
|
78 | 78 | $ hg resolve --all |
|
79 | 79 | a/b: path conflict must be resolved manually |
|
80 | 80 | $ hg mv a/b~2ea68033e3be a/b.old |
|
81 | 81 | $ hg resolve --mark a/b |
|
82 | 82 | (no more unresolved files) |
|
83 | 83 | $ hg resolve --list |
|
84 | 84 | R a/b |
|
85 | 85 | $ hg commit -m "merge link and dir (renamed link)" |
|
86 | 86 | |
|
87 | 87 | Merge - local directory conflicts with remote file or link |
|
88 | 88 | |
|
89 | 89 | $ hg up dir |
|
90 | 90 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
91 | 91 | (activating bookmark dir) |
|
92 | 92 | $ hg bookmark -i |
|
93 | 93 | $ hg merge file |
|
94 | 94 | a/b: path conflict - a file or link has the same name as a directory |
|
95 | 95 | the remote file has been renamed to a/b~0ed027b96f31 |
|
96 | 96 | resolve manually then use 'hg resolve --mark a/b' |
|
97 | 97 | 1 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
98 | 98 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
99 | 99 | [1] |
|
100 | 100 | $ hg status |
|
101 | 101 | A a/b~0ed027b96f31 |
|
102 | 102 | $ hg resolve --all |
|
103 | 103 | a/b: path conflict must be resolved manually |
|
104 | 104 | $ hg mv a/b~0ed027b96f31 a/b/old-b |
|
105 | 105 | $ hg resolve --mark a/b |
|
106 | 106 | (no more unresolved files) |
|
107 | 107 | $ hg commit -m "merge dir and file (move file into dir)" |
|
108 | 108 | created new head |
|
109 | 109 | $ hg merge file2 |
|
110 | 110 | merging a/b/old-b and a/b to a/b/old-b |
|
111 | 111 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
112 | 112 | (branch merge, don't forget to commit) |
|
113 | 113 | $ cat a/b/old-b |
|
114 | 114 | 2 |
|
115 | 115 | $ hg commit -m "merge file2 (copytrace tracked rename)" |
|
116 | 116 | $ hg merge link |
|
117 | 117 | a/b: path conflict - a file or link has the same name as a directory |
|
118 | 118 | the remote file has been renamed to a/b~2ea68033e3be |
|
119 | 119 | resolve manually then use 'hg resolve --mark a/b' |
|
120 | 120 | 1 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
121 | 121 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
122 | 122 | [1] |
|
123 | 123 | $ hg mv a/b~2ea68033e3be a/b.old |
|
124 | $ readlink a/b.old | |
|
125 | c | |
|
124 | $ readlink.py a/b.old | |
|
125 | a/b.old -> c | |
|
126 | 126 | $ hg resolve --mark a/b |
|
127 | 127 | (no more unresolved files) |
|
128 | 128 | $ hg commit -m "merge link (rename link)" |
General Comments 0
You need to be logged in to leave comments.
Login now