diff options
Diffstat (limited to 'tests/test-acl.t')
-rw-r--r-- | tests/test-acl.t | 385 |
1 files changed, 86 insertions, 299 deletions
diff --git a/tests/test-acl.t b/tests/test-acl.t index 6105d5d..04680a6 100644 --- a/tests/test-acl.t +++ b/tests/test-acl.t @@ -70,6 +70,9 @@ updating to branch default 3 files updated, 0 files merged, 0 files removed, 0 files unresolved + $ echo '[extensions]' >> $HGRCPATH + $ echo 'acl =' >> $HGRCPATH + $ config=b/.hg/hgrc Extension disabled for lack of a hook @@ -82,7 +85,6 @@ Extension disabled for lack of a hook query 1; heads searching for changes all remote heads known locally - listing keys for "bookmarks" 3 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -116,12 +118,10 @@ Extension disabled for lack of a hook adding quux/file.py revisions files: 3/3 chunks (100.00%) added 3 changesets with 3 changes to 3 files - listing keys for "phases" - try to push obsolete markers to remote updating the branch cache checking for updated bookmarks - listing keys for "bookmarks" repository tip rolled back to revision 0 (undo push) + working directory now based on revision 0 0:6675d58eff77 @@ -141,7 +141,6 @@ Extension disabled for lack of acl.sources searching for changes all remote heads known locally invalidating branch cache (tip differs) - listing keys for "bookmarks" 3 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -177,12 +176,10 @@ Extension disabled for lack of acl.sources added 3 changesets with 3 changes to 3 files calling hook pretxnchangegroup.acl: hgext.acl.hook acl: changes have source "push" - skipping - listing keys for "phases" - try to push obsolete markers to remote updating the branch cache checking for updated bookmarks - listing keys for "bookmarks" repository tip rolled back to revision 0 (undo push) + working directory now based on revision 0 0:6675d58eff77 @@ -203,7 +200,6 @@ No [acl.allow]/[acl.deny] searching for changes all remote heads known locally invalidating branch cache (tip differs) - listing keys for "bookmarks" 3 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -238,23 +234,20 @@ No [acl.allow]/[acl.deny] files: 3/3 chunks (100.00%) added 3 changesets with 3 changes to 3 files calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "fred" acl: acl.allow.branches not enabled acl: acl.deny.branches not enabled acl: acl.allow not enabled acl: acl.deny not enabled acl: branch access granted: "ef1ea85a6374" on branch "default" - acl: path access granted: "ef1ea85a6374" + acl: allowing changeset ef1ea85a6374 acl: branch access granted: "f9cafe1212c8" on branch "default" - acl: path access granted: "f9cafe1212c8" + acl: allowing changeset f9cafe1212c8 acl: branch access granted: "911600dab2ae" on branch "default" - acl: path access granted: "911600dab2ae" - listing keys for "phases" - try to push obsolete markers to remote + acl: allowing changeset 911600dab2ae updating the branch cache checking for updated bookmarks - listing keys for "bookmarks" repository tip rolled back to revision 0 (undo push) + working directory now based on revision 0 0:6675d58eff77 @@ -275,7 +268,6 @@ Empty [acl.allow] searching for changes all remote heads known locally invalidating branch cache (tip differs) - listing keys for "bookmarks" 3 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -310,16 +302,16 @@ Empty [acl.allow] files: 3/3 chunks (100.00%) added 3 changesets with 3 changes to 3 files calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "fred" acl: acl.allow.branches not enabled acl: acl.deny.branches not enabled acl: acl.allow enabled, 0 entries for user fred acl: acl.deny not enabled acl: branch access granted: "ef1ea85a6374" on branch "default" - error: pretxnchangegroup.acl hook failed: acl: user "fred" not allowed on "foo/file.txt" (changeset "ef1ea85a6374") + acl: user fred not allowed on foo/file.txt + error: pretxnchangegroup.acl hook failed: acl: access denied for changeset ef1ea85a6374 transaction abort! rollback completed - abort: acl: user "fred" not allowed on "foo/file.txt" (changeset "ef1ea85a6374") + abort: acl: access denied for changeset ef1ea85a6374 no rollback information available 0:6675d58eff77 @@ -341,7 +333,6 @@ fred is allowed inside foo/ query 1; heads searching for changes all remote heads known locally - listing keys for "bookmarks" 3 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -376,20 +367,20 @@ fred is allowed inside foo/ files: 3/3 chunks (100.00%) added 3 changesets with 3 changes to 3 files calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "fred" acl: acl.allow.branches not enabled acl: acl.deny.branches not enabled acl: acl.allow enabled, 1 entries for user fred acl: acl.deny not enabled acl: branch access granted: "ef1ea85a6374" on branch "default" - acl: path access granted: "ef1ea85a6374" + acl: allowing changeset ef1ea85a6374 acl: branch access granted: "f9cafe1212c8" on branch "default" - acl: path access granted: "f9cafe1212c8" + acl: allowing changeset f9cafe1212c8 acl: branch access granted: "911600dab2ae" on branch "default" - error: pretxnchangegroup.acl hook failed: acl: user "fred" not allowed on "quux/file.py" (changeset "911600dab2ae") + acl: user fred not allowed on quux/file.py + error: pretxnchangegroup.acl hook failed: acl: access denied for changeset 911600dab2ae transaction abort! rollback completed - abort: acl: user "fred" not allowed on "quux/file.py" (changeset "911600dab2ae") + abort: acl: access denied for changeset 911600dab2ae no rollback information available 0:6675d58eff77 @@ -412,7 +403,6 @@ Empty [acl.deny] query 1; heads searching for changes all remote heads known locally - listing keys for "bookmarks" 3 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -447,16 +437,16 @@ Empty [acl.deny] files: 3/3 chunks (100.00%) added 3 changesets with 3 changes to 3 files calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "barney" acl: acl.allow.branches not enabled acl: acl.deny.branches not enabled acl: acl.allow enabled, 0 entries for user barney acl: acl.deny enabled, 0 entries for user barney acl: branch access granted: "ef1ea85a6374" on branch "default" - error: pretxnchangegroup.acl hook failed: acl: user "barney" not allowed on "foo/file.txt" (changeset "ef1ea85a6374") + acl: user barney not allowed on foo/file.txt + error: pretxnchangegroup.acl hook failed: acl: access denied for changeset ef1ea85a6374 transaction abort! rollback completed - abort: acl: user "barney" not allowed on "foo/file.txt" (changeset "ef1ea85a6374") + abort: acl: access denied for changeset ef1ea85a6374 no rollback information available 0:6675d58eff77 @@ -480,7 +470,6 @@ fred is allowed inside foo/, but not foo/bar/ (case matters) query 1; heads searching for changes all remote heads known locally - listing keys for "bookmarks" 3 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -515,20 +504,20 @@ fred is allowed inside foo/, but not foo/bar/ (case matters) files: 3/3 chunks (100.00%) added 3 changesets with 3 changes to 3 files calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "fred" acl: acl.allow.branches not enabled acl: acl.deny.branches not enabled acl: acl.allow enabled, 1 entries for user fred acl: acl.deny enabled, 1 entries for user fred acl: branch access granted: "ef1ea85a6374" on branch "default" - acl: path access granted: "ef1ea85a6374" + acl: allowing changeset ef1ea85a6374 acl: branch access granted: "f9cafe1212c8" on branch "default" - acl: path access granted: "f9cafe1212c8" + acl: allowing changeset f9cafe1212c8 acl: branch access granted: "911600dab2ae" on branch "default" - error: pretxnchangegroup.acl hook failed: acl: user "fred" not allowed on "quux/file.py" (changeset "911600dab2ae") + acl: user fred not allowed on quux/file.py + error: pretxnchangegroup.acl hook failed: acl: access denied for changeset 911600dab2ae transaction abort! rollback completed - abort: acl: user "fred" not allowed on "quux/file.py" (changeset "911600dab2ae") + abort: acl: access denied for changeset 911600dab2ae no rollback information available 0:6675d58eff77 @@ -553,7 +542,6 @@ fred is allowed inside foo/, but not foo/Bar/ query 1; heads searching for changes all remote heads known locally - listing keys for "bookmarks" 3 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -588,18 +576,18 @@ fred is allowed inside foo/, but not foo/Bar/ files: 3/3 chunks (100.00%) added 3 changesets with 3 changes to 3 files calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "fred" acl: acl.allow.branches not enabled acl: acl.deny.branches not enabled acl: acl.allow enabled, 1 entries for user fred acl: acl.deny enabled, 2 entries for user fred acl: branch access granted: "ef1ea85a6374" on branch "default" - acl: path access granted: "ef1ea85a6374" + acl: allowing changeset ef1ea85a6374 acl: branch access granted: "f9cafe1212c8" on branch "default" - error: pretxnchangegroup.acl hook failed: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8") + acl: user fred denied on foo/Bar/file.txt + error: pretxnchangegroup.acl hook failed: acl: access denied for changeset f9cafe1212c8 transaction abort! rollback completed - abort: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8") + abort: acl: access denied for changeset f9cafe1212c8 no rollback information available 0:6675d58eff77 @@ -623,7 +611,6 @@ fred is allowed inside foo/, but not foo/Bar/ query 1; heads searching for changes all remote heads known locally - listing keys for "bookmarks" 3 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -658,16 +645,16 @@ fred is allowed inside foo/, but not foo/Bar/ files: 3/3 chunks (100.00%) added 3 changesets with 3 changes to 3 files calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "barney" acl: acl.allow.branches not enabled acl: acl.deny.branches not enabled acl: acl.allow enabled, 0 entries for user barney acl: acl.deny enabled, 0 entries for user barney acl: branch access granted: "ef1ea85a6374" on branch "default" - error: pretxnchangegroup.acl hook failed: acl: user "barney" not allowed on "foo/file.txt" (changeset "ef1ea85a6374") + acl: user barney not allowed on foo/file.txt + error: pretxnchangegroup.acl hook failed: acl: access denied for changeset ef1ea85a6374 transaction abort! rollback completed - abort: acl: user "barney" not allowed on "foo/file.txt" (changeset "ef1ea85a6374") + abort: acl: access denied for changeset ef1ea85a6374 no rollback information available 0:6675d58eff77 @@ -695,7 +682,6 @@ barney is allowed everywhere query 1; heads searching for changes all remote heads known locally - listing keys for "bookmarks" 3 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -730,23 +716,20 @@ barney is allowed everywhere files: 3/3 chunks (100.00%) added 3 changesets with 3 changes to 3 files calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "barney" acl: acl.allow.branches not enabled acl: acl.deny.branches not enabled acl: acl.allow enabled, 1 entries for user barney acl: acl.deny enabled, 0 entries for user barney acl: branch access granted: "ef1ea85a6374" on branch "default" - acl: path access granted: "ef1ea85a6374" + acl: allowing changeset ef1ea85a6374 acl: branch access granted: "f9cafe1212c8" on branch "default" - acl: path access granted: "f9cafe1212c8" + acl: allowing changeset f9cafe1212c8 acl: branch access granted: "911600dab2ae" on branch "default" - acl: path access granted: "911600dab2ae" - listing keys for "phases" - try to push obsolete markers to remote + acl: allowing changeset 911600dab2ae updating the branch cache checking for updated bookmarks - listing keys for "bookmarks" repository tip rolled back to revision 0 (undo push) + working directory now based on revision 0 0:6675d58eff77 @@ -774,7 +757,6 @@ wilma can change files with a .txt extension searching for changes all remote heads known locally invalidating branch cache (tip differs) - listing keys for "bookmarks" 3 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -809,20 +791,20 @@ wilma can change files with a .txt extension files: 3/3 chunks (100.00%) added 3 changesets with 3 changes to 3 files calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "wilma" acl: acl.allow.branches not enabled acl: acl.deny.branches not enabled acl: acl.allow enabled, 1 entries for user wilma acl: acl.deny enabled, 0 entries for user wilma acl: branch access granted: "ef1ea85a6374" on branch "default" - acl: path access granted: "ef1ea85a6374" + acl: allowing changeset ef1ea85a6374 acl: branch access granted: "f9cafe1212c8" on branch "default" - acl: path access granted: "f9cafe1212c8" + acl: allowing changeset f9cafe1212c8 acl: branch access granted: "911600dab2ae" on branch "default" - error: pretxnchangegroup.acl hook failed: acl: user "wilma" not allowed on "quux/file.py" (changeset "911600dab2ae") + acl: user wilma not allowed on quux/file.py + error: pretxnchangegroup.acl hook failed: acl: access denied for changeset 911600dab2ae transaction abort! rollback completed - abort: acl: user "wilma" not allowed on "quux/file.py" (changeset "911600dab2ae") + abort: acl: access denied for changeset 911600dab2ae no rollback information available 0:6675d58eff77 @@ -853,7 +835,6 @@ file specified by acl.config does not exist query 1; heads searching for changes all remote heads known locally - listing keys for "bookmarks" 3 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -888,11 +869,10 @@ file specified by acl.config does not exist files: 3/3 chunks (100.00%) added 3 changesets with 3 changes to 3 files calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "barney" - error: pretxnchangegroup.acl hook raised an exception: [Errno 2] *: '../acl.config' (glob) + error: pretxnchangegroup.acl hook raised an exception: [Errno 2] No such file or directory: '../acl.config' transaction abort! rollback completed - abort: *: ../acl.config (glob) + abort: No such file or directory: ../acl.config no rollback information available 0:6675d58eff77 @@ -927,7 +907,6 @@ betty is allowed inside foo/ by a acl.config file query 1; heads searching for changes all remote heads known locally - listing keys for "bookmarks" 3 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -962,20 +941,20 @@ betty is allowed inside foo/ by a acl.config file files: 3/3 chunks (100.00%) added 3 changesets with 3 changes to 3 files calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "betty" acl: acl.allow.branches not enabled acl: acl.deny.branches not enabled acl: acl.allow enabled, 1 entries for user betty acl: acl.deny enabled, 0 entries for user betty acl: branch access granted: "ef1ea85a6374" on branch "default" - acl: path access granted: "ef1ea85a6374" + acl: allowing changeset ef1ea85a6374 acl: branch access granted: "f9cafe1212c8" on branch "default" - acl: path access granted: "f9cafe1212c8" + acl: allowing changeset f9cafe1212c8 acl: branch access granted: "911600dab2ae" on branch "default" - error: pretxnchangegroup.acl hook failed: acl: user "betty" not allowed on "quux/file.py" (changeset "911600dab2ae") + acl: user betty not allowed on quux/file.py + error: pretxnchangegroup.acl hook failed: acl: access denied for changeset 911600dab2ae transaction abort! rollback completed - abort: acl: user "betty" not allowed on "quux/file.py" (changeset "911600dab2ae") + abort: acl: access denied for changeset 911600dab2ae no rollback information available 0:6675d58eff77 @@ -1012,7 +991,6 @@ acl.config can set only [acl.allow]/[acl.deny] query 1; heads searching for changes all remote heads known locally - listing keys for "bookmarks" 3 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -1047,23 +1025,20 @@ acl.config can set only [acl.allow]/[acl.deny] files: 3/3 chunks (100.00%) added 3 changesets with 3 changes to 3 files calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "barney" acl: acl.allow.branches not enabled acl: acl.deny.branches not enabled acl: acl.allow enabled, 1 entries for user barney acl: acl.deny enabled, 0 entries for user barney acl: branch access granted: "ef1ea85a6374" on branch "default" - acl: path access granted: "ef1ea85a6374" + acl: allowing changeset ef1ea85a6374 acl: branch access granted: "f9cafe1212c8" on branch "default" - acl: path access granted: "f9cafe1212c8" + acl: allowing changeset f9cafe1212c8 acl: branch access granted: "911600dab2ae" on branch "default" - acl: path access granted: "911600dab2ae" - listing keys for "phases" - try to push obsolete markers to remote + acl: allowing changeset 911600dab2ae updating the branch cache checking for updated bookmarks - listing keys for "bookmarks" repository tip rolled back to revision 0 (undo push) + working directory now based on revision 0 0:6675d58eff77 @@ -1092,7 +1067,6 @@ fred is always allowed searching for changes all remote heads known locally invalidating branch cache (tip differs) - listing keys for "bookmarks" 3 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -1127,23 +1101,20 @@ fred is always allowed files: 3/3 chunks (100.00%) added 3 changesets with 3 changes to 3 files calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "fred" acl: acl.allow.branches not enabled acl: acl.deny.branches not enabled acl: acl.allow enabled, 1 entries for user fred acl: acl.deny not enabled acl: branch access granted: "ef1ea85a6374" on branch "default" - acl: path access granted: "ef1ea85a6374" + acl: allowing changeset ef1ea85a6374 acl: branch access granted: "f9cafe1212c8" on branch "default" - acl: path access granted: "f9cafe1212c8" + acl: allowing changeset f9cafe1212c8 acl: branch access granted: "911600dab2ae" on branch "default" - acl: path access granted: "911600dab2ae" - listing keys for "phases" - try to push obsolete markers to remote + acl: allowing changeset 911600dab2ae updating the branch cache checking for updated bookmarks - listing keys for "bookmarks" repository tip rolled back to revision 0 (undo push) + working directory now based on revision 0 0:6675d58eff77 @@ -1168,7 +1139,6 @@ no one is allowed inside foo/Bar/ searching for changes all remote heads known locally invalidating branch cache (tip differs) - listing keys for "bookmarks" 3 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -1203,18 +1173,18 @@ no one is allowed inside foo/Bar/ files: 3/3 chunks (100.00%) added 3 changesets with 3 changes to 3 files calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "fred" acl: acl.allow.branches not enabled acl: acl.deny.branches not enabled acl: acl.allow enabled, 1 entries for user fred acl: acl.deny enabled, 1 entries for user fred acl: branch access granted: "ef1ea85a6374" on branch "default" - acl: path access granted: "ef1ea85a6374" + acl: allowing changeset ef1ea85a6374 acl: branch access granted: "f9cafe1212c8" on branch "default" - error: pretxnchangegroup.acl hook failed: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8") + acl: user fred denied on foo/Bar/file.txt + error: pretxnchangegroup.acl hook failed: acl: access denied for changeset f9cafe1212c8 transaction abort! rollback completed - abort: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8") + abort: acl: access denied for changeset f9cafe1212c8 no rollback information available 0:6675d58eff77 @@ -1243,7 +1213,6 @@ OS-level groups query 1; heads searching for changes all remote heads known locally - listing keys for "bookmarks" 3 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -1278,24 +1247,21 @@ OS-level groups files: 3/3 chunks (100.00%) added 3 changesets with 3 changes to 3 files calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "fred" acl: acl.allow.branches not enabled acl: acl.deny.branches not enabled acl: "group1" not defined in [acl.groups] acl: acl.allow enabled, 1 entries for user fred acl: acl.deny not enabled acl: branch access granted: "ef1ea85a6374" on branch "default" - acl: path access granted: "ef1ea85a6374" + acl: allowing changeset ef1ea85a6374 acl: branch access granted: "f9cafe1212c8" on branch "default" - acl: path access granted: "f9cafe1212c8" + acl: allowing changeset f9cafe1212c8 acl: branch access granted: "911600dab2ae" on branch "default" - acl: path access granted: "911600dab2ae" - listing keys for "phases" - try to push obsolete markers to remote + acl: allowing changeset 911600dab2ae updating the branch cache checking for updated bookmarks - listing keys for "bookmarks" repository tip rolled back to revision 0 (undo push) + working directory now based on revision 0 0:6675d58eff77 @@ -1320,7 +1286,6 @@ OS-level groups searching for changes all remote heads known locally invalidating branch cache (tip differs) - listing keys for "bookmarks" 3 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -1355,7 +1320,6 @@ OS-level groups files: 3/3 chunks (100.00%) added 3 changesets with 3 changes to 3 files calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "fred" acl: acl.allow.branches not enabled acl: acl.deny.branches not enabled acl: "group1" not defined in [acl.groups] @@ -1363,12 +1327,13 @@ OS-level groups acl: "group1" not defined in [acl.groups] acl: acl.deny enabled, 1 entries for user fred acl: branch access granted: "ef1ea85a6374" on branch "default" - acl: path access granted: "ef1ea85a6374" + acl: allowing changeset ef1ea85a6374 acl: branch access granted: "f9cafe1212c8" on branch "default" - error: pretxnchangegroup.acl hook failed: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8") + acl: user fred denied on foo/Bar/file.txt + error: pretxnchangegroup.acl hook failed: acl: access denied for changeset f9cafe1212c8 transaction abort! rollback completed - abort: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8") + abort: acl: access denied for changeset f9cafe1212c8 no rollback information available 0:6675d58eff77 @@ -1396,7 +1361,6 @@ Branch acl tests setup 0 files updated, 0 files merged, 0 files removed, 0 files unresolved $ hg branch foobar marked working directory as branch foobar - (branches are permanent and global, did you want a bookmark?) $ hg commit -m 'create foobar' $ echo 'foo contents' > abc.txt $ hg add abc.txt @@ -1434,7 +1398,6 @@ No branch acls specified query 1; heads searching for changes all remote heads known locally - listing keys for "bookmarks" 4 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -1478,25 +1441,22 @@ No branch acls specified files: 4/4 chunks (100.00%) added 4 changesets with 4 changes to 4 files (+1 heads) calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "astro" acl: acl.allow.branches not enabled acl: acl.deny.branches not enabled acl: acl.allow not enabled acl: acl.deny not enabled acl: branch access granted: "ef1ea85a6374" on branch "default" - acl: path access granted: "ef1ea85a6374" + acl: allowing changeset ef1ea85a6374 acl: branch access granted: "f9cafe1212c8" on branch "default" - acl: path access granted: "f9cafe1212c8" + acl: allowing changeset f9cafe1212c8 acl: branch access granted: "911600dab2ae" on branch "default" - acl: path access granted: "911600dab2ae" + acl: allowing changeset 911600dab2ae acl: branch access granted: "e8fc755d4d82" on branch "foobar" - acl: path access granted: "e8fc755d4d82" - listing keys for "phases" - try to push obsolete markers to remote + acl: allowing changeset e8fc755d4d82 updating the branch cache checking for updated bookmarks - listing keys for "bookmarks" repository tip rolled back to revision 2 (undo push) + working directory now based on revision 2 2:fb35475503ef @@ -1518,7 +1478,6 @@ Branch acl deny test searching for changes all remote heads known locally invalidating branch cache (tip differs) - listing keys for "bookmarks" 4 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -1562,17 +1521,16 @@ Branch acl deny test files: 4/4 chunks (100.00%) added 4 changesets with 4 changes to 4 files (+1 heads) calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "astro" acl: acl.allow.branches not enabled acl: acl.deny.branches enabled, 1 entries for user astro acl: acl.allow not enabled acl: acl.deny not enabled acl: branch access granted: "ef1ea85a6374" on branch "default" - acl: path access granted: "ef1ea85a6374" + acl: allowing changeset ef1ea85a6374 acl: branch access granted: "f9cafe1212c8" on branch "default" - acl: path access granted: "f9cafe1212c8" + acl: allowing changeset f9cafe1212c8 acl: branch access granted: "911600dab2ae" on branch "default" - acl: path access granted: "911600dab2ae" + acl: allowing changeset 911600dab2ae error: pretxnchangegroup.acl hook failed: acl: user "astro" denied on branch "foobar" (changeset "e8fc755d4d82") transaction abort! rollback completed @@ -1597,7 +1555,6 @@ Branch acl empty allow test query 1; heads searching for changes all remote heads known locally - listing keys for "bookmarks" 4 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -1641,7 +1598,6 @@ Branch acl empty allow test files: 4/4 chunks (100.00%) added 4 changesets with 4 changes to 4 files (+1 heads) calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "astro" acl: acl.allow.branches enabled, 0 entries for user astro acl: acl.deny.branches not enabled acl: acl.allow not enabled @@ -1672,7 +1628,6 @@ Branch acl allow other query 1; heads searching for changes all remote heads known locally - listing keys for "bookmarks" 4 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -1716,7 +1671,6 @@ Branch acl allow other files: 4/4 chunks (100.00%) added 4 changesets with 4 changes to 4 files (+1 heads) calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "astro" acl: acl.allow.branches enabled, 0 entries for user astro acl: acl.deny.branches not enabled acl: acl.allow not enabled @@ -1741,7 +1695,6 @@ Branch acl allow other query 1; heads searching for changes all remote heads known locally - listing keys for "bookmarks" 4 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -1785,25 +1738,22 @@ Branch acl allow other files: 4/4 chunks (100.00%) added 4 changesets with 4 changes to 4 files (+1 heads) calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "george" acl: acl.allow.branches enabled, 1 entries for user george acl: acl.deny.branches not enabled acl: acl.allow not enabled acl: acl.deny not enabled acl: branch access granted: "ef1ea85a6374" on branch "default" - acl: path access granted: "ef1ea85a6374" + acl: allowing changeset ef1ea85a6374 acl: branch access granted: "f9cafe1212c8" on branch "default" - acl: path access granted: "f9cafe1212c8" + acl: allowing changeset f9cafe1212c8 acl: branch access granted: "911600dab2ae" on branch "default" - acl: path access granted: "911600dab2ae" + acl: allowing changeset 911600dab2ae acl: branch access granted: "e8fc755d4d82" on branch "foobar" - acl: path access granted: "e8fc755d4d82" - listing keys for "phases" - try to push obsolete markers to remote + acl: allowing changeset e8fc755d4d82 updating the branch cache checking for updated bookmarks - listing keys for "bookmarks" repository tip rolled back to revision 2 (undo push) + working directory now based on revision 2 2:fb35475503ef @@ -1830,7 +1780,6 @@ push foobar into the remote searching for changes all remote heads known locally invalidating branch cache (tip differs) - listing keys for "bookmarks" 4 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -1874,25 +1823,22 @@ push foobar into the remote files: 4/4 chunks (100.00%) added 4 changesets with 4 changes to 4 files (+1 heads) calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "george" acl: acl.allow.branches enabled, 1 entries for user george acl: acl.deny.branches not enabled acl: acl.allow not enabled acl: acl.deny not enabled acl: branch access granted: "ef1ea85a6374" on branch "default" - acl: path access granted: "ef1ea85a6374" + acl: allowing changeset ef1ea85a6374 acl: branch access granted: "f9cafe1212c8" on branch "default" - acl: path access granted: "f9cafe1212c8" + acl: allowing changeset f9cafe1212c8 acl: branch access granted: "911600dab2ae" on branch "default" - acl: path access granted: "911600dab2ae" + acl: allowing changeset 911600dab2ae acl: branch access granted: "e8fc755d4d82" on branch "foobar" - acl: path access granted: "e8fc755d4d82" - listing keys for "phases" - try to push obsolete markers to remote + acl: allowing changeset e8fc755d4d82 updating the branch cache checking for updated bookmarks - listing keys for "bookmarks" repository tip rolled back to revision 2 (undo push) + working directory now based on revision 2 2:fb35475503ef Branch acl conflicting deny @@ -1918,7 +1864,6 @@ Branch acl conflicting deny searching for changes all remote heads known locally invalidating branch cache (tip differs) - listing keys for "bookmarks" 4 changesets found list of changesets: ef1ea85a6374b77d6da9dcda9541f498f2d17df7 @@ -1962,7 +1907,6 @@ Branch acl conflicting deny files: 4/4 chunks (100.00%) added 4 changesets with 4 changes to 4 files (+1 heads) calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "george" acl: acl.allow.branches not enabled acl: acl.deny.branches enabled, 1 entries for user george acl: acl.allow not enabled @@ -1974,160 +1918,3 @@ Branch acl conflicting deny no rollback information available 2:fb35475503ef -User 'astro' must not be denied - - $ init_config - $ echo "[acl.deny.branches]" >> $config - $ echo "default = !astro" >> $config - $ do_push astro - Pushing as user astro - hgrc = """ - [acl] - sources = push - [extensions] - [acl.deny.branches] - default = !astro - """ - pushing to ../b - query 1; heads - searching for changes - all remote heads known locally - listing keys for "bookmarks" - 4 changesets found - list of changesets: - ef1ea85a6374b77d6da9dcda9541f498f2d17df7 - f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd - 911600dab2ae7a9baff75958b84fe606851ce955 - e8fc755d4d8217ee5b0c2bb41558c40d43b92c01 - adding changesets - bundling: 1/4 changesets (25.00%) - bundling: 2/4 changesets (50.00%) - bundling: 3/4 changesets (75.00%) - bundling: 4/4 changesets (100.00%) - bundling: 1/4 manifests (25.00%) - bundling: 2/4 manifests (50.00%) - bundling: 3/4 manifests (75.00%) - bundling: 4/4 manifests (100.00%) - bundling: abc.txt 1/4 files (25.00%) - bundling: foo/Bar/file.txt 2/4 files (50.00%) - bundling: foo/file.txt 3/4 files (75.00%) - bundling: quux/file.py 4/4 files (100.00%) - changesets: 1 chunks - add changeset ef1ea85a6374 - changesets: 2 chunks - add changeset f9cafe1212c8 - changesets: 3 chunks - add changeset 911600dab2ae - changesets: 4 chunks - add changeset e8fc755d4d82 - adding manifests - manifests: 1/4 chunks (25.00%) - manifests: 2/4 chunks (50.00%) - manifests: 3/4 chunks (75.00%) - manifests: 4/4 chunks (100.00%) - adding file changes - adding abc.txt revisions - files: 1/4 chunks (25.00%) - adding foo/Bar/file.txt revisions - files: 2/4 chunks (50.00%) - adding foo/file.txt revisions - files: 3/4 chunks (75.00%) - adding quux/file.py revisions - files: 4/4 chunks (100.00%) - added 4 changesets with 4 changes to 4 files (+1 heads) - calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "astro" - acl: acl.allow.branches not enabled - acl: acl.deny.branches enabled, 0 entries for user astro - acl: acl.allow not enabled - acl: acl.deny not enabled - acl: branch access granted: "ef1ea85a6374" on branch "default" - acl: path access granted: "ef1ea85a6374" - acl: branch access granted: "f9cafe1212c8" on branch "default" - acl: path access granted: "f9cafe1212c8" - acl: branch access granted: "911600dab2ae" on branch "default" - acl: path access granted: "911600dab2ae" - acl: branch access granted: "e8fc755d4d82" on branch "foobar" - acl: path access granted: "e8fc755d4d82" - listing keys for "phases" - try to push obsolete markers to remote - updating the branch cache - checking for updated bookmarks - listing keys for "bookmarks" - repository tip rolled back to revision 2 (undo push) - 2:fb35475503ef - - -Non-astro users must be denied - - $ do_push george - Pushing as user george - hgrc = """ - [acl] - sources = push - [extensions] - [acl.deny.branches] - default = !astro - """ - pushing to ../b - query 1; heads - searching for changes - all remote heads known locally - invalidating branch cache (tip differs) - listing keys for "bookmarks" - 4 changesets found - list of changesets: - ef1ea85a6374b77d6da9dcda9541f498f2d17df7 - f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd - 911600dab2ae7a9baff75958b84fe606851ce955 - e8fc755d4d8217ee5b0c2bb41558c40d43b92c01 - adding changesets - bundling: 1/4 changesets (25.00%) - bundling: 2/4 changesets (50.00%) - bundling: 3/4 changesets (75.00%) - bundling: 4/4 changesets (100.00%) - bundling: 1/4 manifests (25.00%) - bundling: 2/4 manifests (50.00%) - bundling: 3/4 manifests (75.00%) - bundling: 4/4 manifests (100.00%) - bundling: abc.txt 1/4 files (25.00%) - bundling: foo/Bar/file.txt 2/4 files (50.00%) - bundling: foo/file.txt 3/4 files (75.00%) - bundling: quux/file.py 4/4 files (100.00%) - changesets: 1 chunks - add changeset ef1ea85a6374 - changesets: 2 chunks - add changeset f9cafe1212c8 - changesets: 3 chunks - add changeset 911600dab2ae - changesets: 4 chunks - add changeset e8fc755d4d82 - adding manifests - manifests: 1/4 chunks (25.00%) - manifests: 2/4 chunks (50.00%) - manifests: 3/4 chunks (75.00%) - manifests: 4/4 chunks (100.00%) - adding file changes - adding abc.txt revisions - files: 1/4 chunks (25.00%) - adding foo/Bar/file.txt revisions - files: 2/4 chunks (50.00%) - adding foo/file.txt revisions - files: 3/4 chunks (75.00%) - adding quux/file.py revisions - files: 4/4 chunks (100.00%) - added 4 changesets with 4 changes to 4 files (+1 heads) - calling hook pretxnchangegroup.acl: hgext.acl.hook - acl: checking access for user "george" - acl: acl.allow.branches not enabled - acl: acl.deny.branches enabled, 1 entries for user george - acl: acl.allow not enabled - acl: acl.deny not enabled - error: pretxnchangegroup.acl hook failed: acl: user "george" denied on branch "default" (changeset "ef1ea85a6374") - transaction abort! - rollback completed - abort: acl: user "george" denied on branch "default" (changeset "ef1ea85a6374") - no rollback information available - 2:fb35475503ef - - |