Mercurial > hg
changeset 16765:754e98e0a615
acl: added some comments to easily identify branch- and path-based verifications
author | Elifarley Callado Coelho Cruz |
---|---|
date | Fri, 18 May 2012 12:48:24 -0300 |
parents | ffb68b9dbaa9 |
children | 9d778f80ad2a |
files | hgext/acl.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/acl.py Fri May 18 12:40:04 2012 -0300 +++ b/hgext/acl.py Fri May 18 12:48:24 2012 -0300 @@ -190,11 +190,13 @@ ui.debug('acl: %s enabled, %d entries for user %s\n' % (key, len(pats), user)) + # Branch-based ACL if not repo: if pats: return lambda b: '*' in pats or b in pats return util.never + # Path-based ACL if pats: return match.match(repo.root, '', pats) return match.exact(repo.root, '', [])