hgext/acl.py
changeset 16764 ffb68b9dbaa9
parent 16763 c38f96ab63cb
child 16765 754e98e0a615
equal deleted inserted replaced
16763:c38f96ab63cb 16764:ffb68b9dbaa9
   191              (key, len(pats), user))
   191              (key, len(pats), user))
   192 
   192 
   193     if not repo:
   193     if not repo:
   194         if pats:
   194         if pats:
   195             return lambda b: '*' in pats or b in pats
   195             return lambda b: '*' in pats or b in pats
   196         return lambda b: False
   196         return util.never
   197 
   197 
   198     if pats:
   198     if pats:
   199         return match.match(repo.root, '', pats)
   199         return match.match(repo.root, '', pats)
   200     return match.exact(repo.root, '', [])
   200     return match.exact(repo.root, '', [])
   201 
   201