diff mercurial/subrepo.py @ 8997:70f5d3be5917

subrepo: audit subrepo paths
author Matt Mackall <mpm@selenic.com>
date Wed, 01 Jul 2009 13:55:24 -0500
parents 105343f9f744
children 86b4a9b0ddda f783bb979fb3
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])