##// END OF EJS Templates
audit: be even pickier (issue1450)
Matt Mackall -
r7820:346fafc1 default
parent child Browse files
Show More
@@ -822,7 +822,7 b' class path_auditor(object):'
822 if '.hg' in path.lower():
822 if '.hg' in path.lower():
823 lparts = [p.lower() for p in parts]
823 lparts = [p.lower() for p in parts]
824 for p in '.hg', '.hg.':
824 for p in '.hg', '.hg.':
825 if p in lparts[1:-1]:
825 if p in lparts[1:]:
826 pos = lparts.index(p)
826 pos = lparts.index(p)
827 base = os.path.join(*parts[:pos])
827 base = os.path.join(*parts[:pos])
828 raise Abort(_('path %r is inside repo %r') % (path, base))
828 raise Abort(_('path %r is inside repo %r') % (path, base))
@@ -159,7 +159,7 b' f mammals/Procyonidae/raccoon Procy'
159 f mammals/skunk skunk
159 f mammals/skunk skunk
160
160
161 hg debugwalk .hg
161 hg debugwalk .hg
162 .hg: No such file or directory
162 abort: path 'mammals/.hg' is inside repo 'mammals'
163
163
164 hg debugwalk ../.hg
164 hg debugwalk ../.hg
165 abort: path contains illegal component: .hg
165 abort: path contains illegal component: .hg
@@ -208,7 +208,7 b' hg debugwalk beans/../.hg/data'
208 abort: path contains illegal component: .hg/data
208 abort: path contains illegal component: .hg/data
209
209
210 hg debugwalk beans/.hg
210 hg debugwalk beans/.hg
211 beans/.hg: No such file or directory
211 abort: path 'beans/.hg' is inside repo 'beans'
212
212
213 hg debugwalk glob:*
213 hg debugwalk glob:*
214 f fennel fennel
214 f fennel fennel
General Comments 0
You need to be logged in to leave comments. Login now