equal
deleted
inserted
replaced
36 > cat > fakegroups.py <<EOF |
36 > cat > fakegroups.py <<EOF |
37 > from hgext import acl |
37 > from hgext import acl |
38 > def fakegetusers(ui, group): |
38 > def fakegetusers(ui, group): |
39 > try: |
39 > try: |
40 > return acl._getusersorig(ui, group) |
40 > return acl._getusersorig(ui, group) |
41 > except: |
41 > except BaseException: |
42 > return [b"fred", b"betty"] |
42 > return [b"fred", b"betty"] |
43 > acl._getusersorig = acl._getusers |
43 > acl._getusersorig = acl._getusers |
44 > acl._getusers = fakegetusers |
44 > acl._getusers = fakegetusers |
45 > EOF |
45 > EOF |
46 > rm -f acl.config |
46 > rm -f acl.config |