subrepo: audit subrepo paths
authorMatt Mackall <mpm@selenic.com>
Wed, 01 Jul 2009 13:55:24 -0500
changeset 8997 70f5d3be5917
parent 8996 23e941d7f507
child 9009 196d40e7c885
subrepo: audit subrepo paths
mercurial/subrepo.py
--- a/mercurial/subrepo.py	Tue Jun 30 11:30:03 2009 +0200
+++ b/mercurial/subrepo.py	Wed Jul 01 13:55:24 2009 -0500
@@ -122,6 +122,7 @@
     localrepo = l
     hg = h
 
+    util.path_auditor(ctx._repo.root)(path)
     state = ctx.substate.get(path, nullstate)
     if state[0].startswith('['): # future expansion
         raise error.Abort('unknown subrepo source %s' % state[0])