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