Show More
@@ -446,14 +446,9 b' class rebaseruntime(object):' | |||
|
446 | 446 | elif self.state[rev] == revignored: |
|
447 | 447 | ui.status(_('not rebasing ignored %s\n') % desc) |
|
448 | 448 | elif self.state[rev] == revprecursor: |
|
449 | destctx = repo[self.obsoletenotrebased[rev]] | |
|
450 | descdest = '%d:%s "%s"' % (destctx.rev(), destctx, | |
|
451 | destctx.description().split('\n', 1)[0]) | |
|
452 | msg = _('note: not rebasing %s, already in destination as %s\n') | |
|
453 | ui.status(msg % (desc, descdest)) | |
|
449 | pass | |
|
454 | 450 | elif self.state[rev] == revpruned: |
|
455 | msg = _('note: not rebasing %s, it has no successor\n') | |
|
456 | ui.status(msg % desc) | |
|
451 | pass | |
|
457 | 452 | else: |
|
458 | 453 | ui.status(_('already rebased %s as %s\n') % |
|
459 | 454 | (desc, repo[self.state[rev]])) |
@@ -1413,11 +1408,21 b' def buildstate(repo, dest, rebaseset, co' | |||
|
1413 | 1408 | rebasedomain = set(repo.revs('%ld::%ld', rebaseset, rebaseset)) |
|
1414 | 1409 | for ignored in set(rebasedomain) - set(rebaseset): |
|
1415 | 1410 | state[ignored] = revignored |
|
1411 | unfi = repo.unfiltered() | |
|
1416 | 1412 | for r in obsoletenotrebased: |
|
1417 | if obsoletenotrebased[r] is None: | |
|
1413 | desc = _ctxdesc(unfi[r]) | |
|
1414 | succ = obsoletenotrebased[r] | |
|
1415 | if succ is None: | |
|
1416 | msg = _('note: not rebasing %s, it has no successor\n') % desc | |
|
1418 | 1417 | state[r] = revpruned |
|
1419 | 1418 | else: |
|
1419 | destctx = unfi[succ] | |
|
1420 | destdesc = '%d:%s "%s"' % (destctx.rev(), destctx, | |
|
1421 | destctx.description().split('\n', 1)[0]) | |
|
1422 | msg = (_('note: not rebasing %s, already in destination as %s\n') | |
|
1423 | % (desc, destdesc)) | |
|
1420 | 1424 | state[r] = revprecursor |
|
1425 | repo.ui.status(msg) | |
|
1421 | 1426 | return originalwd, dest.rev(), state |
|
1422 | 1427 | |
|
1423 | 1428 | def clearrebased(ui, repo, dest, state, skipped, collapsedas=None): |
@@ -205,8 +205,8 b' More complex case where part of the reba' | |||
|
205 | 205 | o 0:cd010b8cd998 A |
|
206 | 206 | |
|
207 | 207 | $ hg rebase --source 'desc(B)' --dest 'tip' --config experimental.rebaseskipobsolete=True |
|
208 | note: not rebasing 9:08483444fef9 "D", already in destination as 11:4596109a6a43 "D" | |
|
208 | 209 | rebasing 8:8877864f1edb "B" |
|
209 | note: not rebasing 9:08483444fef9 "D", already in destination as 11:4596109a6a43 "D" | |
|
210 | 210 | rebasing 10:5ae4c968c6ac "C" |
|
211 | 211 | $ hg debugobsolete |
|
212 | 212 | 42ccdea3bb16d28e1848c95fe2e44c000f3f21b1 0 {cd010b8cd998f3981a5a8115f94f8da4ab506089} (*) {'user': 'test'} (glob) |
@@ -740,8 +740,8 b' Even when the chain include missing node' | |||
|
740 | 740 | $ hg debugobsolete `hg log -r 7 -T '{node}\n'` --config experimental.stabilization=all |
|
741 | 741 | obsoleted 1 changesets |
|
742 | 742 | $ hg rebase -d 6 -r "4::" |
|
743 | note: not rebasing 7:360bbaa7d3ce "O", it has no successor | |
|
743 | 744 | rebasing 4:ff2c4d47b71d "C" |
|
744 | note: not rebasing 7:360bbaa7d3ce "O", it has no successor | |
|
745 | 745 | rebasing 8:8d47583e023f "P" (tip) |
|
746 | 746 | |
|
747 | 747 | If all the changeset to be rebased are obsolete and present in the destination, we |
@@ -908,6 +908,7 b' Create the changes that we will rebase' | |||
|
908 | 908 | | |
|
909 | 909 | ~ |
|
910 | 910 | $ hg rebase -r ".^^ + .^ + ." -d 19 |
|
911 | note: not rebasing 21:8b31da3c4919 "dummy change", already in destination as 19:601db7a18f51 "dummy change successor" | |
|
911 | 912 | rebasing 20:b82fb57ea638 "willconflict second version" |
|
912 | 913 | merging willconflict |
|
913 | 914 | warning: conflicts while merging willconflict! (edit, then use 'hg resolve --mark') |
@@ -919,7 +920,6 b' Create the changes that we will rebase' | |||
|
919 | 920 | continue: hg rebase --continue |
|
920 | 921 | $ hg rebase --continue |
|
921 | 922 | rebasing 20:b82fb57ea638 "willconflict second version" |
|
922 | note: not rebasing 21:8b31da3c4919 "dummy change", already in destination as 19:601db7a18f51 "dummy change successor" | |
|
923 | 923 | rebasing 22:7bdc8a87673d "dummy change" (tip) |
|
924 | 924 | $ cd .. |
|
925 | 925 | |
@@ -1066,8 +1066,8 b' Rebase merge where successor of one pare' | |||
|
1066 | 1066 | > EOF |
|
1067 | 1067 | |
|
1068 | 1068 | $ hg rebase -d C -b F |
|
1069 | note: not rebasing 3:7fb047a69f22 "E" (E), already in destination as 1:112478962961 "B" | |
|
1069 | 1070 | rebasing 2:b18e25de2cf5 "D" (D) |
|
1070 | note: not rebasing 3:7fb047a69f22 "E" (E), already in destination as 1:112478962961 "B" | |
|
1071 | 1071 | rebasing 5:66f1a38021c9 "F" (F tip) |
|
1072 | 1072 | warning: rebasing 5:66f1a38021c9 may include unwanted changes from 3:7fb047a69f22 |
|
1073 | 1073 | $ hg log -G |
General Comments 0
You need to be logged in to leave comments.
Login now