changeset 8997:70f5d3be5917

subrepo: audit subrepo paths
author Matt Mackall <mpm@selenic.com>
date Wed, 01 Jul 2009 13:55:24 -0500
parents 23e941d7f507
children 196d40e7c885
files mercurial/subrepo.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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])