Show More
@@ -88,13 +88,15 b' def annotatesubrepoerror(func):' | |||
|
88 | 88 | def _updateprompt(ui, sub, dirty, local, remote): |
|
89 | 89 | if dirty: |
|
90 | 90 | msg = (_(' subrepository sources for %s differ\n' |
|
91 |
'use (l)ocal source (%s) or (r)emote source (%s) |
|
|
91 | 'you can use (l)ocal source (%s) or (r)emote source (%s).\n' | |
|
92 | 'what do you want to do?' | |
|
92 | 93 | '$$ &Local $$ &Remote') |
|
93 | 94 | % (subrelpath(sub), local, remote)) |
|
94 | 95 | else: |
|
95 | 96 | msg = (_(' subrepository sources for %s differ (in checked out ' |
|
96 | 97 | 'version)\n' |
|
97 |
'use (l)ocal source (%s) or (r)emote source (%s) |
|
|
98 | 'you can use (l)ocal source (%s) or (r)emote source (%s).\n' | |
|
99 | 'what do you want to do?' | |
|
98 | 100 | '$$ &Local $$ &Remote') |
|
99 | 101 | % (subrelpath(sub), local, remote)) |
|
100 | 102 | return ui.promptchoice(msg, 0) |
@@ -168,8 +168,9 b' def submerge(repo, wctx, mctx, actx, ove' | |||
|
168 | 168 | prompts['ro'] = r[0] |
|
169 | 169 | if repo.ui.promptchoice( |
|
170 | 170 | _(' subrepository sources for %(s)s differ\n' |
|
171 | 'use (l)ocal%(l)s source (%(lo)s)' | |
|
172 |
' or (r)emote%(o)s source (%(ro)s) |
|
|
171 | 'you can use (l)ocal%(l)s source (%(lo)s)' | |
|
172 | ' or (r)emote%(o)s source (%(ro)s).\n' | |
|
173 | 'what do you want to do?' | |
|
173 | 174 | '$$ &Local $$ &Remote') % prompts, 0): |
|
174 | 175 | debug(s, "prompt changed, get", r) |
|
175 | 176 | wctx.sub(s).get(r, overwrite) |
@@ -186,7 +187,9 b' def submerge(repo, wctx, mctx, actx, ove' | |||
|
186 | 187 | option = repo.ui.promptchoice( |
|
187 | 188 | _(' subrepository %(s)s diverged (local revision: %(sl)s, ' |
|
188 | 189 | 'remote revision: %(sr)s)\n' |
|
189 |
' |
|
|
190 | 'you can (m)erge, keep (l)ocal%(l)s or keep ' | |
|
191 | '(r)emote%(o)s.\n' | |
|
192 | 'what do you want to do?' | |
|
190 | 193 | '$$ &Merge $$ &Local $$ &Remote') |
|
191 | 194 | % prompts, 0) |
|
192 | 195 | if option == 0: |
@@ -545,9 +545,11 b' Test that the internal linear merging wo' | |||
|
545 | 545 | > l |
|
546 | 546 | > EOF |
|
547 | 547 | subrepository sub diverged (local revision: f74e50bd9e55, remote revision: d65e59e952a9) |
|
548 |
( |
|
|
548 | you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. | |
|
549 | what do you want to do? m | |
|
549 | 550 | subrepository sources for sub differ (in checked out version) |
|
550 |
use (l)ocal source (f74e50bd9e55) or (r)emote source (d65e59e952a9) |
|
|
551 | you can use (l)ocal source (f74e50bd9e55) or (r)emote source (d65e59e952a9). | |
|
552 | what do you want to do? r | |
|
551 | 553 | remote turned local largefile large2 into a normal file |
|
552 | 554 | keep (l)argefile or use (n)ormal file? l |
|
553 | 555 | largefile large1 has a merge conflict |
@@ -270,7 +270,8 b' qpush' | |||
|
270 | 270 | $ hg qpush |
|
271 | 271 | applying 1 |
|
272 | 272 | subrepository sub diverged (local revision: b2fdb12cd82b, remote revision: aa037b301eba) |
|
273 |
( |
|
|
273 | you can (m)erge, keep (l)ocal or keep (r)emote. | |
|
274 | what do you want to do? m | |
|
274 | 275 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
275 | 276 | now at: 1 |
|
276 | 277 | $ hg status -AS |
@@ -213,7 +213,8 b' user a pulls, merges, commits' | |||
|
213 | 213 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
214 | 214 | $ hg merge 2>/dev/null |
|
215 | 215 | subrepository s diverged (local revision: 7969594, remote revision: aa84837) |
|
216 |
( |
|
|
216 | you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [merge rev]. | |
|
217 | what do you want to do? m | |
|
217 | 218 | pulling subrepo s from $TESTTMP/gitroot |
|
218 | 219 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
219 | 220 | (branch merge, don't forget to commit) |
@@ -551,9 +552,11 b' Sticky subrepositories, file changes' | |||
|
551 | 552 | $ cd .. |
|
552 | 553 | $ hg update 4 |
|
553 | 554 | subrepository s diverged (local revision: da5f5b1, remote revision: aa84837) |
|
554 |
( |
|
|
555 | you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. | |
|
556 | what do you want to do? m | |
|
555 | 557 | subrepository sources for s differ |
|
556 |
use (l)ocal source (da5f5b1) or (r)emote source (aa84837) |
|
|
558 | you can use (l)ocal source (da5f5b1) or (r)emote source (aa84837). | |
|
559 | what do you want to do? l | |
|
557 | 560 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
558 | 561 | $ hg id -n |
|
559 | 562 | 4+ |
@@ -577,9 +580,11 b' Sticky subrepository, revision updates' | |||
|
577 | 580 | $ cd .. |
|
578 | 581 | $ hg update 1 |
|
579 | 582 | subrepository s diverged (local revision: 32a3438, remote revision: da5f5b1) |
|
580 |
( |
|
|
583 | you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. | |
|
584 | what do you want to do? m | |
|
581 | 585 | subrepository sources for s differ (in checked out version) |
|
582 |
use (l)ocal source (32a3438) or (r)emote source (da5f5b1) |
|
|
586 | you can use (l)ocal source (32a3438) or (r)emote source (da5f5b1). | |
|
587 | what do you want to do? l | |
|
583 | 588 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
584 | 589 | $ hg id -n |
|
585 | 590 | 1+ |
@@ -599,9 +604,11 b' Sticky subrepository, file changes and r' | |||
|
599 | 604 | 1+ |
|
600 | 605 | $ hg update 7 |
|
601 | 606 | subrepository s diverged (local revision: 32a3438, remote revision: 32a3438) |
|
602 |
( |
|
|
607 | you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. | |
|
608 | what do you want to do? m | |
|
603 | 609 | subrepository sources for s differ |
|
604 |
use (l)ocal source (32a3438) or (r)emote source (32a3438) |
|
|
610 | you can use (l)ocal source (32a3438) or (r)emote source (32a3438). | |
|
611 | what do you want to do? l | |
|
605 | 612 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
606 | 613 | $ hg id -n |
|
607 | 614 | 7+ |
@@ -321,9 +321,11 b' Sticky subrepositories, file changes' | |||
|
321 | 321 | $ cd .. |
|
322 | 322 | $ hg update tip |
|
323 | 323 | subrepository s diverged (local revision: 2, remote revision: 3) |
|
324 |
|
|
|
324 | you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. | |
|
325 | what do you want to do? m | |
|
325 | 326 | subrepository sources for s differ |
|
326 |
use (l)ocal source (2) or (r)emote source (3) |
|
|
327 | you can use (l)ocal source (2) or (r)emote source (3). | |
|
328 | what do you want to do? l | |
|
327 | 329 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
328 | 330 | $ hg id -n |
|
329 | 331 | 2+ |
@@ -352,9 +354,11 b' Sticky subrepository, revision updates' | |||
|
352 | 354 | $ cd .. |
|
353 | 355 | $ hg update 1 |
|
354 | 356 | subrepository s diverged (local revision: 3, remote revision: 2) |
|
355 |
|
|
|
357 | you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. | |
|
358 | what do you want to do? m | |
|
356 | 359 | subrepository sources for s differ (in checked out version) |
|
357 |
use (l)ocal source (1) or (r)emote source (2) |
|
|
360 | you can use (l)ocal source (1) or (r)emote source (2). | |
|
361 | what do you want to do? l | |
|
358 | 362 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
359 | 363 | $ hg id -n |
|
360 | 364 | 1+ |
@@ -375,9 +379,11 b' Sticky subrepository, file changes and r' | |||
|
375 | 379 | 1+ |
|
376 | 380 | $ hg update tip |
|
377 | 381 | subrepository s diverged (local revision: 3, remote revision: 3) |
|
378 |
|
|
|
382 | you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. | |
|
383 | what do you want to do? m | |
|
379 | 384 | subrepository sources for s differ |
|
380 |
use (l)ocal source (1) or (r)emote source (3) |
|
|
385 | you can use (l)ocal source (1) or (r)emote source (3). | |
|
386 | what do you want to do? l | |
|
381 | 387 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
382 | 388 | $ hg id -n |
|
383 | 389 | 2+ |
@@ -409,7 +415,8 b' Test subrepo already at intended revisio' | |||
|
409 | 415 | $ cd .. |
|
410 | 416 | $ hg update 1 |
|
411 | 417 | subrepository s diverged (local revision: 3, remote revision: 2) |
|
412 |
|
|
|
418 | you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. | |
|
419 | what do you want to do? m | |
|
413 | 420 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
414 | 421 | $ hg id -n |
|
415 | 422 | 1+ |
@@ -309,13 +309,14 b' merge tests' | |||
|
309 | 309 | subrepo t: both sides changed |
|
310 | 310 | subrepository t diverged (local revision: 20a0db6fbf6c, remote revision: 7af322bc1198) |
|
311 | 311 | starting 4 threads for background file closing (?) |
|
312 |
( |
|
|
312 | you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [merge rev]. | |
|
313 | what do you want to do? m | |
|
313 | 314 | merging subrepository "t" |
|
314 | 315 | resolving manifests |
|
315 | 316 | branchmerge: True, force: False, partial: False |
|
316 | 317 | ancestor: 6747d179aa9a, local: 20a0db6fbf6c+, remote: 7af322bc1198 |
|
318 | starting 4 threads for background file closing (?) | |
|
317 | 319 | preserving t for resolve of t |
|
318 | starting 4 threads for background file closing (?) | |
|
319 | 320 | t: versions differ -> m (premerge) |
|
320 | 321 | picked tool ':merge' for t (binary False symlink False changedelete False) |
|
321 | 322 | merging t |
@@ -908,7 +909,8 b" shouldn't need merging" | |||
|
908 | 909 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
909 | 910 | $ hg merge 4 # try to merge default into br again |
|
910 | 911 | subrepository s diverged (local revision: f8f13b33206e, remote revision: a3f9062a4f88) |
|
911 |
|
|
|
912 | you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [merge rev]. | |
|
913 | what do you want to do? m | |
|
912 | 914 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
913 | 915 | (branch merge, don't forget to commit) |
|
914 | 916 | $ cd .. |
@@ -1199,7 +1201,8 b" Check that merge of a new subrepo doesn'" | |||
|
1199 | 1201 | added 1 changesets with 2 changes to 2 files |
|
1200 | 1202 | new changesets c82b79fdcc5b |
|
1201 | 1203 | subrepository sub/repo diverged (local revision: f42d5c7504a8, remote revision: 46cd4aac504c) |
|
1202 |
|
|
|
1204 | you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. | |
|
1205 | what do you want to do? m | |
|
1203 | 1206 | pulling subrepo sub/repo from $TESTTMP/issue1852a/sub/repo |
|
1204 | 1207 | searching for changes |
|
1205 | 1208 | adding changesets |
@@ -1208,7 +1211,8 b" Check that merge of a new subrepo doesn'" | |||
|
1208 | 1211 | added 1 changesets with 1 changes to 1 files |
|
1209 | 1212 | new changesets 46cd4aac504c |
|
1210 | 1213 | subrepository sources for sub/repo differ |
|
1211 |
use (l)ocal source (f42d5c7504a8) or (r)emote source (46cd4aac504c) |
|
|
1214 | you can use (l)ocal source (f42d5c7504a8) or (r)emote source (46cd4aac504c). | |
|
1215 | what do you want to do? l | |
|
1212 | 1216 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
1213 | 1217 | $ cat issue1852d/.hgsubstate |
|
1214 | 1218 | f42d5c7504a811dda50f5cf3e5e16c3330b87172 sub/repo |
@@ -1335,13 +1339,17 b' Sticky subrepositories, file changes' | |||
|
1335 | 1339 | e95bcfa18a35+ |
|
1336 | 1340 | $ hg update tip |
|
1337 | 1341 | subrepository s diverged (local revision: fc627a69481f, remote revision: 12a213df6fa9) |
|
1338 |
|
|
|
1342 | you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. | |
|
1343 | what do you want to do? m | |
|
1339 | 1344 | subrepository sources for s differ |
|
1340 |
use (l)ocal source (fc627a69481f) or (r)emote source (12a213df6fa9) |
|
|
1345 | you can use (l)ocal source (fc627a69481f) or (r)emote source (12a213df6fa9). | |
|
1346 | what do you want to do? l | |
|
1341 | 1347 | subrepository t diverged (local revision: e95bcfa18a35, remote revision: 52c0adc0515a) |
|
1342 |
|
|
|
1348 | you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. | |
|
1349 | what do you want to do? m | |
|
1343 | 1350 | subrepository sources for t differ |
|
1344 |
use (l)ocal source (e95bcfa18a35) or (r)emote source (52c0adc0515a) |
|
|
1351 | you can use (l)ocal source (e95bcfa18a35) or (r)emote source (52c0adc0515a). | |
|
1352 | what do you want to do? l | |
|
1345 | 1353 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
1346 | 1354 | $ hg id |
|
1347 | 1355 | 925c17564ef8+ tip |
@@ -1368,11 +1376,14 b' Sticky subrepository, revision updates' | |||
|
1368 | 1376 | $ cd .. |
|
1369 | 1377 | $ hg update 10 |
|
1370 | 1378 | subrepository s diverged (local revision: 12a213df6fa9, remote revision: fc627a69481f) |
|
1371 |
|
|
|
1379 | you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. | |
|
1380 | what do you want to do? m | |
|
1372 | 1381 | subrepository t diverged (local revision: 52c0adc0515a, remote revision: 20a0db6fbf6c) |
|
1373 |
|
|
|
1382 | you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. | |
|
1383 | what do you want to do? m | |
|
1374 | 1384 | subrepository sources for t differ (in checked out version) |
|
1375 |
use (l)ocal source (7af322bc1198) or (r)emote source (20a0db6fbf6c) |
|
|
1385 | you can use (l)ocal source (7af322bc1198) or (r)emote source (20a0db6fbf6c). | |
|
1386 | what do you want to do? l | |
|
1376 | 1387 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
1377 | 1388 | $ hg id |
|
1378 | 1389 | e45c8b14af55+ |
@@ -1394,13 +1405,17 b' Sticky subrepository, file changes and r' | |||
|
1394 | 1405 | 7af322bc1198+ |
|
1395 | 1406 | $ hg update tip |
|
1396 | 1407 | subrepository s diverged (local revision: 12a213df6fa9, remote revision: 12a213df6fa9) |
|
1397 |
|
|
|
1408 | you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. | |
|
1409 | what do you want to do? m | |
|
1398 | 1410 | subrepository sources for s differ |
|
1399 |
use (l)ocal source (02dcf1d70411) or (r)emote source (12a213df6fa9) |
|
|
1411 | you can use (l)ocal source (02dcf1d70411) or (r)emote source (12a213df6fa9). | |
|
1412 | what do you want to do? l | |
|
1400 | 1413 | subrepository t diverged (local revision: 52c0adc0515a, remote revision: 52c0adc0515a) |
|
1401 |
|
|
|
1414 | you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. | |
|
1415 | what do you want to do? m | |
|
1402 | 1416 | subrepository sources for t differ |
|
1403 |
use (l)ocal source (7af322bc1198) or (r)emote source (52c0adc0515a) |
|
|
1417 | you can use (l)ocal source (7af322bc1198) or (r)emote source (52c0adc0515a). | |
|
1418 | what do you want to do? l | |
|
1404 | 1419 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
1405 | 1420 | $ hg id |
|
1406 | 1421 | 925c17564ef8+ tip |
@@ -1426,7 +1441,8 b' Test subrepo already at intended revisio' | |||
|
1426 | 1441 | $ cd .. |
|
1427 | 1442 | $ hg update 11 |
|
1428 | 1443 | subrepository s diverged (local revision: 12a213df6fa9, remote revision: fc627a69481f) |
|
1429 |
|
|
|
1444 | you can (m)erge, keep (l)ocal [working copy] or keep (r)emote [destination]. | |
|
1445 | what do you want to do? m | |
|
1430 | 1446 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
1431 | 1447 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
1432 | 1448 | $ hg id -n |
General Comments 0
You need to be logged in to leave comments.
Login now