##// END OF EJS Templates
merge with stable
Augie Fackler -
r31551:f97e90fa merge default
parent child Browse files
Show More
@@ -195,7 +195,9 b' def submerge(repo, wctx, mctx, actx, ove'
195 r = "%s:%s:%s" % r
195 r = "%s:%s:%s" % r
196 repo.ui.debug(" subrepo %s: %s %s\n" % (s, msg, r))
196 repo.ui.debug(" subrepo %s: %s %s\n" % (s, msg, r))
197
197
198 promptssrc = filemerge.partextras(labels)
198 for s, l in sorted(s1.iteritems()):
199 for s, l in sorted(s1.iteritems()):
200 prompts = None
199 a = sa.get(s, nullstate)
201 a = sa.get(s, nullstate)
200 ld = l # local state with possible dirty flag for compares
202 ld = l # local state with possible dirty flag for compares
201 if wctx.sub(s).dirty():
203 if wctx.sub(s).dirty():
@@ -203,9 +205,9 b' def submerge(repo, wctx, mctx, actx, ove'
203 if wctx == actx: # overwrite
205 if wctx == actx: # overwrite
204 a = ld
206 a = ld
205
207
208 prompts = promptssrc.copy()
209 prompts['s'] = s
206 if s in s2:
210 if s in s2:
207 prompts = filemerge.partextras(labels)
208 prompts['s'] = s
209 r = s2[s]
211 r = s2[s]
210 if ld == r or r == a: # no change or local is newer
212 if ld == r or r == a: # no change or local is newer
211 sm[s] = l
213 sm[s] = l
@@ -268,6 +270,7 b' def submerge(repo, wctx, mctx, actx, ove'
268 wctx.sub(s).remove()
270 wctx.sub(s).remove()
269
271
270 for s, r in sorted(s2.items()):
272 for s, r in sorted(s2.items()):
273 prompts = None
271 if s in s1:
274 if s in s1:
272 continue
275 continue
273 elif s not in sa:
276 elif s not in sa:
@@ -275,6 +278,8 b' def submerge(repo, wctx, mctx, actx, ove'
275 mctx.sub(s).get(r)
278 mctx.sub(s).get(r)
276 sm[s] = r
279 sm[s] = r
277 elif r != sa[s]:
280 elif r != sa[s]:
281 prompts = promptssrc.copy()
282 prompts['s'] = s
278 if repo.ui.promptchoice(
283 if repo.ui.promptchoice(
279 _(' remote%(o)s changed subrepository %(s)s'
284 _(' remote%(o)s changed subrepository %(s)s'
280 ' which local%(l)s removed\n'
285 ' which local%(l)s removed\n'
@@ -349,7 +349,7 b' 11: remove subrepo t'
349 local removed, remote changed, keep changed
349 local removed, remote changed, keep changed
350
350
351 $ hg merge 6
351 $ hg merge 6
352 remote [merge rev] changed subrepository s which local [working copy] removed
352 remote [merge rev] changed subrepository t which local [working copy] removed
353 use (c)hanged version or (d)elete? c
353 use (c)hanged version or (d)elete? c
354 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
354 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
355 (branch merge, don't forget to commit)
355 (branch merge, don't forget to commit)
@@ -380,7 +380,7 b' local removed, remote changed, keep remo'
380 $ hg merge --config ui.interactive=true 6 <<EOF
380 $ hg merge --config ui.interactive=true 6 <<EOF
381 > d
381 > d
382 > EOF
382 > EOF
383 remote [merge rev] changed subrepository s which local [working copy] removed
383 remote [merge rev] changed subrepository t which local [working copy] removed
384 use (c)hanged version or (d)elete? d
384 use (c)hanged version or (d)elete? d
385 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
385 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
386 (branch merge, don't forget to commit)
386 (branch merge, don't forget to commit)
@@ -404,7 +404,7 b' local changed, remote removed, keep chan'
404 $ hg co -C 6
404 $ hg co -C 6
405 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
405 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
406 $ hg merge 11
406 $ hg merge 11
407 local [working copy] changed subrepository s which remote [merge rev] removed
407 local [working copy] changed subrepository t which remote [merge rev] removed
408 use (c)hanged version or (d)elete? c
408 use (c)hanged version or (d)elete? c
409 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
409 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
410 (branch merge, don't forget to commit)
410 (branch merge, don't forget to commit)
@@ -436,7 +436,7 b' local changed, remote removed, keep remo'
436 $ hg merge --config ui.interactive=true 11 <<EOF
436 $ hg merge --config ui.interactive=true 11 <<EOF
437 > d
437 > d
438 > EOF
438 > EOF
439 local [working copy] changed subrepository s which remote [merge rev] removed
439 local [working copy] changed subrepository t which remote [merge rev] removed
440 use (c)hanged version or (d)elete? d
440 use (c)hanged version or (d)elete? d
441 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
441 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
442 (branch merge, don't forget to commit)
442 (branch merge, don't forget to commit)
General Comments 0
You need to be logged in to leave comments. Login now