branch | stable |
changeset 29021 | 92d37fb3f1aa |
parent 28488 | 437c32dcec7d |
child 29223 | c04ad3d3c651 |
--- a/mercurial/context.py Thu Apr 28 08:52:13 2016 -0700 +++ b/mercurial/context.py Wed Apr 27 22:45:52 2016 -0400 @@ -275,9 +275,9 @@ except error.LookupError: return '' - def sub(self, path): + def sub(self, path, allowcreate=True): '''return a subrepo for the stored revision of path, never wdir()''' - return subrepo.subrepo(self, path) + return subrepo.subrepo(self, path, allowcreate=allowcreate) def nullsub(self, path, pctx): return subrepo.nullsubrepo(self, path, pctx)