Mercurial > hg
diff tests/test-acl @ 11114:62714143742f
acl: support for group definitions in section [acl.groups], which take precedence over OS-level groups
author | Elifarley Callado Coelho Cruz <elifarley@gmail.com> |
---|---|
date | Thu, 06 May 2010 14:23:14 -0300 |
parents | a869a6a42c9e |
children | f2c6b9819a6d |
line wrap: on
line diff
--- a/tests/test-acl Fri May 07 14:14:41 2010 -0500 +++ b/tests/test-acl Thu May 06 14:23:14 2010 -0300 @@ -28,7 +28,13 @@ { cat > fakegroups.py <<EOF from hgext import acl -acl._getusers = lambda x: ["fred", "betty"] +def fakegetusers(ui, group): + try: + return acl._getusersorig(ui, group) + except: + return ["fred", "betty"] +acl._getusersorig = acl._getusers +acl._getusers = fakegetusers EOF rm -f acl.config