diff mercurial/manifest.py @ 24635:21e1ece30f8c

util: move dirs() and finddirs() from scmutil to util An upcoming commit requires that match.py be able to call scmutil.dirs(), but when match.py imports scmutil, a dependency cycle is created. This commit avoids the cycle by moving dirs() and its related finddirs() function from scmutil to util, which match.py already depends on.
author Drew Gottlieb <drgott@google.com>
date Mon, 06 Apr 2015 14:36:08 -0700
parents ea24cf92557a
children 36872036169b
line wrap: on
line diff
--- a/mercurial/manifest.py	Mon Apr 06 13:59:36 2015 -0700
+++ b/mercurial/manifest.py	Mon Apr 06 14:36:08 2015 -0700
@@ -6,7 +6,7 @@
 # GNU General Public License version 2 or any later version.
 
 from i18n import _
-import mdiff, parsers, error, revlog, util, scmutil
+import mdiff, parsers, error, revlog, util
 import array, struct
 import os
 
@@ -217,7 +217,7 @@
 
     @propertycache
     def _dirs(self):
-        return scmutil.dirs(self)
+        return util.dirs(self)
 
     def dirs(self):
         return self._dirs
@@ -561,7 +561,7 @@
 
     @propertycache
     def _alldirs(self):
-        return scmutil.dirs(self)
+        return util.dirs(self)
 
     def dirs(self):
         return self._alldirs