D10247: rebase: calculate obsolescense-related info earlier
martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
My goal is to use `rewriteutil.precheck()` in the rebase code. Since
rebase does its own handling of divergent commits (it skips them
instead of erroring out), we need to have divergence-causing commits
filtered out early. This patch helps prepare for that.
+ # Calculate self.obsoletenotrebased
from mercurial.context import overlayworkingctx
@@ -468,9 +473,6 @@
_(b'cannot collapse multiple named branches')
- # Calculate self.obsoletenotrebased
# Keep track of the active bookmarks in order to reset them later
self.activebookmark = self.activebookmark or repo._activebookmark