# HG changeset patch # User Matt Harbison # Date 2015-06-03 17:51:27 # Node ID 95c271356a66d0e607c4d938d65077858703cf21 # Parent c4a92867c048b725ada6f5f38ae88c27515297dc 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. diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -251,6 +251,9 @@ class basectx(object): 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