Show More
@@ -190,11 +190,13 b' def buildmatch(ui, repo, user, key):' | |||||
190 | ui.debug('acl: %s enabled, %d entries for user %s\n' % |
|
190 | ui.debug('acl: %s enabled, %d entries for user %s\n' % | |
191 | (key, len(pats), user)) |
|
191 | (key, len(pats), user)) | |
192 |
|
192 | |||
|
193 | # Branch-based ACL | |||
193 | if not repo: |
|
194 | if not repo: | |
194 | if pats: |
|
195 | if pats: | |
195 | return lambda b: '*' in pats or b in pats |
|
196 | return lambda b: '*' in pats or b in pats | |
196 | return util.never |
|
197 | return util.never | |
197 |
|
198 | |||
|
199 | # Path-based ACL | |||
198 | if pats: |
|
200 | if pats: | |
199 | return match.match(repo.root, '', pats) |
|
201 | return match.match(repo.root, '', pats) | |
200 | return match.exact(repo.root, '', []) |
|
202 | return match.exact(repo.root, '', []) |
General Comments 0
You need to be logged in to leave comments.
Login now