Show More
@@ -216,6 +216,8 b' def hook(ui, repo, hooktype, node=None, ' | |||||
216 | if user is None: |
|
216 | if user is None: | |
217 | user = getpass.getuser() |
|
217 | user = getpass.getuser() | |
218 |
|
218 | |||
|
219 | ui.debug('acl: checking access for user "%s"\n' % user) | |||
|
220 | ||||
219 | cfg = ui.config('acl', 'config') |
|
221 | cfg = ui.config('acl', 'config') | |
220 | if cfg: |
|
222 | if cfg: | |
221 | ui.readconfig(cfg, sections = ['acl.groups', 'acl.allow.branches', |
|
223 | ui.readconfig(cfg, sections = ['acl.groups', 'acl.allow.branches', | |
@@ -242,9 +244,9 b' def hook(ui, repo, hooktype, node=None, ' | |||||
242 |
|
244 | |||
243 | for f in ctx.files(): |
|
245 | for f in ctx.files(): | |
244 | if deny and deny(f): |
|
246 | if deny and deny(f): | |
245 |
ui. |
|
247 | raise util.Abort(_('acl: user "%s" denied on "%s"' | |
246 | raise util.Abort(_('acl: access denied for changeset %s') % ctx) |
|
248 | ' (changeset "%s")') % (user, f, ctx)) | |
247 | if allow and not allow(f): |
|
249 | if allow and not allow(f): | |
248 |
ui. |
|
250 | raise util.Abort(_('acl: user "%s" not allowed on "%s"' | |
249 | raise util.Abort(_('acl: access denied for changeset %s') % ctx) |
|
251 | ' (changeset "%s")') % (user, f, ctx)) | |
250 |
ui.debug('acl: |
|
252 | ui.debug('acl: path access granted: "%s"\n' % ctx) |
@@ -232,16 +232,17 b' No [acl.allow]/[acl.deny]' | |||||
232 | files: 3/3 chunks (100.00%) |
|
232 | files: 3/3 chunks (100.00%) | |
233 | added 3 changesets with 3 changes to 3 files |
|
233 | added 3 changesets with 3 changes to 3 files | |
234 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
234 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
235 | acl: checking access for user "fred" | |||
235 | acl: acl.allow.branches not enabled |
|
236 | acl: acl.allow.branches not enabled | |
236 | acl: acl.deny.branches not enabled |
|
237 | acl: acl.deny.branches not enabled | |
237 | acl: acl.allow not enabled |
|
238 | acl: acl.allow not enabled | |
238 | acl: acl.deny not enabled |
|
239 | acl: acl.deny not enabled | |
239 | acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
240 | acl: branch access granted: "ef1ea85a6374" on branch "default" | |
240 |
acl: |
|
241 | acl: path access granted: "ef1ea85a6374" | |
241 | acl: branch access granted: "f9cafe1212c8" on branch "default" |
|
242 | acl: branch access granted: "f9cafe1212c8" on branch "default" | |
242 |
acl: |
|
243 | acl: path access granted: "f9cafe1212c8" | |
243 | acl: branch access granted: "911600dab2ae" on branch "default" |
|
244 | acl: branch access granted: "911600dab2ae" on branch "default" | |
244 |
acl: |
|
245 | acl: path access granted: "911600dab2ae" | |
245 | updating the branch cache |
|
246 | updating the branch cache | |
246 | checking for updated bookmarks |
|
247 | checking for updated bookmarks | |
247 | repository tip rolled back to revision 0 (undo push) |
|
248 | repository tip rolled back to revision 0 (undo push) | |
@@ -299,16 +300,16 b' Empty [acl.allow]' | |||||
299 | files: 3/3 chunks (100.00%) |
|
300 | files: 3/3 chunks (100.00%) | |
300 | added 3 changesets with 3 changes to 3 files |
|
301 | added 3 changesets with 3 changes to 3 files | |
301 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
302 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
303 | acl: checking access for user "fred" | |||
302 | acl: acl.allow.branches not enabled |
|
304 | acl: acl.allow.branches not enabled | |
303 | acl: acl.deny.branches not enabled |
|
305 | acl: acl.deny.branches not enabled | |
304 | acl: acl.allow enabled, 0 entries for user fred |
|
306 | acl: acl.allow enabled, 0 entries for user fred | |
305 | acl: acl.deny not enabled |
|
307 | acl: acl.deny not enabled | |
306 | acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
308 | acl: branch access granted: "ef1ea85a6374" on branch "default" | |
307 | acl: user fred not allowed on foo/file.txt |
|
309 | error: pretxnchangegroup.acl hook failed: acl: user "fred" not allowed on "foo/file.txt" (changeset "ef1ea85a6374") | |
308 | error: pretxnchangegroup.acl hook failed: acl: access denied for changeset ef1ea85a6374 |
|
|||
309 | transaction abort! |
|
310 | transaction abort! | |
310 | rollback completed |
|
311 | rollback completed | |
311 |
abort: acl: |
|
312 | abort: acl: user "fred" not allowed on "foo/file.txt" (changeset "ef1ea85a6374") | |
312 | no rollback information available |
|
313 | no rollback information available | |
313 | 0:6675d58eff77 |
|
314 | 0:6675d58eff77 | |
314 |
|
315 | |||
@@ -364,20 +365,20 b' fred is allowed inside foo/' | |||||
364 | files: 3/3 chunks (100.00%) |
|
365 | files: 3/3 chunks (100.00%) | |
365 | added 3 changesets with 3 changes to 3 files |
|
366 | added 3 changesets with 3 changes to 3 files | |
366 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
367 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
368 | acl: checking access for user "fred" | |||
367 | acl: acl.allow.branches not enabled |
|
369 | acl: acl.allow.branches not enabled | |
368 | acl: acl.deny.branches not enabled |
|
370 | acl: acl.deny.branches not enabled | |
369 | acl: acl.allow enabled, 1 entries for user fred |
|
371 | acl: acl.allow enabled, 1 entries for user fred | |
370 | acl: acl.deny not enabled |
|
372 | acl: acl.deny not enabled | |
371 | acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
373 | acl: branch access granted: "ef1ea85a6374" on branch "default" | |
372 |
acl: |
|
374 | acl: path access granted: "ef1ea85a6374" | |
373 | acl: branch access granted: "f9cafe1212c8" on branch "default" |
|
375 | acl: branch access granted: "f9cafe1212c8" on branch "default" | |
374 |
acl: |
|
376 | acl: path access granted: "f9cafe1212c8" | |
375 | acl: branch access granted: "911600dab2ae" on branch "default" |
|
377 | acl: branch access granted: "911600dab2ae" on branch "default" | |
376 | acl: user fred not allowed on quux/file.py |
|
378 | error: pretxnchangegroup.acl hook failed: acl: user "fred" not allowed on "quux/file.py" (changeset "911600dab2ae") | |
377 | error: pretxnchangegroup.acl hook failed: acl: access denied for changeset 911600dab2ae |
|
|||
378 | transaction abort! |
|
379 | transaction abort! | |
379 | rollback completed |
|
380 | rollback completed | |
380 |
abort: acl: |
|
381 | abort: acl: user "fred" not allowed on "quux/file.py" (changeset "911600dab2ae") | |
381 | no rollback information available |
|
382 | no rollback information available | |
382 | 0:6675d58eff77 |
|
383 | 0:6675d58eff77 | |
383 |
|
384 | |||
@@ -434,16 +435,16 b' Empty [acl.deny]' | |||||
434 | files: 3/3 chunks (100.00%) |
|
435 | files: 3/3 chunks (100.00%) | |
435 | added 3 changesets with 3 changes to 3 files |
|
436 | added 3 changesets with 3 changes to 3 files | |
436 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
437 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
438 | acl: checking access for user "barney" | |||
437 | acl: acl.allow.branches not enabled |
|
439 | acl: acl.allow.branches not enabled | |
438 | acl: acl.deny.branches not enabled |
|
440 | acl: acl.deny.branches not enabled | |
439 | acl: acl.allow enabled, 0 entries for user barney |
|
441 | acl: acl.allow enabled, 0 entries for user barney | |
440 | acl: acl.deny enabled, 0 entries for user barney |
|
442 | acl: acl.deny enabled, 0 entries for user barney | |
441 | acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
443 | acl: branch access granted: "ef1ea85a6374" on branch "default" | |
442 | acl: user barney not allowed on foo/file.txt |
|
444 | error: pretxnchangegroup.acl hook failed: acl: user "barney" not allowed on "foo/file.txt" (changeset "ef1ea85a6374") | |
443 | error: pretxnchangegroup.acl hook failed: acl: access denied for changeset ef1ea85a6374 |
|
|||
444 | transaction abort! |
|
445 | transaction abort! | |
445 | rollback completed |
|
446 | rollback completed | |
446 |
abort: acl: |
|
447 | abort: acl: user "barney" not allowed on "foo/file.txt" (changeset "ef1ea85a6374") | |
447 | no rollback information available |
|
448 | no rollback information available | |
448 | 0:6675d58eff77 |
|
449 | 0:6675d58eff77 | |
449 |
|
450 | |||
@@ -501,20 +502,20 b' fred is allowed inside foo/, but not foo' | |||||
501 | files: 3/3 chunks (100.00%) |
|
502 | files: 3/3 chunks (100.00%) | |
502 | added 3 changesets with 3 changes to 3 files |
|
503 | added 3 changesets with 3 changes to 3 files | |
503 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
504 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
505 | acl: checking access for user "fred" | |||
504 | acl: acl.allow.branches not enabled |
|
506 | acl: acl.allow.branches not enabled | |
505 | acl: acl.deny.branches not enabled |
|
507 | acl: acl.deny.branches not enabled | |
506 | acl: acl.allow enabled, 1 entries for user fred |
|
508 | acl: acl.allow enabled, 1 entries for user fred | |
507 | acl: acl.deny enabled, 1 entries for user fred |
|
509 | acl: acl.deny enabled, 1 entries for user fred | |
508 | acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
510 | acl: branch access granted: "ef1ea85a6374" on branch "default" | |
509 |
acl: |
|
511 | acl: path access granted: "ef1ea85a6374" | |
510 | acl: branch access granted: "f9cafe1212c8" on branch "default" |
|
512 | acl: branch access granted: "f9cafe1212c8" on branch "default" | |
511 |
acl: |
|
513 | acl: path access granted: "f9cafe1212c8" | |
512 | acl: branch access granted: "911600dab2ae" on branch "default" |
|
514 | acl: branch access granted: "911600dab2ae" on branch "default" | |
513 | acl: user fred not allowed on quux/file.py |
|
515 | error: pretxnchangegroup.acl hook failed: acl: user "fred" not allowed on "quux/file.py" (changeset "911600dab2ae") | |
514 | error: pretxnchangegroup.acl hook failed: acl: access denied for changeset 911600dab2ae |
|
|||
515 | transaction abort! |
|
516 | transaction abort! | |
516 | rollback completed |
|
517 | rollback completed | |
517 |
abort: acl: |
|
518 | abort: acl: user "fred" not allowed on "quux/file.py" (changeset "911600dab2ae") | |
518 | no rollback information available |
|
519 | no rollback information available | |
519 | 0:6675d58eff77 |
|
520 | 0:6675d58eff77 | |
520 |
|
521 | |||
@@ -573,18 +574,18 b' fred is allowed inside foo/, but not foo' | |||||
573 | files: 3/3 chunks (100.00%) |
|
574 | files: 3/3 chunks (100.00%) | |
574 | added 3 changesets with 3 changes to 3 files |
|
575 | added 3 changesets with 3 changes to 3 files | |
575 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
576 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
577 | acl: checking access for user "fred" | |||
576 | acl: acl.allow.branches not enabled |
|
578 | acl: acl.allow.branches not enabled | |
577 | acl: acl.deny.branches not enabled |
|
579 | acl: acl.deny.branches not enabled | |
578 | acl: acl.allow enabled, 1 entries for user fred |
|
580 | acl: acl.allow enabled, 1 entries for user fred | |
579 | acl: acl.deny enabled, 2 entries for user fred |
|
581 | acl: acl.deny enabled, 2 entries for user fred | |
580 | acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
582 | acl: branch access granted: "ef1ea85a6374" on branch "default" | |
581 |
acl: |
|
583 | acl: path access granted: "ef1ea85a6374" | |
582 | acl: branch access granted: "f9cafe1212c8" on branch "default" |
|
584 | acl: branch access granted: "f9cafe1212c8" on branch "default" | |
583 | acl: user fred denied on foo/Bar/file.txt |
|
585 | error: pretxnchangegroup.acl hook failed: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8") | |
584 | error: pretxnchangegroup.acl hook failed: acl: access denied for changeset f9cafe1212c8 |
|
|||
585 | transaction abort! |
|
586 | transaction abort! | |
586 | rollback completed |
|
587 | rollback completed | |
587 |
abort: acl: |
|
588 | abort: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8") | |
588 | no rollback information available |
|
589 | no rollback information available | |
589 | 0:6675d58eff77 |
|
590 | 0:6675d58eff77 | |
590 |
|
591 | |||
@@ -642,16 +643,16 b' fred is allowed inside foo/, but not foo' | |||||
642 | files: 3/3 chunks (100.00%) |
|
643 | files: 3/3 chunks (100.00%) | |
643 | added 3 changesets with 3 changes to 3 files |
|
644 | added 3 changesets with 3 changes to 3 files | |
644 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
645 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
646 | acl: checking access for user "barney" | |||
645 | acl: acl.allow.branches not enabled |
|
647 | acl: acl.allow.branches not enabled | |
646 | acl: acl.deny.branches not enabled |
|
648 | acl: acl.deny.branches not enabled | |
647 | acl: acl.allow enabled, 0 entries for user barney |
|
649 | acl: acl.allow enabled, 0 entries for user barney | |
648 | acl: acl.deny enabled, 0 entries for user barney |
|
650 | acl: acl.deny enabled, 0 entries for user barney | |
649 | acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
651 | acl: branch access granted: "ef1ea85a6374" on branch "default" | |
650 | acl: user barney not allowed on foo/file.txt |
|
652 | error: pretxnchangegroup.acl hook failed: acl: user "barney" not allowed on "foo/file.txt" (changeset "ef1ea85a6374") | |
651 | error: pretxnchangegroup.acl hook failed: acl: access denied for changeset ef1ea85a6374 |
|
|||
652 | transaction abort! |
|
653 | transaction abort! | |
653 | rollback completed |
|
654 | rollback completed | |
654 |
abort: acl: |
|
655 | abort: acl: user "barney" not allowed on "foo/file.txt" (changeset "ef1ea85a6374") | |
655 | no rollback information available |
|
656 | no rollback information available | |
656 | 0:6675d58eff77 |
|
657 | 0:6675d58eff77 | |
657 |
|
658 | |||
@@ -713,16 +714,17 b' barney is allowed everywhere' | |||||
713 | files: 3/3 chunks (100.00%) |
|
714 | files: 3/3 chunks (100.00%) | |
714 | added 3 changesets with 3 changes to 3 files |
|
715 | added 3 changesets with 3 changes to 3 files | |
715 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
716 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
717 | acl: checking access for user "barney" | |||
716 | acl: acl.allow.branches not enabled |
|
718 | acl: acl.allow.branches not enabled | |
717 | acl: acl.deny.branches not enabled |
|
719 | acl: acl.deny.branches not enabled | |
718 | acl: acl.allow enabled, 1 entries for user barney |
|
720 | acl: acl.allow enabled, 1 entries for user barney | |
719 | acl: acl.deny enabled, 0 entries for user barney |
|
721 | acl: acl.deny enabled, 0 entries for user barney | |
720 | acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
722 | acl: branch access granted: "ef1ea85a6374" on branch "default" | |
721 |
acl: |
|
723 | acl: path access granted: "ef1ea85a6374" | |
722 | acl: branch access granted: "f9cafe1212c8" on branch "default" |
|
724 | acl: branch access granted: "f9cafe1212c8" on branch "default" | |
723 |
acl: |
|
725 | acl: path access granted: "f9cafe1212c8" | |
724 | acl: branch access granted: "911600dab2ae" on branch "default" |
|
726 | acl: branch access granted: "911600dab2ae" on branch "default" | |
725 |
acl: |
|
727 | acl: path access granted: "911600dab2ae" | |
726 | updating the branch cache |
|
728 | updating the branch cache | |
727 | checking for updated bookmarks |
|
729 | checking for updated bookmarks | |
728 | repository tip rolled back to revision 0 (undo push) |
|
730 | repository tip rolled back to revision 0 (undo push) | |
@@ -787,20 +789,20 b' wilma can change files with a .txt exten' | |||||
787 | files: 3/3 chunks (100.00%) |
|
789 | files: 3/3 chunks (100.00%) | |
788 | added 3 changesets with 3 changes to 3 files |
|
790 | added 3 changesets with 3 changes to 3 files | |
789 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
791 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
792 | acl: checking access for user "wilma" | |||
790 | acl: acl.allow.branches not enabled |
|
793 | acl: acl.allow.branches not enabled | |
791 | acl: acl.deny.branches not enabled |
|
794 | acl: acl.deny.branches not enabled | |
792 | acl: acl.allow enabled, 1 entries for user wilma |
|
795 | acl: acl.allow enabled, 1 entries for user wilma | |
793 | acl: acl.deny enabled, 0 entries for user wilma |
|
796 | acl: acl.deny enabled, 0 entries for user wilma | |
794 | acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
797 | acl: branch access granted: "ef1ea85a6374" on branch "default" | |
795 |
acl: |
|
798 | acl: path access granted: "ef1ea85a6374" | |
796 | acl: branch access granted: "f9cafe1212c8" on branch "default" |
|
799 | acl: branch access granted: "f9cafe1212c8" on branch "default" | |
797 |
acl: |
|
800 | acl: path access granted: "f9cafe1212c8" | |
798 | acl: branch access granted: "911600dab2ae" on branch "default" |
|
801 | acl: branch access granted: "911600dab2ae" on branch "default" | |
799 | acl: user wilma not allowed on quux/file.py |
|
802 | error: pretxnchangegroup.acl hook failed: acl: user "wilma" not allowed on "quux/file.py" (changeset "911600dab2ae") | |
800 | error: pretxnchangegroup.acl hook failed: acl: access denied for changeset 911600dab2ae |
|
|||
801 | transaction abort! |
|
803 | transaction abort! | |
802 | rollback completed |
|
804 | rollback completed | |
803 |
abort: acl: |
|
805 | abort: acl: user "wilma" not allowed on "quux/file.py" (changeset "911600dab2ae") | |
804 | no rollback information available |
|
806 | no rollback information available | |
805 | 0:6675d58eff77 |
|
807 | 0:6675d58eff77 | |
806 |
|
808 | |||
@@ -865,6 +867,7 b' file specified by acl.config does not ex' | |||||
865 | files: 3/3 chunks (100.00%) |
|
867 | files: 3/3 chunks (100.00%) | |
866 | added 3 changesets with 3 changes to 3 files |
|
868 | added 3 changesets with 3 changes to 3 files | |
867 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
869 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
870 | acl: checking access for user "barney" | |||
868 | error: pretxnchangegroup.acl hook raised an exception: [Errno 2] No such file or directory: '../acl.config' |
|
871 | error: pretxnchangegroup.acl hook raised an exception: [Errno 2] No such file or directory: '../acl.config' | |
869 | transaction abort! |
|
872 | transaction abort! | |
870 | rollback completed |
|
873 | rollback completed | |
@@ -937,20 +940,20 b' betty is allowed inside foo/ by a acl.co' | |||||
937 | files: 3/3 chunks (100.00%) |
|
940 | files: 3/3 chunks (100.00%) | |
938 | added 3 changesets with 3 changes to 3 files |
|
941 | added 3 changesets with 3 changes to 3 files | |
939 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
942 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
943 | acl: checking access for user "betty" | |||
940 | acl: acl.allow.branches not enabled |
|
944 | acl: acl.allow.branches not enabled | |
941 | acl: acl.deny.branches not enabled |
|
945 | acl: acl.deny.branches not enabled | |
942 | acl: acl.allow enabled, 1 entries for user betty |
|
946 | acl: acl.allow enabled, 1 entries for user betty | |
943 | acl: acl.deny enabled, 0 entries for user betty |
|
947 | acl: acl.deny enabled, 0 entries for user betty | |
944 | acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
948 | acl: branch access granted: "ef1ea85a6374" on branch "default" | |
945 |
acl: |
|
949 | acl: path access granted: "ef1ea85a6374" | |
946 | acl: branch access granted: "f9cafe1212c8" on branch "default" |
|
950 | acl: branch access granted: "f9cafe1212c8" on branch "default" | |
947 |
acl: |
|
951 | acl: path access granted: "f9cafe1212c8" | |
948 | acl: branch access granted: "911600dab2ae" on branch "default" |
|
952 | acl: branch access granted: "911600dab2ae" on branch "default" | |
949 | acl: user betty not allowed on quux/file.py |
|
953 | error: pretxnchangegroup.acl hook failed: acl: user "betty" not allowed on "quux/file.py" (changeset "911600dab2ae") | |
950 | error: pretxnchangegroup.acl hook failed: acl: access denied for changeset 911600dab2ae |
|
|||
951 | transaction abort! |
|
954 | transaction abort! | |
952 | rollback completed |
|
955 | rollback completed | |
953 |
abort: acl: |
|
956 | abort: acl: user "betty" not allowed on "quux/file.py" (changeset "911600dab2ae") | |
954 | no rollback information available |
|
957 | no rollback information available | |
955 | 0:6675d58eff77 |
|
958 | 0:6675d58eff77 | |
956 |
|
959 | |||
@@ -1021,16 +1024,17 b' acl.config can set only [acl.allow]/[acl' | |||||
1021 | files: 3/3 chunks (100.00%) |
|
1024 | files: 3/3 chunks (100.00%) | |
1022 | added 3 changesets with 3 changes to 3 files |
|
1025 | added 3 changesets with 3 changes to 3 files | |
1023 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
1026 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
1027 | acl: checking access for user "barney" | |||
1024 | acl: acl.allow.branches not enabled |
|
1028 | acl: acl.allow.branches not enabled | |
1025 | acl: acl.deny.branches not enabled |
|
1029 | acl: acl.deny.branches not enabled | |
1026 | acl: acl.allow enabled, 1 entries for user barney |
|
1030 | acl: acl.allow enabled, 1 entries for user barney | |
1027 | acl: acl.deny enabled, 0 entries for user barney |
|
1031 | acl: acl.deny enabled, 0 entries for user barney | |
1028 | acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
1032 | acl: branch access granted: "ef1ea85a6374" on branch "default" | |
1029 |
acl: |
|
1033 | acl: path access granted: "ef1ea85a6374" | |
1030 | acl: branch access granted: "f9cafe1212c8" on branch "default" |
|
1034 | acl: branch access granted: "f9cafe1212c8" on branch "default" | |
1031 |
acl: |
|
1035 | acl: path access granted: "f9cafe1212c8" | |
1032 | acl: branch access granted: "911600dab2ae" on branch "default" |
|
1036 | acl: branch access granted: "911600dab2ae" on branch "default" | |
1033 |
acl: |
|
1037 | acl: path access granted: "911600dab2ae" | |
1034 | updating the branch cache |
|
1038 | updating the branch cache | |
1035 | checking for updated bookmarks |
|
1039 | checking for updated bookmarks | |
1036 | repository tip rolled back to revision 0 (undo push) |
|
1040 | repository tip rolled back to revision 0 (undo push) | |
@@ -1096,16 +1100,17 b' fred is always allowed' | |||||
1096 | files: 3/3 chunks (100.00%) |
|
1100 | files: 3/3 chunks (100.00%) | |
1097 | added 3 changesets with 3 changes to 3 files |
|
1101 | added 3 changesets with 3 changes to 3 files | |
1098 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
1102 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
1103 | acl: checking access for user "fred" | |||
1099 | acl: acl.allow.branches not enabled |
|
1104 | acl: acl.allow.branches not enabled | |
1100 | acl: acl.deny.branches not enabled |
|
1105 | acl: acl.deny.branches not enabled | |
1101 | acl: acl.allow enabled, 1 entries for user fred |
|
1106 | acl: acl.allow enabled, 1 entries for user fred | |
1102 | acl: acl.deny not enabled |
|
1107 | acl: acl.deny not enabled | |
1103 | acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
1108 | acl: branch access granted: "ef1ea85a6374" on branch "default" | |
1104 |
acl: |
|
1109 | acl: path access granted: "ef1ea85a6374" | |
1105 | acl: branch access granted: "f9cafe1212c8" on branch "default" |
|
1110 | acl: branch access granted: "f9cafe1212c8" on branch "default" | |
1106 |
acl: |
|
1111 | acl: path access granted: "f9cafe1212c8" | |
1107 | acl: branch access granted: "911600dab2ae" on branch "default" |
|
1112 | acl: branch access granted: "911600dab2ae" on branch "default" | |
1108 |
acl: |
|
1113 | acl: path access granted: "911600dab2ae" | |
1109 | updating the branch cache |
|
1114 | updating the branch cache | |
1110 | checking for updated bookmarks |
|
1115 | checking for updated bookmarks | |
1111 | repository tip rolled back to revision 0 (undo push) |
|
1116 | repository tip rolled back to revision 0 (undo push) | |
@@ -1167,18 +1172,18 b' no one is allowed inside foo/Bar/' | |||||
1167 | files: 3/3 chunks (100.00%) |
|
1172 | files: 3/3 chunks (100.00%) | |
1168 | added 3 changesets with 3 changes to 3 files |
|
1173 | added 3 changesets with 3 changes to 3 files | |
1169 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
1174 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
1175 | acl: checking access for user "fred" | |||
1170 | acl: acl.allow.branches not enabled |
|
1176 | acl: acl.allow.branches not enabled | |
1171 | acl: acl.deny.branches not enabled |
|
1177 | acl: acl.deny.branches not enabled | |
1172 | acl: acl.allow enabled, 1 entries for user fred |
|
1178 | acl: acl.allow enabled, 1 entries for user fred | |
1173 | acl: acl.deny enabled, 1 entries for user fred |
|
1179 | acl: acl.deny enabled, 1 entries for user fred | |
1174 | acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
1180 | acl: branch access granted: "ef1ea85a6374" on branch "default" | |
1175 |
acl: |
|
1181 | acl: path access granted: "ef1ea85a6374" | |
1176 | acl: branch access granted: "f9cafe1212c8" on branch "default" |
|
1182 | acl: branch access granted: "f9cafe1212c8" on branch "default" | |
1177 | acl: user fred denied on foo/Bar/file.txt |
|
1183 | error: pretxnchangegroup.acl hook failed: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8") | |
1178 | error: pretxnchangegroup.acl hook failed: acl: access denied for changeset f9cafe1212c8 |
|
|||
1179 | transaction abort! |
|
1184 | transaction abort! | |
1180 | rollback completed |
|
1185 | rollback completed | |
1181 |
abort: acl: |
|
1186 | abort: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8") | |
1182 | no rollback information available |
|
1187 | no rollback information available | |
1183 | 0:6675d58eff77 |
|
1188 | 0:6675d58eff77 | |
1184 |
|
1189 | |||
@@ -1241,17 +1246,18 b' OS-level groups' | |||||
1241 | files: 3/3 chunks (100.00%) |
|
1246 | files: 3/3 chunks (100.00%) | |
1242 | added 3 changesets with 3 changes to 3 files |
|
1247 | added 3 changesets with 3 changes to 3 files | |
1243 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
1248 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
1249 | acl: checking access for user "fred" | |||
1244 | acl: acl.allow.branches not enabled |
|
1250 | acl: acl.allow.branches not enabled | |
1245 | acl: acl.deny.branches not enabled |
|
1251 | acl: acl.deny.branches not enabled | |
1246 | acl: "group1" not defined in [acl.groups] |
|
1252 | acl: "group1" not defined in [acl.groups] | |
1247 | acl: acl.allow enabled, 1 entries for user fred |
|
1253 | acl: acl.allow enabled, 1 entries for user fred | |
1248 | acl: acl.deny not enabled |
|
1254 | acl: acl.deny not enabled | |
1249 | acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
1255 | acl: branch access granted: "ef1ea85a6374" on branch "default" | |
1250 |
acl: |
|
1256 | acl: path access granted: "ef1ea85a6374" | |
1251 | acl: branch access granted: "f9cafe1212c8" on branch "default" |
|
1257 | acl: branch access granted: "f9cafe1212c8" on branch "default" | |
1252 |
acl: |
|
1258 | acl: path access granted: "f9cafe1212c8" | |
1253 | acl: branch access granted: "911600dab2ae" on branch "default" |
|
1259 | acl: branch access granted: "911600dab2ae" on branch "default" | |
1254 |
acl: |
|
1260 | acl: path access granted: "911600dab2ae" | |
1255 | updating the branch cache |
|
1261 | updating the branch cache | |
1256 | checking for updated bookmarks |
|
1262 | checking for updated bookmarks | |
1257 | repository tip rolled back to revision 0 (undo push) |
|
1263 | repository tip rolled back to revision 0 (undo push) | |
@@ -1313,6 +1319,7 b' OS-level groups' | |||||
1313 | files: 3/3 chunks (100.00%) |
|
1319 | files: 3/3 chunks (100.00%) | |
1314 | added 3 changesets with 3 changes to 3 files |
|
1320 | added 3 changesets with 3 changes to 3 files | |
1315 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
1321 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
1322 | acl: checking access for user "fred" | |||
1316 | acl: acl.allow.branches not enabled |
|
1323 | acl: acl.allow.branches not enabled | |
1317 | acl: acl.deny.branches not enabled |
|
1324 | acl: acl.deny.branches not enabled | |
1318 | acl: "group1" not defined in [acl.groups] |
|
1325 | acl: "group1" not defined in [acl.groups] | |
@@ -1320,13 +1327,12 b' OS-level groups' | |||||
1320 | acl: "group1" not defined in [acl.groups] |
|
1327 | acl: "group1" not defined in [acl.groups] | |
1321 | acl: acl.deny enabled, 1 entries for user fred |
|
1328 | acl: acl.deny enabled, 1 entries for user fred | |
1322 | acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
1329 | acl: branch access granted: "ef1ea85a6374" on branch "default" | |
1323 |
acl: |
|
1330 | acl: path access granted: "ef1ea85a6374" | |
1324 | acl: branch access granted: "f9cafe1212c8" on branch "default" |
|
1331 | acl: branch access granted: "f9cafe1212c8" on branch "default" | |
1325 | acl: user fred denied on foo/Bar/file.txt |
|
1332 | error: pretxnchangegroup.acl hook failed: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8") | |
1326 | error: pretxnchangegroup.acl hook failed: acl: access denied for changeset f9cafe1212c8 |
|
|||
1327 | transaction abort! |
|
1333 | transaction abort! | |
1328 | rollback completed |
|
1334 | rollback completed | |
1329 |
abort: acl: |
|
1335 | abort: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8") | |
1330 | no rollback information available |
|
1336 | no rollback information available | |
1331 | 0:6675d58eff77 |
|
1337 | 0:6675d58eff77 | |
1332 |
|
1338 | |||
@@ -1434,18 +1440,19 b' No branch acls specified' | |||||
1434 | files: 4/4 chunks (100.00%) |
|
1440 | files: 4/4 chunks (100.00%) | |
1435 | added 4 changesets with 4 changes to 4 files (+1 heads) |
|
1441 | added 4 changesets with 4 changes to 4 files (+1 heads) | |
1436 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
1442 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
1443 | acl: checking access for user "astro" | |||
1437 | acl: acl.allow.branches not enabled |
|
1444 | acl: acl.allow.branches not enabled | |
1438 | acl: acl.deny.branches not enabled |
|
1445 | acl: acl.deny.branches not enabled | |
1439 | acl: acl.allow not enabled |
|
1446 | acl: acl.allow not enabled | |
1440 | acl: acl.deny not enabled |
|
1447 | acl: acl.deny not enabled | |
1441 | acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
1448 | acl: branch access granted: "ef1ea85a6374" on branch "default" | |
1442 |
acl: |
|
1449 | acl: path access granted: "ef1ea85a6374" | |
1443 | acl: branch access granted: "f9cafe1212c8" on branch "default" |
|
1450 | acl: branch access granted: "f9cafe1212c8" on branch "default" | |
1444 |
acl: |
|
1451 | acl: path access granted: "f9cafe1212c8" | |
1445 | acl: branch access granted: "911600dab2ae" on branch "default" |
|
1452 | acl: branch access granted: "911600dab2ae" on branch "default" | |
1446 |
acl: |
|
1453 | acl: path access granted: "911600dab2ae" | |
1447 | acl: branch access granted: "e8fc755d4d82" on branch "foobar" |
|
1454 | acl: branch access granted: "e8fc755d4d82" on branch "foobar" | |
1448 |
acl: |
|
1455 | acl: path access granted: "e8fc755d4d82" | |
1449 | updating the branch cache |
|
1456 | updating the branch cache | |
1450 | checking for updated bookmarks |
|
1457 | checking for updated bookmarks | |
1451 | repository tip rolled back to revision 2 (undo push) |
|
1458 | repository tip rolled back to revision 2 (undo push) | |
@@ -1513,16 +1520,17 b' Branch acl deny test' | |||||
1513 | files: 4/4 chunks (100.00%) |
|
1520 | files: 4/4 chunks (100.00%) | |
1514 | added 4 changesets with 4 changes to 4 files (+1 heads) |
|
1521 | added 4 changesets with 4 changes to 4 files (+1 heads) | |
1515 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
1522 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
1523 | acl: checking access for user "astro" | |||
1516 | acl: acl.allow.branches not enabled |
|
1524 | acl: acl.allow.branches not enabled | |
1517 | acl: acl.deny.branches enabled, 1 entries for user astro |
|
1525 | acl: acl.deny.branches enabled, 1 entries for user astro | |
1518 | acl: acl.allow not enabled |
|
1526 | acl: acl.allow not enabled | |
1519 | acl: acl.deny not enabled |
|
1527 | acl: acl.deny not enabled | |
1520 | acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
1528 | acl: branch access granted: "ef1ea85a6374" on branch "default" | |
1521 |
acl: |
|
1529 | acl: path access granted: "ef1ea85a6374" | |
1522 | acl: branch access granted: "f9cafe1212c8" on branch "default" |
|
1530 | acl: branch access granted: "f9cafe1212c8" on branch "default" | |
1523 |
acl: |
|
1531 | acl: path access granted: "f9cafe1212c8" | |
1524 | acl: branch access granted: "911600dab2ae" on branch "default" |
|
1532 | acl: branch access granted: "911600dab2ae" on branch "default" | |
1525 |
acl: |
|
1533 | acl: path access granted: "911600dab2ae" | |
1526 | error: pretxnchangegroup.acl hook failed: acl: user "astro" denied on branch "foobar" (changeset "e8fc755d4d82") |
|
1534 | error: pretxnchangegroup.acl hook failed: acl: user "astro" denied on branch "foobar" (changeset "e8fc755d4d82") | |
1527 | transaction abort! |
|
1535 | transaction abort! | |
1528 | rollback completed |
|
1536 | rollback completed | |
@@ -1590,6 +1598,7 b' Branch acl empty allow test' | |||||
1590 | files: 4/4 chunks (100.00%) |
|
1598 | files: 4/4 chunks (100.00%) | |
1591 | added 4 changesets with 4 changes to 4 files (+1 heads) |
|
1599 | added 4 changesets with 4 changes to 4 files (+1 heads) | |
1592 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
1600 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
1601 | acl: checking access for user "astro" | |||
1593 | acl: acl.allow.branches enabled, 0 entries for user astro |
|
1602 | acl: acl.allow.branches enabled, 0 entries for user astro | |
1594 | acl: acl.deny.branches not enabled |
|
1603 | acl: acl.deny.branches not enabled | |
1595 | acl: acl.allow not enabled |
|
1604 | acl: acl.allow not enabled | |
@@ -1663,6 +1672,7 b' Branch acl allow other' | |||||
1663 | files: 4/4 chunks (100.00%) |
|
1672 | files: 4/4 chunks (100.00%) | |
1664 | added 4 changesets with 4 changes to 4 files (+1 heads) |
|
1673 | added 4 changesets with 4 changes to 4 files (+1 heads) | |
1665 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
1674 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
1675 | acl: checking access for user "astro" | |||
1666 | acl: acl.allow.branches enabled, 0 entries for user astro |
|
1676 | acl: acl.allow.branches enabled, 0 entries for user astro | |
1667 | acl: acl.deny.branches not enabled |
|
1677 | acl: acl.deny.branches not enabled | |
1668 | acl: acl.allow not enabled |
|
1678 | acl: acl.allow not enabled | |
@@ -1730,18 +1740,19 b' Branch acl allow other' | |||||
1730 | files: 4/4 chunks (100.00%) |
|
1740 | files: 4/4 chunks (100.00%) | |
1731 | added 4 changesets with 4 changes to 4 files (+1 heads) |
|
1741 | added 4 changesets with 4 changes to 4 files (+1 heads) | |
1732 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
1742 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
1743 | acl: checking access for user "george" | |||
1733 | acl: acl.allow.branches enabled, 1 entries for user george |
|
1744 | acl: acl.allow.branches enabled, 1 entries for user george | |
1734 | acl: acl.deny.branches not enabled |
|
1745 | acl: acl.deny.branches not enabled | |
1735 | acl: acl.allow not enabled |
|
1746 | acl: acl.allow not enabled | |
1736 | acl: acl.deny not enabled |
|
1747 | acl: acl.deny not enabled | |
1737 | acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
1748 | acl: branch access granted: "ef1ea85a6374" on branch "default" | |
1738 |
acl: |
|
1749 | acl: path access granted: "ef1ea85a6374" | |
1739 | acl: branch access granted: "f9cafe1212c8" on branch "default" |
|
1750 | acl: branch access granted: "f9cafe1212c8" on branch "default" | |
1740 |
acl: |
|
1751 | acl: path access granted: "f9cafe1212c8" | |
1741 | acl: branch access granted: "911600dab2ae" on branch "default" |
|
1752 | acl: branch access granted: "911600dab2ae" on branch "default" | |
1742 |
acl: |
|
1753 | acl: path access granted: "911600dab2ae" | |
1743 | acl: branch access granted: "e8fc755d4d82" on branch "foobar" |
|
1754 | acl: branch access granted: "e8fc755d4d82" on branch "foobar" | |
1744 |
acl: |
|
1755 | acl: path access granted: "e8fc755d4d82" | |
1745 | updating the branch cache |
|
1756 | updating the branch cache | |
1746 | checking for updated bookmarks |
|
1757 | checking for updated bookmarks | |
1747 | repository tip rolled back to revision 2 (undo push) |
|
1758 | repository tip rolled back to revision 2 (undo push) | |
@@ -1814,18 +1825,19 b' push foobar into the remote' | |||||
1814 | files: 4/4 chunks (100.00%) |
|
1825 | files: 4/4 chunks (100.00%) | |
1815 | added 4 changesets with 4 changes to 4 files (+1 heads) |
|
1826 | added 4 changesets with 4 changes to 4 files (+1 heads) | |
1816 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
1827 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
1828 | acl: checking access for user "george" | |||
1817 | acl: acl.allow.branches enabled, 1 entries for user george |
|
1829 | acl: acl.allow.branches enabled, 1 entries for user george | |
1818 | acl: acl.deny.branches not enabled |
|
1830 | acl: acl.deny.branches not enabled | |
1819 | acl: acl.allow not enabled |
|
1831 | acl: acl.allow not enabled | |
1820 | acl: acl.deny not enabled |
|
1832 | acl: acl.deny not enabled | |
1821 | acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
1833 | acl: branch access granted: "ef1ea85a6374" on branch "default" | |
1822 |
acl: |
|
1834 | acl: path access granted: "ef1ea85a6374" | |
1823 | acl: branch access granted: "f9cafe1212c8" on branch "default" |
|
1835 | acl: branch access granted: "f9cafe1212c8" on branch "default" | |
1824 |
acl: |
|
1836 | acl: path access granted: "f9cafe1212c8" | |
1825 | acl: branch access granted: "911600dab2ae" on branch "default" |
|
1837 | acl: branch access granted: "911600dab2ae" on branch "default" | |
1826 |
acl: |
|
1838 | acl: path access granted: "911600dab2ae" | |
1827 | acl: branch access granted: "e8fc755d4d82" on branch "foobar" |
|
1839 | acl: branch access granted: "e8fc755d4d82" on branch "foobar" | |
1828 |
acl: |
|
1840 | acl: path access granted: "e8fc755d4d82" | |
1829 | updating the branch cache |
|
1841 | updating the branch cache | |
1830 | checking for updated bookmarks |
|
1842 | checking for updated bookmarks | |
1831 | repository tip rolled back to revision 2 (undo push) |
|
1843 | repository tip rolled back to revision 2 (undo push) | |
@@ -1897,6 +1909,7 b' Branch acl conflicting deny' | |||||
1897 | files: 4/4 chunks (100.00%) |
|
1909 | files: 4/4 chunks (100.00%) | |
1898 | added 4 changesets with 4 changes to 4 files (+1 heads) |
|
1910 | added 4 changesets with 4 changes to 4 files (+1 heads) | |
1899 | calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
1911 | calling hook pretxnchangegroup.acl: hgext.acl.hook | |
|
1912 | acl: checking access for user "george" | |||
1900 | acl: acl.allow.branches not enabled |
|
1913 | acl: acl.allow.branches not enabled | |
1901 | acl: acl.deny.branches enabled, 1 entries for user george |
|
1914 | acl: acl.deny.branches enabled, 1 entries for user george | |
1902 | acl: acl.allow not enabled |
|
1915 | acl: acl.allow not enabled |
General Comments 0
You need to be logged in to leave comments.
Login now