diff mercurial/merge.py @ 33146:7017567ebdf2

obsutil: move 'foreground' to the new modules We have a new 'obsutil' module now. We move the high level utility there to bring 'obsolete.py' back to a more reasonable size.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 27 Jun 2017 01:40:34 +0200
parents 9fc880dff5f3
children 634b259079c5
line wrap: on
line diff
--- a/mercurial/merge.py	Tue Jun 27 01:36:20 2017 +0200
+++ b/mercurial/merge.py	Tue Jun 27 01:40:34 2017 +0200
@@ -28,7 +28,7 @@
     error,
     filemerge,
     match as matchmod,
-    obsolete,
+    obsutil,
     pycompat,
     scmutil,
     subrepo,
@@ -1588,8 +1588,8 @@
                 dirty = wc.dirty(missing=True)
                 if dirty:
                     # Branching is a bit strange to ensure we do the minimal
-                    # amount of call to obsolete.foreground.
-                    foreground = obsolete.foreground(repo, [p1.node()])
+                    # amount of call to obsutil.foreground.
+                    foreground = obsutil.foreground(repo, [p1.node()])
                     # note: the <node> variable contains a random identifier
                     if repo[node].node() in foreground:
                         pass # allow updating to successors