diff mercurial/context.py @ 36009:55e8efa2451a

subrepo: split non-core functions to new module Resolves import cycle caused by subrepo -> cmdutil. Still we have another cycle, cmdutil -> context -> subrepo, but where I think importing context is wrong. Perhaps we'll need repo.makememctx().
author Yuya Nishihara <yuya@tcha.org>
date Tue, 06 Feb 2018 22:36:38 +0900
parents 44bc37d20271
children 38f480502043
line wrap: on
line diff
--- a/mercurial/context.py	Wed Feb 07 23:22:53 2018 +0900
+++ b/mercurial/context.py	Tue Feb 06 22:36:38 2018 +0900
@@ -46,6 +46,7 @@
     scmutil,
     sparse,
     subrepo,
+    subrepoutil,
     util,
 )
 
@@ -173,7 +174,7 @@
 
     @propertycache
     def substate(self):
-        return subrepo.state(self, self._repo.ui)
+        return subrepoutil.state(self, self._repo.ui)
 
     def subrev(self, subpath):
         return self.substate[subpath][1]