##// END OF EJS Templates
merge: pretend ancestor is local to simplify backwards and overwrite
Matt Mackall -
r8734:60fa3371 default
parent child Browse files
Show More
@@ -133,6 +133,10 b' def manifestmerge(repo, p1, p2, pa, over'
133 m2 = p2.manifest()
133 m2 = p2.manifest()
134 ma = pa.manifest()
134 ma = pa.manifest()
135 backwards = (pa == p2)
135 backwards = (pa == p2)
136
137 if backwards or overwrite:
138 ma = m1
139
136 action = []
140 action = []
137 copy, copied, diverge = {}, {}, {}
141 copy, copied, diverge = {}, {}, {}
138
142
@@ -209,7 +213,7 b' def manifestmerge(repo, p1, p2, pa, over'
209 else: # case 4,21 A/B/B
213 else: # case 4,21 A/B/B
210 act("local moved to " + f2, "m",
214 act("local moved to " + f2, "m",
211 f, f2, f, fmerge(f, f2, f2), False)
215 f, f2, f, fmerge(f, f2, f2), False)
212 elif f in ma:
216 elif f in ma and not n[20:]:
213 if n != ma[f] and not overwrite:
217 if n != ma[f] and not overwrite:
214 if repo.ui.prompt(
218 if repo.ui.prompt(
215 _(" local changed %s which remote deleted\n"
219 _(" local changed %s which remote deleted\n"
@@ -38,7 +38,7 b' summary: 2'
38 resolving manifests
38 resolving manifests
39 overwrite False partial False
39 overwrite False partial False
40 ancestor 33aaa84a386b local 802f095af299+ remote 33aaa84a386b
40 ancestor 33aaa84a386b local 802f095af299+ remote 33aaa84a386b
41 b: remote deleted -> r
41 b: other deleted -> r
42 removing b
42 removing b
43 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
43 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
44 changeset: 0:33aaa84a386b
44 changeset: 0:33aaa84a386b
@@ -43,8 +43,8 b' side2'
43 resolving manifests
43 resolving manifests
44 overwrite True partial False
44 overwrite True partial False
45 ancestor 537353581d3d local ded32b0db104+ remote 221226fb2bd8
45 ancestor 537353581d3d local ded32b0db104+ remote 221226fb2bd8
46 side2: remote deleted -> r
46 side2: other deleted -> r
47 side1: remote deleted -> r
47 side1: other deleted -> r
48 main: remote created -> g
48 main: remote created -> g
49 removing side1
49 removing side1
50 removing side2
50 removing side2
General Comments 0
You need to be logged in to leave comments. Login now