Show More
@@ -130,6 +130,7 b' class rebaseruntime(object):' | |||
|
130 | 130 | self.state = {} |
|
131 | 131 | self.activebookmark = None |
|
132 | 132 | self.target = None |
|
133 | self.skipped = set() | |
|
133 | 134 | |
|
134 | 135 | @command('rebase', |
|
135 | 136 | [('s', 'source', '', |
@@ -242,7 +243,6 b' def rebase(ui, repo, **opts):' | |||
|
242 | 243 | |
|
243 | 244 | """ |
|
244 | 245 | rbsrt = rebaseruntime() |
|
245 | skipped = set() | |
|
246 | 246 | targetancestors = set() |
|
247 | 247 | |
|
248 | 248 | |
@@ -302,9 +302,9 b' def rebase(ui, repo, **opts):' | |||
|
302 | 302 | ui.warn(_('tool option will be ignored\n')) |
|
303 | 303 | |
|
304 | 304 | try: |
|
305 |
(rbsrt.originalwd, rbsrt.target, rbsrt.state, |
|
|
306 |
collapsef, keepf, keepbranchesf, |
|
|
307 | rbsrt.activebookmark) = restorestatus(repo) | |
|
305 | (rbsrt.originalwd, rbsrt.target, rbsrt.state, | |
|
306 | rbsrt.skipped, collapsef, keepf, keepbranchesf, | |
|
307 | rbsrt.external, rbsrt.activebookmark) = restorestatus(repo) | |
|
308 | 308 | collapsemsg = restorecollapsemsg(repo) |
|
309 | 309 | except error.RepoLookupError: |
|
310 | 310 | if abortf: |
@@ -470,7 +470,7 b' def rebase(ui, repo, **opts):' | |||
|
470 | 470 | if not collapsef: |
|
471 | 471 | ui.warn(_('note: rebase of %d:%s created no changes ' |
|
472 | 472 | 'to commit\n') % (rev, ctx)) |
|
473 | skipped.add(rev) | |
|
473 | rbsrt.skipped.add(rev) | |
|
474 | 474 | rbsrt.state[rev] = p1 |
|
475 | 475 | ui.debug('next revision set to %s\n' % p1) |
|
476 | 476 | elif rbsrt.state[rev] == nullmerge: |
@@ -504,7 +504,7 b' def rebase(ui, repo, **opts):' | |||
|
504 | 504 | else: |
|
505 | 505 | commitmsg = 'Collapsed revision' |
|
506 | 506 | for rebased in rbsrt.state: |
|
507 | if rebased not in skipped and\ | |
|
507 | if rebased not in rbsrt.skipped and\ | |
|
508 | 508 | rbsrt.state[rebased] > nullmerge: |
|
509 | 509 | commitmsg += '\n* %s' % repo[rebased].description() |
|
510 | 510 | editopt = True |
@@ -523,7 +523,7 b' def rebase(ui, repo, **opts):' | |||
|
523 | 523 | rbsrt.state[oldrev] = newrev |
|
524 | 524 | |
|
525 | 525 | if 'qtip' in repo.tags(): |
|
526 | updatemq(repo, rbsrt.state, skipped, **opts) | |
|
526 | updatemq(repo, rbsrt.state, rbsrt.skipped, **opts) | |
|
527 | 527 | |
|
528 | 528 | if currentbookmarks: |
|
529 | 529 | # Nodeids are needed to reset bookmarks |
@@ -549,7 +549,7 b' def rebase(ui, repo, **opts):' | |||
|
549 | 549 | collapsedas = None |
|
550 | 550 | if collapsef: |
|
551 | 551 | collapsedas = newnode |
|
552 | clearrebased(ui, repo, rbsrt.state, skipped, collapsedas) | |
|
552 | clearrebased(ui, repo, rbsrt.state, rbsrt.skipped, collapsedas) | |
|
553 | 553 | |
|
554 | 554 | with repo.transaction('bookmark') as tr: |
|
555 | 555 | if currentbookmarks: |
@@ -562,8 +562,9 b' def rebase(ui, repo, **opts):' | |||
|
562 | 562 | |
|
563 | 563 | ui.note(_("rebase completed\n")) |
|
564 | 564 | util.unlinkpath(repo.sjoin('undo'), ignoremissing=True) |
|
565 | if skipped: | |
|
566 | ui.note(_("%d revisions have been skipped\n") % len(skipped)) | |
|
565 | if rbsrt.skipped: | |
|
566 | skippedlen = len(rbsrt.skipped) | |
|
567 | ui.note(_("%d revisions have been skipped\n") % skippedlen) | |
|
567 | 568 | |
|
568 | 569 | if (rbsrt.activebookmark and |
|
569 | 570 | repo['.'].node() == repo._bookmarks[rbsrt.activebookmark]): |
General Comments 0
You need to be logged in to leave comments.
Login now