Mercurial > hg
changeset 12174:7bccd04292a2
localrepo: check nested repos against working directory
This checks against what is really in the filesystem, including
subrepositories that have been added to .hgsub but not yet committed.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Tue, 07 Sep 2010 15:31:56 +0200 |
parents | 5b849148b620 |
children | c0a8f9dea0f6 |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Tue Sep 07 10:30:29 2010 +0200 +++ b/mercurial/localrepo.py Tue Sep 07 15:31:56 2010 +0200 @@ -132,10 +132,10 @@ # The old path auditor would have rejected by mistake since it # panics when it sees sub/.hg/. # - # All in all, checking against the working copy parent - # revision seems sensible since we want to prevent access to - # nested repositories on the filesystem *now*. - ctx = self['.'] + # All in all, checking against the working copy seems sensible + # since we want to prevent access to nested repositories on + # the filesystem *now*. + ctx = self[None] parts = util.splitpath(subpath) while parts: prefix = os.sep.join(parts)