tests/test-acl.t
author Yuya Nishihara <yuya@tcha.org>
Fri, 24 Dec 2010 01:17:18 +0900
branchstable
changeset 13202 d83566f4453b
parent 12847 b00eda50ad2b
child 13116 c36dad4f6e54
permissions -rw-r--r--
notify: use util.ellipsis() to truncate long subject
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
     1
  > do_push()
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
     2
  > {
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
     3
  >     user=$1
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
     4
  >     shift
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
     5
  >     echo "Pushing as user $user"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
     6
  >     echo 'hgrc = """'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
     7
  >     sed -e 1,2d b/.hg/hgrc | grep -v fakegroups.py
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
     8
  >     echo '"""'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
     9
  >     if test -f acl.config; then
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    10
  >         echo 'acl.config = """'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    11
  >         cat acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    12
  >         echo '"""'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    13
  >     fi
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    14
  >     # On AIX /etc/profile sets LOGNAME read-only. So
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    15
  >     #  LOGNAME=$user hg --cws a --debug push ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    16
  >     # fails with "This variable is read only."
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    17
  >     # Use env to work around this.
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    18
  >     env LOGNAME=$user hg --cwd a --debug push ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    19
  >     hg --cwd b rollback
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    20
  >     hg --cwd b --quiet tip
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    21
  >     echo
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    22
  > }
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    23
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    24
  > init_config()
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    25
  > {
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    26
  >     cat > fakegroups.py <<EOF
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    27
  > from hgext import acl
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    28
  > def fakegetusers(ui, group):
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    29
  >     try:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    30
  >         return acl._getusersorig(ui, group)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    31
  >     except:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    32
  >         return ["fred", "betty"]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    33
  > acl._getusersorig = acl._getusers
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    34
  > acl._getusers = fakegetusers
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    35
  > EOF
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    36
  >     rm -f acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    37
  >     cat > $config <<EOF
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    38
  > [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    39
  > pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    40
  > [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    41
  > sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    42
  > [extensions]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    43
  > f=`pwd`/fakegroups.py
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    44
  > EOF
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    45
  > }
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    46
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    47
  $ hg init a
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    48
  $ cd a
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    49
  $ mkdir foo foo/Bar quux
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    50
  $ echo 'in foo' > foo/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    51
  $ echo 'in foo/Bar' > foo/Bar/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    52
  $ echo 'in quux' > quux/file.py
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    53
  $ hg add -q
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    54
  $ hg ci -m 'add files' -d '1000000 0'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    55
  $ echo >> foo/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    56
  $ hg ci -m 'change foo/file' -d '1000001 0'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    57
  $ echo >> foo/Bar/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    58
  $ hg ci -m 'change foo/Bar/file' -d '1000002 0'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    59
  $ echo >> quux/file.py
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    60
  $ hg ci -m 'change quux/file' -d '1000003 0'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    61
  $ hg tip --quiet
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    62
  3:911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    63
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    64
  $ cd ..
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    65
  $ hg clone -r 0 a b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    66
  adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    67
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    68
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    69
  added 1 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    70
  updating to branch default
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    71
  3 files updated, 0 files merged, 0 files removed, 0 files unresolved
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    72
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    73
  $ echo '[extensions]' >> $HGRCPATH
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    74
  $ echo 'acl =' >> $HGRCPATH
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
    75
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    76
  $ config=b/.hg/hgrc
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    78
Extension disabled for lack of a hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    79
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    80
  $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    81
  Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    82
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    83
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    84
  pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    85
  searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    86
  common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    87
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    88
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    89
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    90
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    91
  911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    92
  adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    93
  bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    94
  bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    95
  bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    96
  bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    97
  bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    98
  bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    99
  bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   100
  bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   101
  bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   102
  bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   103
  bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   104
  bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   105
  bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   106
  bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   107
  bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   108
  bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   109
  bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   110
  bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   111
  bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   112
  bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   113
  bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   114
  bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   115
  bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   116
  bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   117
  bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   118
  bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   119
  bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   120
  bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   121
  bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   122
  bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   123
  bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   124
  bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   125
  changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   126
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   127
  changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   128
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   129
  changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   130
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   131
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   132
  manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   133
  manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   134
  manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   135
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   136
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   137
  files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   138
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   139
  files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   140
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   141
  files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   142
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   143
  updating the branch cache
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   144
  rolling back to revision 0 (undo push)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   145
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   146
  
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   147
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   148
  $ echo '[hooks]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   149
  $ echo 'pretxnchangegroup.acl = python:hgext.acl.hook' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   150
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   151
Extension disabled for lack of acl.sources
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
   152
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   153
  $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   154
  Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   155
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   156
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   157
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   158
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   159
  pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   160
  searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   161
  common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   162
  invalidating branch cache (tip differs)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   163
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   164
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   165
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   166
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   167
  911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   168
  adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   169
  bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   170
  bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   171
  bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   172
  bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   173
  bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   174
  bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   175
  bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   176
  bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   177
  bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   178
  bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   179
  bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   180
  bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   181
  bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   182
  bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   183
  bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   184
  bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   185
  bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   186
  bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   187
  bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   188
  bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   189
  bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   190
  bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   191
  bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   192
  bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   193
  bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   194
  bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   195
  bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   196
  bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   197
  bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   198
  bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   199
  bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   200
  bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   201
  changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   202
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   203
  changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   204
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   205
  changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   206
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   207
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   208
  manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   209
  manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   210
  manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   211
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   212
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   213
  files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   214
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   215
  files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   216
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   217
  files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   218
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   219
  calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   220
  acl: changes have source "push" - skipping
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   221
  updating the branch cache
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   222
  rolling back to revision 0 (undo push)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   223
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   224
  
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   225
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   226
No [acl.allow]/[acl.deny]
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
   227
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   228
  $ echo '[acl]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   229
  $ echo 'sources = push' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   230
  $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   231
  Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   232
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   233
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   234
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   235
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   236
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   237
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   238
  pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   239
  searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   240
  common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   241
  invalidating branch cache (tip differs)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   242
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   243
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   244
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   245
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   246
  911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   247
  adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   248
  bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   249
  bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   250
  bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   251
  bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   252
  bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   253
  bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   254
  bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   255
  bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   256
  bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   257
  bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   258
  bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   259
  bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   260
  bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   261
  bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   262
  bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   263
  bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   264
  bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   265
  bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   266
  bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   267
  bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   268
  bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   269
  bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   270
  bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   271
  bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   272
  bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   273
  bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   274
  bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   275
  bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   276
  bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   277
  bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   278
  bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   279
  bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   280
  changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   281
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   282
  changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   283
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   284
  changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   285
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   286
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   287
  manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   288
  manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   289
  manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   290
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   291
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   292
  files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   293
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   294
  files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   295
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   296
  files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   297
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   298
  calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   299
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   300
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   301
  acl: acl.allow not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   302
  acl: acl.deny not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   303
  acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   304
  acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   305
  acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   306
  acl: allowing changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   307
  acl: branch access granted: "911600dab2ae" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   308
  acl: allowing changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   309
  updating the branch cache
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   310
  rolling back to revision 0 (undo push)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   311
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   312
  
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   313
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   314
Empty [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   315
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   316
  $ echo '[acl.allow]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   317
  $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   318
  Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   319
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   320
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   321
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   322
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   323
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   324
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   325
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   326
  pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   327
  searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   328
  common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   329
  invalidating branch cache (tip differs)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   330
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   331
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   332
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   333
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   334
  911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   335
  adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   336
  bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   337
  bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   338
  bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   339
  bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   340
  bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   341
  bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   342
  bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   343
  bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   344
  bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   345
  bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   346
  bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   347
  bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   348
  bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   349
  bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   350
  bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   351
  bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   352
  bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   353
  bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   354
  bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   355
  bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   356
  bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   357
  bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   358
  bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   359
  bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   360
  bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   361
  bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   362
  bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   363
  bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   364
  bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   365
  bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   366
  bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   367
  bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   368
  changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   369
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   370
  changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   371
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   372
  changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   373
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   374
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   375
  manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   376
  manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   377
  manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   378
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   379
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   380
  files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   381
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   382
  files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   383
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   384
  files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   385
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   386
  calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   387
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   388
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   389
  acl: acl.allow enabled, 0 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   390
  acl: acl.deny not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   391
  acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   392
  acl: user fred not allowed on foo/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   393
  error: pretxnchangegroup.acl hook failed: acl: access denied for changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   394
  transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   395
  rollback completed
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   396
  abort: acl: access denied for changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   397
  no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   398
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   399
  
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   400
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   401
fred is allowed inside foo/
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
   402
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   403
  $ echo 'foo/** = fred' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   404
  $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   405
  Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   406
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   407
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   408
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   409
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   410
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   411
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   412
  foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   413
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   414
  pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   415
  searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   416
  common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   417
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   418
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   419
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   420
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   421
  911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   422
  adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   423
  bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   424
  bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   425
  bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   426
  bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   427
  bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   428
  bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   429
  bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   430
  bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   431
  bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   432
  bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   433
  bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   434
  bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   435
  bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   436
  bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   437
  bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   438
  bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   439
  bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   440
  bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   441
  bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   442
  bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   443
  bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   444
  bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   445
  bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   446
  bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   447
  bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   448
  bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   449
  bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   450
  bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   451
  bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   452
  bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   453
  bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   454
  bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   455
  changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   456
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   457
  changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   458
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   459
  changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   460
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   461
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   462
  manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   463
  manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   464
  manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   465
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   466
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   467
  files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   468
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   469
  files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   470
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   471
  files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   472
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   473
  calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   474
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   475
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   476
  acl: acl.allow enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   477
  acl: acl.deny not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   478
  acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   479
  acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   480
  acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   481
  acl: allowing changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   482
  acl: branch access granted: "911600dab2ae" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   483
  acl: user fred not allowed on quux/file.py
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   484
  error: pretxnchangegroup.acl hook failed: acl: access denied for changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   485
  transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   486
  rollback completed
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   487
  abort: acl: access denied for changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   488
  no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   489
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   490
  
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   491
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   492
Empty [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   493
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   494
  $ echo '[acl.deny]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   495
  $ do_push barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   496
  Pushing as user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   497
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   498
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   499
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   500
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   501
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   502
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   503
  foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   504
  [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   505
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   506
  pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   507
  searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   508
  common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   509
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   510
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   511
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   512
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   513
  911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   514
  adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   515
  bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   516
  bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   517
  bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   518
  bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   519
  bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   520
  bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   521
  bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   522
  bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   523
  bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   524
  bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   525
  bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   526
  bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   527
  bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   528
  bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   529
  bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   530
  bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   531
  bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   532
  bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   533
  bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   534
  bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   535
  bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   536
  bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   537
  bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   538
  bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   539
  bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   540
  bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   541
  bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   542
  bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   543
  bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   544
  bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   545
  bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   546
  bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   547
  changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   548
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   549
  changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   550
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   551
  changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   552
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   553
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   554
  manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   555
  manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   556
  manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   557
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   558
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   559
  files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   560
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   561
  files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   562
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   563
  files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   564
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   565
  calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   566
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   567
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   568
  acl: acl.allow enabled, 0 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   569
  acl: acl.deny enabled, 0 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   570
  acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   571
  acl: user barney not allowed on foo/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   572
  error: pretxnchangegroup.acl hook failed: acl: access denied for changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   573
  transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   574
  rollback completed
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   575
  abort: acl: access denied for changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   576
  no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   577
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   578
  
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   579
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   580
fred is allowed inside foo/, but not foo/bar/ (case matters)
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
   581
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   582
  $ echo 'foo/bar/** = fred' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   583
  $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   584
  Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   585
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   586
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   587
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   588
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   589
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   590
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   591
  foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   592
  [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   593
  foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   594
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   595
  pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   596
  searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   597
  common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   598
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   599
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   600
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   601
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   602
  911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   603
  adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   604
  bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   605
  bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   606
  bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   607
  bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   608
  bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   609
  bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   610
  bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   611
  bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   612
  bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   613
  bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   614
  bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   615
  bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   616
  bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   617
  bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   618
  bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   619
  bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   620
  bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   621
  bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   622
  bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   623
  bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   624
  bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   625
  bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   626
  bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   627
  bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   628
  bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   629
  bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   630
  bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   631
  bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   632
  bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   633
  bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   634
  bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   635
  bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   636
  changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   637
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   638
  changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   639
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   640
  changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   641
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   642
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   643
  manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   644
  manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   645
  manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   646
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   647
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   648
  files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   649
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   650
  files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   651
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   652
  files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   653
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   654
  calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   655
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   656
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   657
  acl: acl.allow enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   658
  acl: acl.deny enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   659
  acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   660
  acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   661
  acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   662
  acl: allowing changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   663
  acl: branch access granted: "911600dab2ae" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   664
  acl: user fred not allowed on quux/file.py
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   665
  error: pretxnchangegroup.acl hook failed: acl: access denied for changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   666
  transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   667
  rollback completed
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   668
  abort: acl: access denied for changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   669
  no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   670
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   671
  
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   672
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   673
fred is allowed inside foo/, but not foo/Bar/
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
   674
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   675
  $ echo 'foo/Bar/** = fred' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   676
  $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   677
  Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   678
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   679
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   680
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   681
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   682
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   683
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   684
  foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   685
  [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   686
  foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   687
  foo/Bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   688
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   689
  pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   690
  searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   691
  common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   692
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   693
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   694
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   695
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   696
  911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   697
  adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   698
  bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   699
  bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   700
  bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   701
  bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   702
  bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   703
  bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   704
  bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   705
  bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   706
  bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   707
  bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   708
  bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   709
  bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   710
  bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   711
  bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   712
  bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   713
  bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   714
  bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   715
  bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   716
  bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   717
  bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   718
  bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   719
  bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   720
  bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   721
  bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   722
  bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   723
  bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   724
  bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   725
  bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   726
  bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   727
  bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   728
  bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   729
  bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   730
  changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   731
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   732
  changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   733
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   734
  changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   735
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   736
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   737
  manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   738
  manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   739
  manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   740
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   741
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   742
  files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   743
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   744
  files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   745
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   746
  files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   747
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   748
  calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   749
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   750
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   751
  acl: acl.allow enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   752
  acl: acl.deny enabled, 2 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   753
  acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   754
  acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   755
  acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   756
  acl: user fred denied on foo/Bar/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   757
  error: pretxnchangegroup.acl hook failed: acl: access denied for changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   758
  transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   759
  rollback completed
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   760
  abort: acl: access denied for changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   761
  no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   762
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   763
  
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
   764
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   765
  $ echo 'barney is not mentioned => not allowed anywhere'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   766
  barney is not mentioned => not allowed anywhere
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   767
  $ do_push barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   768
  Pushing as user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   769
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   770
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   771
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   772
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   773
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   774
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   775
  foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   776
  [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   777
  foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   778
  foo/Bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   779
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   780
  pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   781
  searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   782
  common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   783
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   784
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   785
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   786
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   787
  911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   788
  adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   789
  bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   790
  bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   791
  bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   792
  bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   793
  bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   794
  bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   795
  bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   796
  bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   797
  bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   798
  bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   799
  bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   800
  bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   801
  bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   802
  bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   803
  bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   804
  bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   805
  bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   806
  bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   807
  bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   808
  bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   809
  bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   810
  bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   811
  bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   812
  bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   813
  bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   814
  bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   815
  bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   816
  bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   817
  bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   818
  bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   819
  bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   820
  bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   821
  changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   822
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   823
  changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   824
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   825
  changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   826
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   827
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   828
  manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   829
  manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   830
  manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   831
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   832
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   833
  files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   834
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   835
  files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   836
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   837
  files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   838
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   839
  calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   840
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   841
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   842
  acl: acl.allow enabled, 0 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   843
  acl: acl.deny enabled, 0 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   844
  acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   845
  acl: user barney not allowed on foo/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   846
  error: pretxnchangegroup.acl hook failed: acl: access denied for changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   847
  transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   848
  rollback completed
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   849
  abort: acl: access denied for changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   850
  no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   851
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   852
  
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
   853
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   854
barney is allowed everywhere
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
   855
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   856
  $ echo '[acl.allow]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   857
  $ echo '** = barney' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   858
  $ do_push barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   859
  Pushing as user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   860
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   861
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   862
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   863
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   864
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   865
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   866
  foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   867
  [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   868
  foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   869
  foo/Bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   870
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   871
  ** = barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   872
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   873
  pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   874
  searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   875
  common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   876
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   877
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   878
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   879
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   880
  911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   881
  adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   882
  bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   883
  bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   884
  bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   885
  bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   886
  bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   887
  bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   888
  bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   889
  bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   890
  bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   891
  bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   892
  bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   893
  bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   894
  bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   895
  bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   896
  bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   897
  bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   898
  bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   899
  bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   900
  bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   901
  bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   902
  bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   903
  bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   904
  bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   905
  bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   906
  bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   907
  bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   908
  bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   909
  bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   910
  bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   911
  bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   912
  bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   913
  bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   914
  changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   915
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   916
  changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   917
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   918
  changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   919
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   920
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   921
  manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   922
  manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   923
  manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   924
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   925
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   926
  files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   927
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   928
  files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   929
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   930
  files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   931
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   932
  calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   933
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   934
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   935
  acl: acl.allow enabled, 1 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   936
  acl: acl.deny enabled, 0 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   937
  acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   938
  acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   939
  acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   940
  acl: allowing changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   941
  acl: branch access granted: "911600dab2ae" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   942
  acl: allowing changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   943
  updating the branch cache
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   944
  rolling back to revision 0 (undo push)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   945
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   946
  
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
   947
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   948
wilma can change files with a .txt extension
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
   949
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   950
  $ echo '**/*.txt = wilma' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   951
  $ do_push wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   952
  Pushing as user wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   953
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   954
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   955
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   956
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   957
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   958
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   959
  foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   960
  [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   961
  foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   962
  foo/Bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   963
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   964
  ** = barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   965
  **/*.txt = wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   966
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   967
  pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   968
  searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   969
  common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   970
  invalidating branch cache (tip differs)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   971
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   972
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   973
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   974
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   975
  911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   976
  adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   977
  bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   978
  bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   979
  bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   980
  bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   981
  bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   982
  bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   983
  bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   984
  bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   985
  bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   986
  bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   987
  bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   988
  bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   989
  bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   990
  bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   991
  bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   992
  bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   993
  bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   994
  bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   995
  bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   996
  bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   997
  bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   998
  bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   999
  bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1000
  bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1001
  bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1002
  bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1003
  bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1004
  bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1005
  bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1006
  bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1007
  bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1008
  bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1009
  changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1010
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1011
  changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1012
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1013
  changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1014
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1015
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1016
  manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1017
  manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1018
  manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1019
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1020
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1021
  files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1022
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1023
  files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1024
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1025
  files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1026
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1027
  calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1028
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1029
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1030
  acl: acl.allow enabled, 1 entries for user wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1031
  acl: acl.deny enabled, 0 entries for user wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1032
  acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1033
  acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1034
  acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1035
  acl: allowing changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1036
  acl: branch access granted: "911600dab2ae" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1037
  acl: user wilma not allowed on quux/file.py
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1038
  error: pretxnchangegroup.acl hook failed: acl: access denied for changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1039
  transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1040
  rollback completed
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1041
  abort: acl: access denied for changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1042
  no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1043
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1044
  
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
  1045
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1046
file specified by acl.config does not exist
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
  1047
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1048
  $ echo '[acl]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1049
  $ echo 'config = ../acl.config' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1050
  $ do_push barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1051
  Pushing as user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1052
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1053
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1054
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1055
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1056
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1057
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1058
  foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1059
  [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1060
  foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1061
  foo/Bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1062
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1063
  ** = barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1064
  **/*.txt = wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1065
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1066
  config = ../acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1067
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1068
  pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1069
  searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1070
  common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1071
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1072
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1073
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1074
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1075
  911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1076
  adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1077
  bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1078
  bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1079
  bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1080
  bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1081
  bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1082
  bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1083
  bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1084
  bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1085
  bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1086
  bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1087
  bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1088
  bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1089
  bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1090
  bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1091
  bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1092
  bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1093
  bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1094
  bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1095
  bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1096
  bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1097
  bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1098
  bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1099
  bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1100
  bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1101
  bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1102
  bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1103
  bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1104
  bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1105
  bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1106
  bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1107
  bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1108
  bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1109
  changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1110
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1111
  changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1112
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1113
  changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1114
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1115
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1116
  manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1117
  manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1118
  manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1119
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1120
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1121
  files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1122
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1123
  files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1124
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1125
  files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1126
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1127
  calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1128
  error: pretxnchangegroup.acl hook raised an exception: [Errno 2] No such file or directory: '../acl.config'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1129
  transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1130
  rollback completed
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1131
  abort: No such file or directory: ../acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1132
  no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1133
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1134
  
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
  1135
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1136
betty is allowed inside foo/ by a acl.config file
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
  1137
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1138
  $ echo '[acl.allow]' >> acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1139
  $ echo 'foo/** = betty' >> acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1140
  $ do_push betty
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1141
  Pushing as user betty
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1142
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1143
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1144
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1145
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1146
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1147
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1148
  foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1149
  [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1150
  foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1151
  foo/Bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1152
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1153
  ** = barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1154
  **/*.txt = wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1155
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1156
  config = ../acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1157
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1158
  acl.config = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1159
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1160
  foo/** = betty
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1161
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1162
  pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1163
  searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1164
  common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1165
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1166
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1167
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1168
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1169
  911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1170
  adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1171
  bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1172
  bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1173
  bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1174
  bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1175
  bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1176
  bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1177
  bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1178
  bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1179
  bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1180
  bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1181
  bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1182
  bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1183
  bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1184
  bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1185
  bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1186
  bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1187
  bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1188
  bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1189
  bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1190
  bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1191
  bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1192
  bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1193
  bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1194
  bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1195
  bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1196
  bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1197
  bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1198
  bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1199
  bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1200
  bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1201
  bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1202
  bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1203
  changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1204
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1205
  changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1206
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1207
  changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1208
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1209
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1210
  manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1211
  manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1212
  manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1213
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1214
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1215
  files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1216
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1217
  files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1218
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1219
  files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1220
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1221
  calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1222
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1223
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1224
  acl: acl.allow enabled, 1 entries for user betty
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1225
  acl: acl.deny enabled, 0 entries for user betty
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1226
  acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1227
  acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1228
  acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1229
  acl: allowing changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1230
  acl: branch access granted: "911600dab2ae" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1231
  acl: user betty not allowed on quux/file.py
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1232
  error: pretxnchangegroup.acl hook failed: acl: access denied for changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1233
  transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1234
  rollback completed
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1235
  abort: acl: access denied for changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1236
  no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1237
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1238
  
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
  1239
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1240
acl.config can set only [acl.allow]/[acl.deny]
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
  1241
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1242
  $ echo '[hooks]' >> acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1243
  $ echo 'changegroup.acl = false' >> acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1244
  $ do_push barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1245
  Pushing as user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1246
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1247
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1248
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1249
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1250
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1251
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1252
  foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1253
  [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1254
  foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1255
  foo/Bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1256
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1257
  ** = barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1258
  **/*.txt = wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1259
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1260
  config = ../acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1261
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1262
  acl.config = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1263
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1264
  foo/** = betty
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1265
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1266
  changegroup.acl = false
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1267
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1268
  pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1269
  searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1270
  common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1271
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1272
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1273
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1274
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1275
  911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1276
  adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1277
  bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1278
  bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1279
  bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1280
  bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1281
  bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1282
  bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1283
  bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1284
  bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1285
  bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1286
  bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1287
  bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1288
  bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1289
  bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1290
  bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1291
  bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1292
  bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1293
  bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1294
  bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1295
  bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1296
  bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1297
  bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1298
  bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1299
  bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1300
  bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1301
  bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1302
  bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1303
  bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1304
  bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1305
  bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1306
  bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1307
  bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1308
  bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1309
  changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1310
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1311
  changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1312
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1313
  changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1314
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1315
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1316
  manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1317
  manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1318
  manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1319
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1320
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1321
  files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1322
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1323
  files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1324
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1325
  files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1326
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1327
  calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1328
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1329
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1330
  acl: acl.allow enabled, 1 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1331
  acl: acl.deny enabled, 0 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1332
  acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1333
  acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1334
  acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1335
  acl: allowing changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1336
  acl: branch access granted: "911600dab2ae" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1337
  acl: allowing changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1338
  updating the branch cache
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1339
  rolling back to revision 0 (undo push)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1340
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1341
  
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
  1342
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1343
asterisk
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1344
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1345
  $ init_config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1346
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1347
asterisk test
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1348
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1349
  $ echo '[acl.allow]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1350
  $ echo "** = fred" >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1351
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1352
fred is always allowed
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
  1353
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1354
  $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1355
  Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1356
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1357
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1358
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1359
  [extensions]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1360
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1361
  ** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1362
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1363
  pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1364
  searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1365
  common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1366
  invalidating branch cache (tip differs)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1367
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1368
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1369
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1370
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1371
  911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1372
  adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1373
  bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1374
  bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1375
  bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1376
  bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1377
  bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1378
  bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1379
  bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1380
  bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1381
  bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1382
  bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1383
  bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1384
  bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1385
  bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1386
  bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1387
  bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1388
  bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1389
  bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1390
  bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1391
  bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1392
  bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1393
  bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1394
  bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1395
  bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1396
  bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1397
  bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1398
  bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1399
  bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1400
  bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1401
  bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1402
  bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1403
  bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1404
  bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1405
  changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1406
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1407
  changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1408
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1409
  changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1410
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1411
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1412
  manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1413
  manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1414
  manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1415
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1416
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1417
  files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1418
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1419
  files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1420
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1421
  files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1422
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1423
  calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1424
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1425
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1426
  acl: acl.allow enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1427
  acl: acl.deny not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1428
  acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1429
  acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1430
  acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1431
  acl: allowing changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1432
  acl: branch access granted: "911600dab2ae" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1433
  acl: allowing changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1434
  updating the branch cache
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1435
  rolling back to revision 0 (undo push)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1436
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1437
  
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
  1438
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1439
  $ echo '[acl.deny]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1440
  $ echo "foo/Bar/** = *" >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1441
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1442
no one is allowed inside foo/Bar/
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
  1443
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1444
  $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1445
  Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1446
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1447
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1448
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1449
  [extensions]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1450
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1451
  ** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1452
  [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1453
  foo/Bar/** = *
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1454
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1455
  pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1456
  searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1457
  common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1458
  invalidating branch cache (tip differs)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1459
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1460
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1461
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1462
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1463
  911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1464
  adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1465
  bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1466
  bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1467
  bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1468
  bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1469
  bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1470
  bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1471
  bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1472
  bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1473
  bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1474
  bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1475
  bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1476
  bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1477
  bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1478
  bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1479
  bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1480
  bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1481
  bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1482
  bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1483
  bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1484
  bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1485
  bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1486
  bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1487
  bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1488
  bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1489
  bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1490
  bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1491
  bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1492
  bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1493
  bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1494
  bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1495
  bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1496
  bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1497
  changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1498
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1499
  changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1500
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1501
  changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1502
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1503
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1504
  manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1505
  manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1506
  manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1507
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1508
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1509
  files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1510
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1511
  files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1512
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1513
  files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1514
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1515
  calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1516
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1517
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1518
  acl: acl.allow enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1519
  acl: acl.deny enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1520
  acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1521
  acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1522
  acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1523
  acl: user fred denied on foo/Bar/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1524
  error: pretxnchangegroup.acl hook failed: acl: access denied for changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1525
  transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1526
  rollback completed
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1527
  abort: acl: access denied for changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1528
  no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1529
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1530
  
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
  1531
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1532
Groups
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1533
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1534
  $ init_config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1535
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1536
OS-level groups
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1537
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1538
  $ echo '[acl.allow]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1539
  $ echo "** = @group1" >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1540
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1541
@group1 is always allowed
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
  1542
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1543
  $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1544
  Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1545
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1546
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1547
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1548
  [extensions]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1549
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1550
  ** = @group1
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1551
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1552
  pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1553
  searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1554
  common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1555
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1556
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1557
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1558
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1559
  911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1560
  adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1561
  bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1562
  bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1563
  bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1564
  bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1565
  bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1566
  bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1567
  bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1568
  bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1569
  bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1570
  bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1571
  bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1572
  bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1573
  bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1574
  bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1575
  bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1576
  bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1577
  bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1578
  bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1579
  bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1580
  bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1581
  bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1582
  bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1583
  bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1584
  bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1585
  bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1586
  bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1587
  bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1588
  bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1589
  bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1590
  bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1591
  bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1592
  bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1593
  changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1594
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1595
  changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1596
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1597
  changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1598
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1599
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1600
  manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1601
  manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1602
  manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1603
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1604
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1605
  files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1606
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1607
  files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1608
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1609
  files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1610
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1611
  calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1612
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1613
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1614
  acl: "group1" not defined in [acl.groups]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1615
  acl: acl.allow enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1616
  acl: acl.deny not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1617
  acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1618
  acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1619
  acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1620
  acl: allowing changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1621
  acl: branch access granted: "911600dab2ae" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1622
  acl: allowing changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1623
  updating the branch cache
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1624
  rolling back to revision 0 (undo push)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1625
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1626
  
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1627
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1628
  $ echo '[acl.deny]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1629
  $ echo "foo/Bar/** = @group1" >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1630
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1631
@group is allowed inside anything but foo/Bar/
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
  1632
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1633
  $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1634
  Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1635
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1636
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1637
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1638
  [extensions]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1639
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1640
  ** = @group1
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1641
  [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1642
  foo/Bar/** = @group1
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1643
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1644
  pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1645
  searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1646
  common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1647
  invalidating branch cache (tip differs)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1648
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1649
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1650
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1651
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1652
  911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1653
  adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1654
  bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1655
  bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1656
  bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1657
  bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1658
  bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1659
  bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1660
  bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1661
  bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1662
  bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1663
  bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1664
  bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1665
  bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1666
  bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1667
  bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1668
  bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1669
  bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1670
  bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1671
  bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1672
  bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1673
  bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1674
  bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1675
  bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1676
  bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1677
  bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1678
  bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1679
  bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1680
  bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1681
  bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1682
  bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1683
  bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1684
  bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1685
  bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1686
  changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1687
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1688
  changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1689
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1690
  changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1691
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1692
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1693
  manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1694
  manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1695
  manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1696
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1697
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1698
  files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1699
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1700
  files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1701
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1702
  files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1703
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1704
  calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1705
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1706
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1707
  acl: "group1" not defined in [acl.groups]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1708
  acl: acl.allow enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1709
  acl: "group1" not defined in [acl.groups]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1710
  acl: acl.deny enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1711
  acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1712
  acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1713
  acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1714
  acl: user fred denied on foo/Bar/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1715
  error: pretxnchangegroup.acl hook failed: acl: access denied for changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1716
  transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1717
  rollback completed
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1718
  abort: acl: access denied for changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1719
  no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1720
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1721
  
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
  1722
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1723
Invalid group
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1724
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1725
Disable the fakegroups trick to get real failures
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1726
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1727
  $ grep -v fakegroups $config > config.tmp
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1728
  $ mv config.tmp $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1729
  $ echo '[acl.allow]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1730
  $ echo "** = @unlikelytoexist" >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1731
  $ do_push fred 2>&1 | grep unlikelytoexist
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1732
  ** = @unlikelytoexist
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1733
  acl: "unlikelytoexist" not defined in [acl.groups]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1734
  error: pretxnchangegroup.acl hook failed: group 'unlikelytoexist' is undefined
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1735
  abort: group 'unlikelytoexist' is undefined