context: introduce the nullsub() method
authorMatt Harbison <matt_harbison@yahoo.com>
Wed, 03 Jun 2015 13:51:27 -0400
changeset 25417 95c271356a66
parent 25416 c4a92867c048
child 25418 c0995cd8ff6f
context: introduce the nullsub() method Ultimately, this will be used by scmutil. The subrepo module already imports it, so it can't import the subrepo module to access the underlying method.
mercurial/context.py
--- a/mercurial/context.py	Wed Jun 03 13:45:42 2015 -0400
+++ b/mercurial/context.py	Wed Jun 03 13:51:27 2015 -0400
@@ -251,6 +251,9 @@
     def sub(self, path):
         return subrepo.subrepo(self, path)
 
+    def nullsub(self, path, pctx):
+        return subrepo.nullsubrepo(self, path, pctx)
+
     def match(self, pats=[], include=None, exclude=None, default='glob',
               listsubrepos=False):
         r = self._repo