diff mercurial/destutil.py @ 33142:4f49810a1011

obsutil: move 'successorssets' to the new modules We have a new 'obsutil' module now. We move this 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:03:01 +0200
parents 1b5c61d38a52
children c5a07a3abe7d
line wrap: on
line diff
--- a/mercurial/destutil.py	Thu Jun 29 11:29:19 2017 -0700
+++ b/mercurial/destutil.py	Tue Jun 27 01:03:01 2017 +0200
@@ -11,7 +11,7 @@
 from . import (
     bookmarks,
     error,
-    obsolete,
+    obsutil,
     scmutil,
 )
 
@@ -24,7 +24,7 @@
 
     if p1.obsolete() and not p1.children():
         # allow updating to successors
-        successors = obsolete.successorssets(repo, p1.node())
+        successors = obsutil.successorssets(repo, p1.node())
 
         # behavior of certain cases is as follows,
         #