Mercurial > public > mercurial-scm > hg
diff mercurial/util.py @ 7820:346fafc144fc
audit: be even pickier (issue1450)
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 04 Mar 2009 17:02:16 -0600 |
parents | 8a217626bb0c |
children | bc027d72c289 |
line wrap: on
line diff
--- a/mercurial/util.py Thu Feb 12 09:36:15 2009 -0700 +++ b/mercurial/util.py Wed Mar 04 17:02:16 2009 -0600 @@ -822,7 +822,7 @@ if '.hg' in path.lower(): lparts = [p.lower() for p in parts] for p in '.hg', '.hg.': - if p in lparts[1:-1]: + if p in lparts[1:]: pos = lparts.index(p) base = os.path.join(*parts[:pos]) raise Abort(_('path %r is inside repo %r') % (path, base))