Show More
@@ -193,7 +193,11 b' def buildmatch(ui, repo, user, key):' | |||||
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 |
General Comments 0
You need to be logged in to leave comments.
Login now