[PATCH 3 of 5] acl: added some comments to easily identify branch- and path-based verifications
elifarley at gmail.com
elifarley at gmail.com
Mon May 21 15:26:29 CDT 2012
# HG changeset patch
# User Elifarley Callado Coelho Cruz
# Date 1337356104 10800
# Node ID 2a669647853808c0423ad51596b16090610c12b5
# Parent 8e57f10fecf6b74e8fbec6f951edfdfe1b6b9677
acl: added some comments to easily identify branch- and path-based verifications
diff --git a/hgext/acl.py b/hgext/acl.py
--- a/hgext/acl.py
+++ b/hgext/acl.py
@@ -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, '', [])
More information about the Mercurial-devel
mailing list