hgext/rebase.py
changeset 27745 d3a128e8604a
parent 27744 f2b8b4e2de20
child 27746 f0e9f38d250f
--- a/hgext/rebase.py	Wed Jan 06 12:55:56 2016 -0800
+++ b/hgext/rebase.py	Wed Jan 06 12:55:56 2016 -0800
@@ -348,11 +348,12 @@
                 obsoletenotrebased = _computeobsoletenotrebased(repo,
                                                                 rebaseobsrevs,
                                                                 dest)
+                rebaseobsskipped = set(obsoletenotrebased)
 
                 # - plain prune (no successor) changesets are rebased
                 # - split changesets are not rebased if at least one of the
                 # changeset resulting from the split is an ancestor of dest
-                rebaseset = rebasesetrevs - set(obsoletenotrebased)
+                rebaseset = rebasesetrevs - rebaseobsskipped
                 if rebasesetrevs and not rebaseset:
                     msg = _('all requested changesets have equivalents '
                             'or were marked as obsolete')