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