equal
deleted
inserted
replaced
191 (key, len(pats), user)) |
191 (key, len(pats), user)) |
192 |
192 |
193 # Branch-based ACL |
193 # Branch-based ACL |
194 if not repo: |
194 if not repo: |
195 if pats: |
195 if pats: |
196 return lambda b: '*' in pats or b in pats |
196 # If there's an asterisk (meaning "any branch"), always return True; |
|
197 # Otherwise, test if b is in pats |
|
198 if '*' in pats: |
|
199 return util.always |
|
200 return lambda b: b in pats |
197 return util.never |
201 return util.never |
198 |
202 |
199 # Path-based ACL |
203 # Path-based ACL |
200 if pats: |
204 if pats: |
201 return match.match(repo.root, '', pats) |
205 return match.match(repo.root, '', pats) |