tests/test-acl.t
author Gregory Szorc <gregory.szorc@gmail.com>
Sun, 31 May 2015 17:41:35 -0700
changeset 25379 894bcdbb9e7a
parent 25373 9793e52279a1
child 25401 d29201352af7
permissions -rw-r--r--
check-commit: make foo_bar naming regexp less greedy \s is equivalent to the character class [ \t\n\r\f\v]. Using \s+ in a regular expression against input with multiple lines may match across multiple lines. For the regexp in question, "\+\s+" would match "+\n " and similar sequences, leading to false positives for functions that were included in diff context, after a modified hunk.
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 = """'
22379
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
     7
  >     sed -n '/\[[ha]/,$p' b/.hg/hgrc | grep -v fakegroups.py
11849
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
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
    47
  $ cat << EOF >> $HGRCPATH
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
    48
  > [experimental]
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
    49
  > # drop me once bundle2 is the default,
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
    50
  > # added to get test change early.
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
    51
  > bundle2-exp = True
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
    52
  > EOF
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
    53
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    54
  $ hg init a
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    55
  $ cd a
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    56
  $ mkdir foo foo/Bar quux
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    57
  $ echo 'in foo' > foo/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    58
  $ echo 'in foo/Bar' > foo/Bar/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    59
  $ echo 'in quux' > quux/file.py
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    60
  $ hg add -q
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    61
  $ hg ci -m 'add files' -d '1000000 0'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    62
  $ echo >> foo/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    63
  $ hg ci -m 'change foo/file' -d '1000001 0'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    64
  $ echo >> foo/Bar/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    65
  $ hg ci -m 'change foo/Bar/file' -d '1000002 0'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    66
  $ echo >> quux/file.py
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    67
  $ hg ci -m 'change quux/file' -d '1000003 0'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    68
  $ hg tip --quiet
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    69
  3:911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    70
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    71
  $ cd ..
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    72
  $ hg clone -r 0 a b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    73
  adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    74
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    75
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    76
  added 1 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    77
  updating to branch default
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    78
  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
    79
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    80
  $ config=b/.hg/hgrc
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    81
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    82
Extension disabled for lack of a hook
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
  $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    85
  Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    86
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    87
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    88
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
    89
  query 1; heads
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    90
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
    91
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
    92
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
    93
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
    94
  listing keys for "bookmarks"
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
    95
  listing keys for "bookmarks"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    96
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    97
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    98
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
    99
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   100
  911600dab2ae7a9baff75958b84fe606851ce955
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   101
  bundle2-output-bundle: "HG20", 4 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   102
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   103
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   104
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   105
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   106
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   107
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   108
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   109
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   110
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   111
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
   112
  adding changesets
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   113
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   114
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   115
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   116
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   117
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   118
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   119
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   120
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   121
  added 3 changesets with 3 changes to 3 files
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   122
  bundle2-input-part: total payload size 1606
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   123
  bundle2-input-part: "pushkey" (params: 4 mandatory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   124
  pushing key for "phases:911600dab2ae7a9baff75958b84fe606851ce955"
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   125
  bundle2-input-bundle: 3 parts total
20969
7a679918ee2b localrepo: add unbundle support
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 18395
diff changeset
   126
  updating the branch cache
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   127
  bundle2-output-bundle: "HG20", 2 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   128
  bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   129
  bundle2-output-part: "reply:pushkey" (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   130
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   131
  bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   132
  bundle2-input-part: "reply:pushkey" (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   133
  bundle2-input-bundle: 1 parts total
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
   134
  listing keys for "phases"
17294
d2217df3a7cf obsolete: add debug output regarding obsolete marker exchange.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 17293
diff changeset
   135
  try to push obsolete markers to remote
13446
1e497df514e2 rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents: 13364
diff changeset
   136
  repository tip rolled back to revision 0 (undo push)
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   137
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   138
  
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   139
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   140
  $ echo '[hooks]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   141
  $ echo 'pretxnchangegroup.acl = python:hgext.acl.hook' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   142
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   143
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
   144
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   145
  $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   146
  Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   147
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   148
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   149
  pretxnchangegroup.acl = python:hgext.acl.hook
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
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   152
  query 1; heads
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   153
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   154
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
   155
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   156
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   157
  listing keys for "bookmarks"
18382
f3b21beb9802 filtering: rename filters to their antonyms
Kevin Bullock <kbullock@ringworld.org>
parents: 18245
diff changeset
   158
  invalid branchheads cache (served): tip differs
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
   159
  listing keys for "bookmarks"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   160
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   161
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   162
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   163
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   164
  911600dab2ae7a9baff75958b84fe606851ce955
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   165
  bundle2-output-bundle: "HG20", 4 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   166
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   167
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   168
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   169
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   170
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   171
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   172
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   173
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   174
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   175
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
   176
  adding changesets
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   177
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   178
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   179
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   180
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   181
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   182
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   183
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   184
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   185
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   186
  calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   187
  acl: changes have source "push" - skipping
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   188
  bundle2-input-part: total payload size 1606
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   189
  bundle2-input-part: "pushkey" (params: 4 mandatory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   190
  pushing key for "phases:911600dab2ae7a9baff75958b84fe606851ce955"
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   191
  bundle2-input-bundle: 3 parts total
20969
7a679918ee2b localrepo: add unbundle support
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 18395
diff changeset
   192
  updating the branch cache
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   193
  bundle2-output-bundle: "HG20", 2 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   194
  bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   195
  bundle2-output-part: "reply:pushkey" (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   196
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   197
  bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   198
  bundle2-input-part: "reply:pushkey" (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   199
  bundle2-input-bundle: 1 parts total
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
   200
  listing keys for "phases"
17294
d2217df3a7cf obsolete: add debug output regarding obsolete marker exchange.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 17293
diff changeset
   201
  try to push obsolete markers to remote
13446
1e497df514e2 rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents: 13364
diff changeset
   202
  repository tip rolled back to revision 0 (undo push)
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   203
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   204
  
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   205
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   206
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
   207
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   208
  $ echo '[acl]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   209
  $ echo 'sources = push' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   210
  $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   211
  Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   212
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   213
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   214
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   215
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   216
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   217
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   218
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   219
  query 1; heads
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   220
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   221
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
   222
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   223
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   224
  listing keys for "bookmarks"
18382
f3b21beb9802 filtering: rename filters to their antonyms
Kevin Bullock <kbullock@ringworld.org>
parents: 18245
diff changeset
   225
  invalid branchheads cache (served): tip differs
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
   226
  listing keys for "bookmarks"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   227
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   228
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   229
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   230
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   231
  911600dab2ae7a9baff75958b84fe606851ce955
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   232
  bundle2-output-bundle: "HG20", 4 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   233
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   234
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   235
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   236
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   237
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   238
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   239
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   240
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   241
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   242
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
   243
  adding changesets
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   244
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   245
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   246
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   247
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   248
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   249
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   250
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   251
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   252
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   253
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   254
  acl: checking access for user "fred"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   255
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   256
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   257
  acl: acl.allow not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   258
  acl: acl.deny not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   259
  acl: branch access granted: "ef1ea85a6374" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   260
  acl: path access granted: "ef1ea85a6374"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   261
  acl: branch access granted: "f9cafe1212c8" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   262
  acl: path access granted: "f9cafe1212c8"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   263
  acl: branch access granted: "911600dab2ae" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   264
  acl: path access granted: "911600dab2ae"
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   265
  bundle2-input-part: total payload size 1606
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   266
  bundle2-input-part: "pushkey" (params: 4 mandatory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   267
  pushing key for "phases:911600dab2ae7a9baff75958b84fe606851ce955"
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   268
  bundle2-input-bundle: 3 parts total
20969
7a679918ee2b localrepo: add unbundle support
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 18395
diff changeset
   269
  updating the branch cache
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   270
  bundle2-output-bundle: "HG20", 2 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   271
  bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   272
  bundle2-output-part: "reply:pushkey" (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   273
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   274
  bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   275
  bundle2-input-part: "reply:pushkey" (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   276
  bundle2-input-bundle: 1 parts total
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
   277
  listing keys for "phases"
17294
d2217df3a7cf obsolete: add debug output regarding obsolete marker exchange.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 17293
diff changeset
   278
  try to push obsolete markers to remote
13446
1e497df514e2 rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents: 13364
diff changeset
   279
  repository tip rolled back to revision 0 (undo push)
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   280
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   281
  
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   282
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   283
Empty [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   284
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   285
  $ echo '[acl.allow]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   286
  $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   287
  Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   288
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   289
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   290
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   291
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   292
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   293
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   294
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   295
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   296
  query 1; heads
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   297
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   298
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
   299
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   300
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   301
  listing keys for "bookmarks"
18382
f3b21beb9802 filtering: rename filters to their antonyms
Kevin Bullock <kbullock@ringworld.org>
parents: 18245
diff changeset
   302
  invalid branchheads cache (served): tip differs
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
   303
  listing keys for "bookmarks"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   304
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   305
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   306
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   307
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   308
  911600dab2ae7a9baff75958b84fe606851ce955
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   309
  bundle2-output-bundle: "HG20", 4 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   310
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   311
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   312
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   313
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   314
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   315
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   316
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   317
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   318
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   319
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
   320
  adding changesets
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   321
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   322
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   323
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   324
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   325
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   326
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   327
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   328
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   329
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   330
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   331
  acl: checking access for user "fred"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   332
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   333
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   334
  acl: acl.allow enabled, 0 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   335
  acl: acl.deny not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   336
  acl: branch access granted: "ef1ea85a6374" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   337
  error: pretxnchangegroup.acl hook failed: acl: user "fred" not allowed on "foo/file.txt" (changeset "ef1ea85a6374")
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   338
  bundle2-input-part: total payload size 1606
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   339
  bundle2-input-bundle: 3 parts total
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   340
  transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   341
  rollback completed
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   342
  abort: acl: user "fred" not allowed on "foo/file.txt" (changeset "ef1ea85a6374")
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   343
  no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   344
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   345
  
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   346
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   347
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
   348
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   349
  $ echo 'foo/** = fred' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   350
  $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   351
  Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   352
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   353
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   354
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   355
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   356
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   357
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   358
  foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   359
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   360
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   361
  query 1; heads
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   362
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   363
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
   364
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   365
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   366
  listing keys for "bookmarks"
18382
f3b21beb9802 filtering: rename filters to their antonyms
Kevin Bullock <kbullock@ringworld.org>
parents: 18245
diff changeset
   367
  invalid branchheads cache (served): tip differs
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
   368
  listing keys for "bookmarks"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   369
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   370
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   371
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   372
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   373
  911600dab2ae7a9baff75958b84fe606851ce955
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   374
  bundle2-output-bundle: "HG20", 4 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   375
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   376
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   377
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   378
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   379
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   380
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   381
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   382
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   383
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   384
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
   385
  adding changesets
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   386
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   387
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   388
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   389
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   390
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   391
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   392
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   393
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   394
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   395
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   396
  acl: checking access for user "fred"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   397
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   398
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   399
  acl: acl.allow enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   400
  acl: acl.deny not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   401
  acl: branch access granted: "ef1ea85a6374" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   402
  acl: path access granted: "ef1ea85a6374"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   403
  acl: branch access granted: "f9cafe1212c8" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   404
  acl: path access granted: "f9cafe1212c8"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   405
  acl: branch access granted: "911600dab2ae" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   406
  error: pretxnchangegroup.acl hook failed: acl: user "fred" not allowed on "quux/file.py" (changeset "911600dab2ae")
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   407
  bundle2-input-part: total payload size 1606
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   408
  bundle2-input-bundle: 3 parts total
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   409
  transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   410
  rollback completed
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   411
  abort: acl: user "fred" not allowed on "quux/file.py" (changeset "911600dab2ae")
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   412
  no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   413
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   414
  
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   415
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   416
Empty [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   417
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   418
  $ echo '[acl.deny]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   419
  $ do_push barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   420
  Pushing as user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   421
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   422
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   423
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   424
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   425
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   426
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   427
  foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   428
  [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   429
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   430
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   431
  query 1; heads
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   432
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   433
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
   434
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   435
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   436
  listing keys for "bookmarks"
18382
f3b21beb9802 filtering: rename filters to their antonyms
Kevin Bullock <kbullock@ringworld.org>
parents: 18245
diff changeset
   437
  invalid branchheads cache (served): tip differs
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
   438
  listing keys for "bookmarks"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   439
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   440
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   441
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   442
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   443
  911600dab2ae7a9baff75958b84fe606851ce955
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   444
  bundle2-output-bundle: "HG20", 4 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   445
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   446
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   447
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   448
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   449
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   450
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   451
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   452
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   453
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   454
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
   455
  adding changesets
11849
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
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   458
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   459
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   460
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   461
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   462
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   463
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   464
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   465
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   466
  acl: checking access for user "barney"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   467
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   468
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   469
  acl: acl.allow enabled, 0 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   470
  acl: acl.deny enabled, 0 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   471
  acl: branch access granted: "ef1ea85a6374" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   472
  error: pretxnchangegroup.acl hook failed: acl: user "barney" not allowed on "foo/file.txt" (changeset "ef1ea85a6374")
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   473
  bundle2-input-part: total payload size 1606
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   474
  bundle2-input-bundle: 3 parts total
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   475
  transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   476
  rollback completed
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   477
  abort: acl: user "barney" not allowed on "foo/file.txt" (changeset "ef1ea85a6374")
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   478
  no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   479
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   480
  
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   481
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   482
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
   483
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   484
  $ echo 'foo/bar/** = fred' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   485
  $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   486
  Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   487
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   488
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   489
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   490
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   491
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   492
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   493
  foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   494
  [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   495
  foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   496
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   497
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   498
  query 1; heads
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   499
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   500
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
   501
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   502
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   503
  listing keys for "bookmarks"
18382
f3b21beb9802 filtering: rename filters to their antonyms
Kevin Bullock <kbullock@ringworld.org>
parents: 18245
diff changeset
   504
  invalid branchheads cache (served): tip differs
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
   505
  listing keys for "bookmarks"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   506
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   507
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   508
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   509
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   510
  911600dab2ae7a9baff75958b84fe606851ce955
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   511
  bundle2-output-bundle: "HG20", 4 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   512
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   513
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   514
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   515
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   516
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   517
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   518
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   519
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   520
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   521
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
   522
  adding changesets
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   523
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   524
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   525
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   526
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   527
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   528
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   529
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   530
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   531
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   532
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   533
  acl: checking access for user "fred"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   534
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   535
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   536
  acl: acl.allow enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   537
  acl: acl.deny enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   538
  acl: branch access granted: "ef1ea85a6374" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   539
  acl: path access granted: "ef1ea85a6374"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   540
  acl: branch access granted: "f9cafe1212c8" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   541
  acl: path access granted: "f9cafe1212c8"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   542
  acl: branch access granted: "911600dab2ae" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   543
  error: pretxnchangegroup.acl hook failed: acl: user "fred" not allowed on "quux/file.py" (changeset "911600dab2ae")
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   544
  bundle2-input-part: total payload size 1606
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   545
  bundle2-input-bundle: 3 parts total
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   546
  transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   547
  rollback completed
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   548
  abort: acl: user "fred" not allowed on "quux/file.py" (changeset "911600dab2ae")
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   549
  no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   550
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   551
  
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   552
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   553
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
   554
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   555
  $ echo 'foo/Bar/** = fred' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   556
  $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   557
  Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   558
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   559
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   560
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   561
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   562
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   563
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   564
  foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   565
  [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   566
  foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   567
  foo/Bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   568
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   569
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   570
  query 1; heads
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   571
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   572
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
   573
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   574
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   575
  listing keys for "bookmarks"
18382
f3b21beb9802 filtering: rename filters to their antonyms
Kevin Bullock <kbullock@ringworld.org>
parents: 18245
diff changeset
   576
  invalid branchheads cache (served): tip differs
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
   577
  listing keys for "bookmarks"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   578
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   579
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   580
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   581
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   582
  911600dab2ae7a9baff75958b84fe606851ce955
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   583
  bundle2-output-bundle: "HG20", 4 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   584
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   585
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   586
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   587
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   588
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   589
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   590
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   591
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   592
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   593
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
   594
  adding changesets
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   595
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   596
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   597
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   598
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   599
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   600
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   601
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   602
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   603
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   604
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   605
  acl: checking access for user "fred"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   606
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   607
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   608
  acl: acl.allow enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   609
  acl: acl.deny enabled, 2 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   610
  acl: branch access granted: "ef1ea85a6374" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   611
  acl: path access granted: "ef1ea85a6374"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   612
  acl: branch access granted: "f9cafe1212c8" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   613
  error: pretxnchangegroup.acl hook failed: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8")
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   614
  bundle2-input-part: total payload size 1606
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   615
  bundle2-input-bundle: 3 parts total
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   616
  transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   617
  rollback completed
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   618
  abort: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8")
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   619
  no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   620
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   621
  
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
   622
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   623
  $ echo 'barney is not mentioned => not allowed anywhere'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   624
  barney is not mentioned => not allowed anywhere
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   625
  $ do_push barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   626
  Pushing as user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   627
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   628
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   629
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   630
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   631
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   632
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   633
  foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   634
  [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   635
  foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   636
  foo/Bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   637
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   638
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   639
  query 1; heads
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   640
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   641
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
   642
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   643
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   644
  listing keys for "bookmarks"
18382
f3b21beb9802 filtering: rename filters to their antonyms
Kevin Bullock <kbullock@ringworld.org>
parents: 18245
diff changeset
   645
  invalid branchheads cache (served): tip differs
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
   646
  listing keys for "bookmarks"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   647
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   648
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   649
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   650
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   651
  911600dab2ae7a9baff75958b84fe606851ce955
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   652
  bundle2-output-bundle: "HG20", 4 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   653
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   654
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   655
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   656
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   657
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   658
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   659
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   660
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   661
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   662
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
   663
  adding changesets
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   664
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   665
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   666
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   667
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   668
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   669
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   670
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   671
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   672
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   673
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   674
  acl: checking access for user "barney"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   675
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   676
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   677
  acl: acl.allow enabled, 0 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   678
  acl: acl.deny enabled, 0 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   679
  acl: branch access granted: "ef1ea85a6374" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   680
  error: pretxnchangegroup.acl hook failed: acl: user "barney" not allowed on "foo/file.txt" (changeset "ef1ea85a6374")
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   681
  bundle2-input-part: total payload size 1606
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   682
  bundle2-input-bundle: 3 parts total
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   683
  transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   684
  rollback completed
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   685
  abort: acl: user "barney" not allowed on "foo/file.txt" (changeset "ef1ea85a6374")
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   686
  no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   687
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   688
  
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
   689
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   690
barney is allowed everywhere
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
   691
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   692
  $ echo '[acl.allow]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   693
  $ echo '** = barney' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   694
  $ do_push barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   695
  Pushing as user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   696
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   697
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   698
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   699
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   700
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   701
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   702
  foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   703
  [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   704
  foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   705
  foo/Bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   706
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   707
  ** = barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   708
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   709
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   710
  query 1; heads
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   711
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   712
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
   713
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   714
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   715
  listing keys for "bookmarks"
18382
f3b21beb9802 filtering: rename filters to their antonyms
Kevin Bullock <kbullock@ringworld.org>
parents: 18245
diff changeset
   716
  invalid branchheads cache (served): tip differs
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
   717
  listing keys for "bookmarks"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   718
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   719
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   720
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   721
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   722
  911600dab2ae7a9baff75958b84fe606851ce955
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   723
  bundle2-output-bundle: "HG20", 4 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   724
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   725
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   726
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   727
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   728
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   729
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   730
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   731
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   732
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   733
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
   734
  adding changesets
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   735
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   736
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   737
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   738
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   739
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   740
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   741
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   742
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   743
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   744
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   745
  acl: checking access for user "barney"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   746
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   747
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   748
  acl: acl.allow enabled, 1 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   749
  acl: acl.deny enabled, 0 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   750
  acl: branch access granted: "ef1ea85a6374" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   751
  acl: path access granted: "ef1ea85a6374"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   752
  acl: branch access granted: "f9cafe1212c8" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   753
  acl: path access granted: "f9cafe1212c8"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   754
  acl: branch access granted: "911600dab2ae" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   755
  acl: path access granted: "911600dab2ae"
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   756
  bundle2-input-part: total payload size 1606
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   757
  bundle2-input-part: "pushkey" (params: 4 mandatory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   758
  pushing key for "phases:911600dab2ae7a9baff75958b84fe606851ce955"
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   759
  bundle2-input-bundle: 3 parts total
20969
7a679918ee2b localrepo: add unbundle support
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 18395
diff changeset
   760
  updating the branch cache
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   761
  bundle2-output-bundle: "HG20", 2 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   762
  bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   763
  bundle2-output-part: "reply:pushkey" (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   764
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   765
  bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   766
  bundle2-input-part: "reply:pushkey" (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   767
  bundle2-input-bundle: 1 parts total
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
   768
  listing keys for "phases"
17294
d2217df3a7cf obsolete: add debug output regarding obsolete marker exchange.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 17293
diff changeset
   769
  try to push obsolete markers to remote
13446
1e497df514e2 rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents: 13364
diff changeset
   770
  repository tip rolled back to revision 0 (undo push)
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   771
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   772
  
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
   773
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   774
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
   775
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   776
  $ echo '**/*.txt = wilma' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   777
  $ do_push wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   778
  Pushing as user wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   779
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   780
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   781
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   782
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   783
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   784
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   785
  foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   786
  [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   787
  foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   788
  foo/Bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   789
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   790
  ** = barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   791
  **/*.txt = wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   792
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   793
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   794
  query 1; heads
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   795
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   796
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
   797
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   798
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   799
  listing keys for "bookmarks"
18382
f3b21beb9802 filtering: rename filters to their antonyms
Kevin Bullock <kbullock@ringworld.org>
parents: 18245
diff changeset
   800
  invalid branchheads cache (served): tip differs
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
   801
  listing keys for "bookmarks"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   802
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   803
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   804
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   805
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   806
  911600dab2ae7a9baff75958b84fe606851ce955
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   807
  bundle2-output-bundle: "HG20", 4 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   808
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   809
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   810
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   811
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   812
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   813
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   814
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   815
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   816
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   817
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
   818
  adding changesets
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   819
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   820
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   821
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   822
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   823
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   824
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   825
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   826
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   827
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   828
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   829
  acl: checking access for user "wilma"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   830
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   831
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   832
  acl: acl.allow enabled, 1 entries for user wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   833
  acl: acl.deny enabled, 0 entries for user wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   834
  acl: branch access granted: "ef1ea85a6374" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   835
  acl: path access granted: "ef1ea85a6374"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   836
  acl: branch access granted: "f9cafe1212c8" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   837
  acl: path access granted: "f9cafe1212c8"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   838
  acl: branch access granted: "911600dab2ae" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   839
  error: pretxnchangegroup.acl hook failed: acl: user "wilma" not allowed on "quux/file.py" (changeset "911600dab2ae")
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   840
  bundle2-input-part: total payload size 1606
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   841
  bundle2-input-bundle: 3 parts total
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   842
  transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   843
  rollback completed
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   844
  abort: acl: user "wilma" not allowed on "quux/file.py" (changeset "911600dab2ae")
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   845
  no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   846
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   847
  
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
   848
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   849
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
   850
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   851
  $ echo '[acl]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   852
  $ echo 'config = ../acl.config' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   853
  $ do_push barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   854
  Pushing as user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   855
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   856
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   857
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   858
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   859
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   860
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   861
  foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   862
  [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   863
  foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   864
  foo/Bar/** = fred
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
  ** = barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   867
  **/*.txt = wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   868
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   869
  config = ../acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   870
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   871
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   872
  query 1; heads
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   873
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   874
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
   875
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   876
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   877
  listing keys for "bookmarks"
18382
f3b21beb9802 filtering: rename filters to their antonyms
Kevin Bullock <kbullock@ringworld.org>
parents: 18245
diff changeset
   878
  invalid branchheads cache (served): tip differs
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
   879
  listing keys for "bookmarks"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   880
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   881
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   882
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   883
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   884
  911600dab2ae7a9baff75958b84fe606851ce955
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   885
  bundle2-output-bundle: "HG20", 4 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   886
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   887
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   888
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   889
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   890
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   891
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   892
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   893
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   894
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   895
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
   896
  adding changesets
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   897
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   898
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   899
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   900
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   901
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   902
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   903
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   904
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   905
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   906
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   907
  acl: checking access for user "barney"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   908
  error: pretxnchangegroup.acl hook raised an exception: [Errno 2] No such file or directory: '../acl.config'
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   909
  bundle2-input-part: total payload size 1606
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   910
  bundle2-input-bundle: 3 parts total
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   911
  transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   912
  rollback completed
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   913
  abort: No such file or directory: ../acl.config
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   914
  no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   915
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   916
  
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
   917
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   918
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
   919
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   920
  $ echo '[acl.allow]' >> acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   921
  $ echo 'foo/** = betty' >> acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   922
  $ do_push betty
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   923
  Pushing as user betty
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   924
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   925
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   926
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   927
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   928
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   929
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   930
  foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   931
  [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   932
  foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   933
  foo/Bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   934
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   935
  ** = barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   936
  **/*.txt = wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   937
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   938
  config = ../acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   939
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   940
  acl.config = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   941
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   942
  foo/** = betty
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   943
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   944
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   945
  query 1; heads
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   946
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
   947
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
   948
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   949
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
   950
  listing keys for "bookmarks"
18382
f3b21beb9802 filtering: rename filters to their antonyms
Kevin Bullock <kbullock@ringworld.org>
parents: 18245
diff changeset
   951
  invalid branchheads cache (served): tip differs
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
   952
  listing keys for "bookmarks"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   953
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   954
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   955
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   956
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   957
  911600dab2ae7a9baff75958b84fe606851ce955
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   958
  bundle2-output-bundle: "HG20", 4 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   959
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   960
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   961
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   962
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   963
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   964
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   965
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   966
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   967
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   968
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
   969
  adding changesets
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   970
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   971
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   972
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   973
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   974
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   975
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   976
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   977
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   978
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   979
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   980
  acl: checking access for user "betty"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   981
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   982
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   983
  acl: acl.allow enabled, 1 entries for user betty
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   984
  acl: acl.deny enabled, 0 entries for user betty
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   985
  acl: branch access granted: "ef1ea85a6374" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   986
  acl: path access granted: "ef1ea85a6374"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   987
  acl: branch access granted: "f9cafe1212c8" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   988
  acl: path access granted: "f9cafe1212c8"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   989
  acl: branch access granted: "911600dab2ae" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   990
  error: pretxnchangegroup.acl hook failed: acl: user "betty" not allowed on "quux/file.py" (changeset "911600dab2ae")
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   991
  bundle2-input-part: total payload size 1606
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
   992
  bundle2-input-bundle: 3 parts total
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   993
  transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   994
  rollback completed
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
   995
  abort: acl: user "betty" not allowed on "quux/file.py" (changeset "911600dab2ae")
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   996
  no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   997
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
   998
  
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
   999
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1000
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
  1001
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1002
  $ echo '[hooks]' >> acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1003
  $ echo 'changegroup.acl = false' >> acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1004
  $ do_push barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1005
  Pushing as user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1006
  hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1007
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1008
  pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1009
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1010
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1011
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1012
  foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1013
  [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1014
  foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1015
  foo/Bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1016
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1017
  ** = barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1018
  **/*.txt = wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1019
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1020
  config = ../acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1021
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1022
  acl.config = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1023
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1024
  foo/** = betty
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1025
  [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1026
  changegroup.acl = false
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1027
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1028
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1029
  query 1; heads
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1030
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1031
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
  1032
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1033
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1034
  listing keys for "bookmarks"
18382
f3b21beb9802 filtering: rename filters to their antonyms
Kevin Bullock <kbullock@ringworld.org>
parents: 18245
diff changeset
  1035
  invalid branchheads cache (served): tip differs
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
  1036
  listing keys for "bookmarks"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1037
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1038
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1039
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1040
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1041
  911600dab2ae7a9baff75958b84fe606851ce955
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1042
  bundle2-output-bundle: "HG20", 4 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1043
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1044
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1045
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1046
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1047
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1048
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1049
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1050
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1051
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1052
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
  1053
  adding changesets
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1054
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1055
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1056
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1057
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1058
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1059
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1060
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1061
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1062
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1063
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1064
  acl: checking access for user "barney"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1065
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1066
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1067
  acl: acl.allow enabled, 1 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1068
  acl: acl.deny enabled, 0 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1069
  acl: branch access granted: "ef1ea85a6374" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1070
  acl: path access granted: "ef1ea85a6374"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1071
  acl: branch access granted: "f9cafe1212c8" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1072
  acl: path access granted: "f9cafe1212c8"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1073
  acl: branch access granted: "911600dab2ae" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1074
  acl: path access granted: "911600dab2ae"
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1075
  bundle2-input-part: total payload size 1606
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1076
  bundle2-input-part: "pushkey" (params: 4 mandatory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1077
  pushing key for "phases:911600dab2ae7a9baff75958b84fe606851ce955"
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1078
  bundle2-input-bundle: 3 parts total
20969
7a679918ee2b localrepo: add unbundle support
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 18395
diff changeset
  1079
  updating the branch cache
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1080
  bundle2-output-bundle: "HG20", 2 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1081
  bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1082
  bundle2-output-part: "reply:pushkey" (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1083
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1084
  bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1085
  bundle2-input-part: "reply:pushkey" (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1086
  bundle2-input-bundle: 1 parts total
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
  1087
  listing keys for "phases"
17294
d2217df3a7cf obsolete: add debug output regarding obsolete marker exchange.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 17293
diff changeset
  1088
  try to push obsolete markers to remote
13446
1e497df514e2 rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents: 13364
diff changeset
  1089
  repository tip rolled back to revision 0 (undo push)
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1090
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1091
  
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
  1092
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1093
asterisk
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1094
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1095
  $ init_config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1096
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1097
asterisk test
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1098
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1099
  $ echo '[acl.allow]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1100
  $ echo "** = fred" >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1101
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1102
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
  1103
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1104
  $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1105
  Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1106
  hgrc = """
22379
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  1107
  [hooks]
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  1108
  pretxnchangegroup.acl = python:hgext.acl.hook
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1109
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1110
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1111
  [extensions]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1112
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1113
  ** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1114
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1115
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1116
  query 1; heads
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1117
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1118
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
  1119
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1120
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1121
  listing keys for "bookmarks"
18382
f3b21beb9802 filtering: rename filters to their antonyms
Kevin Bullock <kbullock@ringworld.org>
parents: 18245
diff changeset
  1122
  invalid branchheads cache (served): tip differs
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
  1123
  listing keys for "bookmarks"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1124
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1125
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1126
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1127
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1128
  911600dab2ae7a9baff75958b84fe606851ce955
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1129
  bundle2-output-bundle: "HG20", 4 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1130
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1131
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1132
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1133
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1134
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1135
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1136
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1137
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1138
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1139
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
  1140
  adding changesets
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1141
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1142
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1143
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1144
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1145
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1146
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1147
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1148
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1149
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1150
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1151
  acl: checking access for user "fred"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1152
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1153
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1154
  acl: acl.allow enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1155
  acl: acl.deny not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1156
  acl: branch access granted: "ef1ea85a6374" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1157
  acl: path access granted: "ef1ea85a6374"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1158
  acl: branch access granted: "f9cafe1212c8" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1159
  acl: path access granted: "f9cafe1212c8"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1160
  acl: branch access granted: "911600dab2ae" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1161
  acl: path access granted: "911600dab2ae"
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1162
  bundle2-input-part: total payload size 1606
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1163
  bundle2-input-part: "pushkey" (params: 4 mandatory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1164
  pushing key for "phases:911600dab2ae7a9baff75958b84fe606851ce955"
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1165
  bundle2-input-bundle: 3 parts total
20969
7a679918ee2b localrepo: add unbundle support
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 18395
diff changeset
  1166
  updating the branch cache
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1167
  bundle2-output-bundle: "HG20", 2 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1168
  bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1169
  bundle2-output-part: "reply:pushkey" (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1170
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1171
  bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1172
  bundle2-input-part: "reply:pushkey" (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1173
  bundle2-input-bundle: 1 parts total
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
  1174
  listing keys for "phases"
17294
d2217df3a7cf obsolete: add debug output regarding obsolete marker exchange.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 17293
diff changeset
  1175
  try to push obsolete markers to remote
13446
1e497df514e2 rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents: 13364
diff changeset
  1176
  repository tip rolled back to revision 0 (undo push)
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1177
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1178
  
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
  1179
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1180
  $ echo '[acl.deny]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1181
  $ echo "foo/Bar/** = *" >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1182
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1183
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
  1184
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1185
  $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1186
  Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1187
  hgrc = """
22379
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  1188
  [hooks]
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  1189
  pretxnchangegroup.acl = python:hgext.acl.hook
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1190
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1191
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1192
  [extensions]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1193
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1194
  ** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1195
  [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1196
  foo/Bar/** = *
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1197
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1198
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1199
  query 1; heads
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1200
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1201
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
  1202
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1203
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1204
  listing keys for "bookmarks"
18382
f3b21beb9802 filtering: rename filters to their antonyms
Kevin Bullock <kbullock@ringworld.org>
parents: 18245
diff changeset
  1205
  invalid branchheads cache (served): tip differs
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
  1206
  listing keys for "bookmarks"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1207
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1208
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1209
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1210
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1211
  911600dab2ae7a9baff75958b84fe606851ce955
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1212
  bundle2-output-bundle: "HG20", 4 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1213
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1214
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1215
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1216
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1217
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1218
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1219
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1220
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1221
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1222
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
  1223
  adding changesets
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1224
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1225
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1226
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1227
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1228
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1229
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1230
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1231
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1232
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1233
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1234
  acl: checking access for user "fred"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1235
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1236
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1237
  acl: acl.allow enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1238
  acl: acl.deny enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1239
  acl: branch access granted: "ef1ea85a6374" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1240
  acl: path access granted: "ef1ea85a6374"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1241
  acl: branch access granted: "f9cafe1212c8" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1242
  error: pretxnchangegroup.acl hook failed: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8")
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1243
  bundle2-input-part: total payload size 1606
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1244
  bundle2-input-bundle: 3 parts total
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1245
  transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1246
  rollback completed
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1247
  abort: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8")
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1248
  no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1249
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1250
  
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
  1251
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1252
Groups
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1253
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1254
  $ init_config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1255
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1256
OS-level groups
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1257
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1258
  $ echo '[acl.allow]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1259
  $ echo "** = @group1" >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1260
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1261
@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
  1262
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1263
  $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1264
  Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1265
  hgrc = """
22379
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  1266
  [hooks]
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  1267
  pretxnchangegroup.acl = python:hgext.acl.hook
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1268
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1269
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1270
  [extensions]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1271
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1272
  ** = @group1
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1273
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1274
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1275
  query 1; heads
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1276
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1277
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
  1278
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1279
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1280
  listing keys for "bookmarks"
18382
f3b21beb9802 filtering: rename filters to their antonyms
Kevin Bullock <kbullock@ringworld.org>
parents: 18245
diff changeset
  1281
  invalid branchheads cache (served): tip differs
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
  1282
  listing keys for "bookmarks"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1283
  3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1284
  list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1285
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1286
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1287
  911600dab2ae7a9baff75958b84fe606851ce955
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1288
  bundle2-output-bundle: "HG20", 4 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1289
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1290
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1291
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1292
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1293
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1294
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1295
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1296
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1297
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1298
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
  1299
  adding changesets
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1300
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1301
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1302
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1303
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1304
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1305
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1306
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1307
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1308
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1309
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1310
  acl: checking access for user "fred"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1311
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1312
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1313
  acl: "group1" not defined in [acl.groups]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1314
  acl: acl.allow enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1315
  acl: acl.deny not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1316
  acl: branch access granted: "ef1ea85a6374" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1317
  acl: path access granted: "ef1ea85a6374"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1318
  acl: branch access granted: "f9cafe1212c8" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1319
  acl: path access granted: "f9cafe1212c8"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1320
  acl: branch access granted: "911600dab2ae" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1321
  acl: path access granted: "911600dab2ae"
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1322
  bundle2-input-part: total payload size 1606
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1323
  bundle2-input-part: "pushkey" (params: 4 mandatory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1324
  pushing key for "phases:911600dab2ae7a9baff75958b84fe606851ce955"
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1325
  bundle2-input-bundle: 3 parts total
20969
7a679918ee2b localrepo: add unbundle support
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 18395
diff changeset
  1326
  updating the branch cache
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1327
  bundle2-output-bundle: "HG20", 2 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1328
  bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1329
  bundle2-output-part: "reply:pushkey" (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1330
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1331
  bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1332
  bundle2-input-part: "reply:pushkey" (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1333
  bundle2-input-bundle: 1 parts total
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
  1334
  listing keys for "phases"
17294
d2217df3a7cf obsolete: add debug output regarding obsolete marker exchange.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 17293
diff changeset
  1335
  try to push obsolete markers to remote
13446
1e497df514e2 rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents: 13364
diff changeset
  1336
  repository tip rolled back to revision 0 (undo push)
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1337
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1338
  
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1339
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1340
  $ echo '[acl.deny]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1341
  $ echo "foo/Bar/** = @group1" >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1342
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1343
@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
  1344
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1345
  $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1346
  Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1347
  hgrc = """
22379
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  1348
  [hooks]
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  1349
  pretxnchangegroup.acl = python:hgext.acl.hook
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1350
  [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1351
  sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1352
  [extensions]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1353
  [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1354
  ** = @group1
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1355
  [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1356
  foo/Bar/** = @group1
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1357
  """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1358
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1359
  query 1; heads
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1360
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1361
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
  1362
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1363
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1364
  listing keys for "bookmarks"
18382
f3b21beb9802 filtering: rename filters to their antonyms
Kevin Bullock <kbullock@ringworld.org>
parents: 18245
diff changeset
  1365
  invalid branchheads cache (served): tip differs
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
  1366
  listing keys for "bookmarks"
11849
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
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1372
  bundle2-output-bundle: "HG20", 4 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1373
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1374
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1375
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1376
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1377
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1378
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1379
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1380
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1381
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1382
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
  1383
  adding changesets
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1384
  add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1385
  add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1386
  add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1387
  adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1388
  adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1389
  adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1390
  adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1391
  adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1392
  added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1393
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1394
  acl: checking access for user "fred"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1395
  acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1396
  acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1397
  acl: "group1" not defined in [acl.groups]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1398
  acl: acl.allow enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1399
  acl: "group1" not defined in [acl.groups]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1400
  acl: acl.deny enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1401
  acl: branch access granted: "ef1ea85a6374" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1402
  acl: path access granted: "ef1ea85a6374"
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1403
  acl: branch access granted: "f9cafe1212c8" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1404
  error: pretxnchangegroup.acl hook failed: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8")
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1405
  bundle2-input-part: total payload size 1606
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1406
  bundle2-input-bundle: 3 parts total
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1407
  transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1408
  rollback completed
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1409
  abort: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8")
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1410
  no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1411
  0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1412
  
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
  1413
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1414
Invalid group
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1415
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1416
Disable the fakegroups trick to get real failures
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1417
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1418
  $ grep -v fakegroups $config > config.tmp
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1419
  $ mv config.tmp $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1420
  $ echo '[acl.allow]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1421
  $ echo "** = @unlikelytoexist" >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1422
  $ do_push fred 2>&1 | grep unlikelytoexist
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1423
  ** = @unlikelytoexist
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1424
  acl: "unlikelytoexist" not defined in [acl.groups]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1425
  error: pretxnchangegroup.acl hook failed: group 'unlikelytoexist' is undefined
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
  1426
  abort: group 'unlikelytoexist' is undefined
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1427
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1428
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1429
Branch acl tests setup
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1430
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1431
  $ init_config
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1432
  $ cd b
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1433
  $ hg up
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1434
  0 files updated, 0 files merged, 0 files removed, 0 files unresolved
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1435
  $ hg branch foobar
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1436
  marked working directory as branch foobar
15615
41885892796e branch: warn on branching
Matt Mackall <mpm@selenic.com>
parents: 15207
diff changeset
  1437
  (branches are permanent and global, did you want a bookmark?)
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1438
  $ hg commit -m 'create foobar'
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1439
  $ echo 'foo contents' > abc.txt
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1440
  $ hg add abc.txt
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1441
  $ hg commit -m 'foobar contents'
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1442
  $ cd ..
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1443
  $ hg --cwd a pull ../b
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1444
  pulling from ../b
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1445
  searching for changes
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1446
  adding changesets
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1447
  adding manifests
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1448
  adding file changes
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1449
  added 2 changesets with 1 changes to 1 files (+1 heads)
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1450
  (run 'hg heads' to see heads)
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1451
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1452
Create additional changeset on foobar branch
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1453
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1454
  $ cd a
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1455
  $ hg up -C foobar
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1456
  4 files updated, 0 files merged, 0 files removed, 0 files unresolved
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1457
  $ echo 'foo contents2' > abc.txt
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1458
  $ hg commit -m 'foobar contents2'
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1459
  $ cd ..
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1460
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1461
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1462
No branch acls specified
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1463
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1464
  $ do_push astro
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1465
  Pushing as user astro
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1466
  hgrc = """
22379
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  1467
  [hooks]
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  1468
  pretxnchangegroup.acl = python:hgext.acl.hook
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1469
  [acl]
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1470
  sources = push
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1471
  [extensions]
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1472
  """
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1473
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1474
  query 1; heads
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1475
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1476
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
  1477
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1478
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1479
  listing keys for "bookmarks"
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
  1480
  listing keys for "bookmarks"
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1481
  4 changesets found
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1482
  list of changesets:
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1483
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1484
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1485
  911600dab2ae7a9baff75958b84fe606851ce955
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1486
  e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1487
  bundle2-output-bundle: "HG20", 5 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1488
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1489
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1490
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1491
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1492
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1493
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1494
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1495
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1496
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1497
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1498
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
  1499
  adding changesets
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1500
  add changeset ef1ea85a6374
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1501
  add changeset f9cafe1212c8
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1502
  add changeset 911600dab2ae
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1503
  add changeset e8fc755d4d82
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1504
  adding manifests
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1505
  adding file changes
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1506
  adding abc.txt revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1507
  adding foo/Bar/file.txt revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1508
  adding foo/file.txt revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1509
  adding quux/file.py revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1510
  added 4 changesets with 4 changes to 4 files (+1 heads)
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1511
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1512
  acl: checking access for user "astro"
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1513
  acl: acl.allow.branches not enabled
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1514
  acl: acl.deny.branches not enabled
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1515
  acl: acl.allow not enabled
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1516
  acl: acl.deny not enabled
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1517
  acl: branch access granted: "ef1ea85a6374" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1518
  acl: path access granted: "ef1ea85a6374"
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1519
  acl: branch access granted: "f9cafe1212c8" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1520
  acl: path access granted: "f9cafe1212c8"
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1521
  acl: branch access granted: "911600dab2ae" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1522
  acl: path access granted: "911600dab2ae"
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1523
  acl: branch access granted: "e8fc755d4d82" on branch "foobar"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1524
  acl: path access granted: "e8fc755d4d82"
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1525
  bundle2-input-part: total payload size 2101
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1526
  bundle2-input-part: "pushkey" (params: 4 mandatory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1527
  pushing key for "phases:911600dab2ae7a9baff75958b84fe606851ce955"
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1528
  bundle2-input-part: "pushkey" (params: 4 mandatory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1529
  pushing key for "phases:e8fc755d4d8217ee5b0c2bb41558c40d43b92c01"
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1530
  bundle2-input-bundle: 4 parts total
20969
7a679918ee2b localrepo: add unbundle support
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 18395
diff changeset
  1531
  updating the branch cache
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1532
  bundle2-output-bundle: "HG20", 3 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1533
  bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1534
  bundle2-output-part: "reply:pushkey" (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1535
  bundle2-output-part: "reply:pushkey" (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1536
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1537
  bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1538
  bundle2-input-part: "reply:pushkey" (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1539
  bundle2-input-part: "reply:pushkey" (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1540
  bundle2-input-bundle: 2 parts total
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
  1541
  listing keys for "phases"
17294
d2217df3a7cf obsolete: add debug output regarding obsolete marker exchange.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 17293
diff changeset
  1542
  try to push obsolete markers to remote
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1543
  repository tip rolled back to revision 2 (undo push)
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1544
  2:fb35475503ef
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1545
  
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1546
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1547
Branch acl deny test
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1548
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1549
  $ echo "[acl.deny.branches]" >> $config
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1550
  $ echo "foobar = *" >> $config
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1551
  $ do_push astro
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1552
  Pushing as user astro
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1553
  hgrc = """
22379
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  1554
  [hooks]
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  1555
  pretxnchangegroup.acl = python:hgext.acl.hook
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1556
  [acl]
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1557
  sources = push
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1558
  [extensions]
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1559
  [acl.deny.branches]
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1560
  foobar = *
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1561
  """
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1562
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1563
  query 1; heads
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1564
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1565
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
  1566
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1567
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1568
  listing keys for "bookmarks"
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
  1569
  listing keys for "bookmarks"
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1570
  4 changesets found
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1571
  list of changesets:
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1572
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1573
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1574
  911600dab2ae7a9baff75958b84fe606851ce955
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1575
  e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1576
  bundle2-output-bundle: "HG20", 5 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1577
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1578
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1579
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1580
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1581
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1582
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1583
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1584
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1585
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1586
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1587
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
  1588
  adding changesets
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1589
  add changeset ef1ea85a6374
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1590
  add changeset f9cafe1212c8
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1591
  add changeset 911600dab2ae
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1592
  add changeset e8fc755d4d82
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1593
  adding manifests
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1594
  adding file changes
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1595
  adding abc.txt revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1596
  adding foo/Bar/file.txt revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1597
  adding foo/file.txt revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1598
  adding quux/file.py revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1599
  added 4 changesets with 4 changes to 4 files (+1 heads)
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1600
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1601
  acl: checking access for user "astro"
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1602
  acl: acl.allow.branches not enabled
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1603
  acl: acl.deny.branches enabled, 1 entries for user astro
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1604
  acl: acl.allow not enabled
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1605
  acl: acl.deny not enabled
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1606
  acl: branch access granted: "ef1ea85a6374" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1607
  acl: path access granted: "ef1ea85a6374"
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1608
  acl: branch access granted: "f9cafe1212c8" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1609
  acl: path access granted: "f9cafe1212c8"
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1610
  acl: branch access granted: "911600dab2ae" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1611
  acl: path access granted: "911600dab2ae"
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1612
  error: pretxnchangegroup.acl hook failed: acl: user "astro" denied on branch "foobar" (changeset "e8fc755d4d82")
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1613
  bundle2-input-part: total payload size 2101
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1614
  bundle2-input-bundle: 4 parts total
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1615
  transaction abort!
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1616
  rollback completed
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1617
  abort: acl: user "astro" denied on branch "foobar" (changeset "e8fc755d4d82")
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1618
  no rollback information available
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1619
  2:fb35475503ef
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1620
  
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1621
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1622
Branch acl empty allow test
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1623
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1624
  $ init_config
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1625
  $ echo "[acl.allow.branches]" >> $config
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1626
  $ do_push astro
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1627
  Pushing as user astro
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1628
  hgrc = """
22379
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  1629
  [hooks]
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  1630
  pretxnchangegroup.acl = python:hgext.acl.hook
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1631
  [acl]
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1632
  sources = push
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1633
  [extensions]
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1634
  [acl.allow.branches]
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1635
  """
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1636
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1637
  query 1; heads
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1638
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1639
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
  1640
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1641
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1642
  listing keys for "bookmarks"
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
  1643
  listing keys for "bookmarks"
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1644
  4 changesets found
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1645
  list of changesets:
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1646
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1647
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1648
  911600dab2ae7a9baff75958b84fe606851ce955
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1649
  e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1650
  bundle2-output-bundle: "HG20", 5 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1651
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1652
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1653
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1654
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1655
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1656
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1657
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1658
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1659
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1660
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1661
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
  1662
  adding changesets
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1663
  add changeset ef1ea85a6374
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1664
  add changeset f9cafe1212c8
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1665
  add changeset 911600dab2ae
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1666
  add changeset e8fc755d4d82
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1667
  adding manifests
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1668
  adding file changes
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1669
  adding abc.txt revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1670
  adding foo/Bar/file.txt revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1671
  adding foo/file.txt revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1672
  adding quux/file.py revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1673
  added 4 changesets with 4 changes to 4 files (+1 heads)
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1674
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1675
  acl: checking access for user "astro"
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1676
  acl: acl.allow.branches enabled, 0 entries for user astro
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1677
  acl: acl.deny.branches not enabled
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1678
  acl: acl.allow not enabled
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1679
  acl: acl.deny not enabled
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1680
  error: pretxnchangegroup.acl hook failed: acl: user "astro" not allowed on branch "default" (changeset "ef1ea85a6374")
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1681
  bundle2-input-part: total payload size 2101
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1682
  bundle2-input-bundle: 4 parts total
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1683
  transaction abort!
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1684
  rollback completed
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1685
  abort: acl: user "astro" not allowed on branch "default" (changeset "ef1ea85a6374")
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1686
  no rollback information available
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1687
  2:fb35475503ef
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1688
  
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1689
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1690
Branch acl allow other
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1691
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1692
  $ init_config
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1693
  $ echo "[acl.allow.branches]" >> $config
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1694
  $ echo "* = george" >> $config
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1695
  $ do_push astro
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1696
  Pushing as user astro
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1697
  hgrc = """
22379
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  1698
  [hooks]
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  1699
  pretxnchangegroup.acl = python:hgext.acl.hook
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1700
  [acl]
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1701
  sources = push
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1702
  [extensions]
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1703
  [acl.allow.branches]
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1704
  * = george
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1705
  """
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1706
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1707
  query 1; heads
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1708
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1709
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
  1710
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1711
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1712
  listing keys for "bookmarks"
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
  1713
  listing keys for "bookmarks"
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1714
  4 changesets found
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1715
  list of changesets:
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1716
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1717
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1718
  911600dab2ae7a9baff75958b84fe606851ce955
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1719
  e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1720
  bundle2-output-bundle: "HG20", 5 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1721
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1722
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1723
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1724
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1725
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1726
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1727
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1728
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1729
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1730
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1731
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
  1732
  adding changesets
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1733
  add changeset ef1ea85a6374
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1734
  add changeset f9cafe1212c8
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1735
  add changeset 911600dab2ae
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1736
  add changeset e8fc755d4d82
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1737
  adding manifests
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1738
  adding file changes
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1739
  adding abc.txt revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1740
  adding foo/Bar/file.txt revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1741
  adding foo/file.txt revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1742
  adding quux/file.py revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1743
  added 4 changesets with 4 changes to 4 files (+1 heads)
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1744
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1745
  acl: checking access for user "astro"
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1746
  acl: acl.allow.branches enabled, 0 entries for user astro
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1747
  acl: acl.deny.branches not enabled
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1748
  acl: acl.allow not enabled
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1749
  acl: acl.deny not enabled
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1750
  error: pretxnchangegroup.acl hook failed: acl: user "astro" not allowed on branch "default" (changeset "ef1ea85a6374")
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1751
  bundle2-input-part: total payload size 2101
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1752
  bundle2-input-bundle: 4 parts total
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1753
  transaction abort!
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1754
  rollback completed
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1755
  abort: acl: user "astro" not allowed on branch "default" (changeset "ef1ea85a6374")
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1756
  no rollback information available
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1757
  2:fb35475503ef
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1758
  
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1759
  $ do_push george
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1760
  Pushing as user george
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1761
  hgrc = """
22379
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  1762
  [hooks]
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  1763
  pretxnchangegroup.acl = python:hgext.acl.hook
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1764
  [acl]
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1765
  sources = push
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1766
  [extensions]
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1767
  [acl.allow.branches]
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1768
  * = george
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1769
  """
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1770
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1771
  query 1; heads
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1772
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1773
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
  1774
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1775
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1776
  listing keys for "bookmarks"
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
  1777
  listing keys for "bookmarks"
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1778
  4 changesets found
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1779
  list of changesets:
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1780
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1781
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1782
  911600dab2ae7a9baff75958b84fe606851ce955
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1783
  e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1784
  bundle2-output-bundle: "HG20", 5 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1785
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1786
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1787
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1788
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1789
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1790
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1791
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1792
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1793
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1794
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1795
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
  1796
  adding changesets
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1797
  add changeset ef1ea85a6374
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1798
  add changeset f9cafe1212c8
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1799
  add changeset 911600dab2ae
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1800
  add changeset e8fc755d4d82
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1801
  adding manifests
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1802
  adding file changes
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1803
  adding abc.txt revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1804
  adding foo/Bar/file.txt revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1805
  adding foo/file.txt revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1806
  adding quux/file.py revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1807
  added 4 changesets with 4 changes to 4 files (+1 heads)
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1808
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1809
  acl: checking access for user "george"
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1810
  acl: acl.allow.branches enabled, 1 entries for user george
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1811
  acl: acl.deny.branches not enabled
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1812
  acl: acl.allow not enabled
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1813
  acl: acl.deny not enabled
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1814
  acl: branch access granted: "ef1ea85a6374" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1815
  acl: path access granted: "ef1ea85a6374"
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1816
  acl: branch access granted: "f9cafe1212c8" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1817
  acl: path access granted: "f9cafe1212c8"
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1818
  acl: branch access granted: "911600dab2ae" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1819
  acl: path access granted: "911600dab2ae"
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1820
  acl: branch access granted: "e8fc755d4d82" on branch "foobar"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1821
  acl: path access granted: "e8fc755d4d82"
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1822
  bundle2-input-part: total payload size 2101
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1823
  bundle2-input-part: "pushkey" (params: 4 mandatory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1824
  pushing key for "phases:911600dab2ae7a9baff75958b84fe606851ce955"
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1825
  bundle2-input-part: "pushkey" (params: 4 mandatory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1826
  pushing key for "phases:e8fc755d4d8217ee5b0c2bb41558c40d43b92c01"
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1827
  bundle2-input-bundle: 4 parts total
20969
7a679918ee2b localrepo: add unbundle support
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 18395
diff changeset
  1828
  updating the branch cache
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1829
  bundle2-output-bundle: "HG20", 3 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1830
  bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1831
  bundle2-output-part: "reply:pushkey" (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1832
  bundle2-output-part: "reply:pushkey" (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1833
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1834
  bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1835
  bundle2-input-part: "reply:pushkey" (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1836
  bundle2-input-part: "reply:pushkey" (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1837
  bundle2-input-bundle: 2 parts total
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
  1838
  listing keys for "phases"
17294
d2217df3a7cf obsolete: add debug output regarding obsolete marker exchange.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 17293
diff changeset
  1839
  try to push obsolete markers to remote
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1840
  repository tip rolled back to revision 2 (undo push)
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1841
  2:fb35475503ef
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1842
  
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1843
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1844
Branch acl conflicting allow
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1845
asterisk ends up applying to all branches and allowing george to
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1846
push foobar into the remote
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1847
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1848
  $ init_config
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1849
  $ echo "[acl.allow.branches]" >> $config
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1850
  $ echo "foobar = astro" >> $config
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1851
  $ echo "* = george" >> $config
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1852
  $ do_push george
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1853
  Pushing as user george
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1854
  hgrc = """
22379
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  1855
  [hooks]
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  1856
  pretxnchangegroup.acl = python:hgext.acl.hook
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1857
  [acl]
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1858
  sources = push
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1859
  [extensions]
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1860
  [acl.allow.branches]
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1861
  foobar = astro
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1862
  * = george
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1863
  """
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1864
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1865
  query 1; heads
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1866
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1867
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
  1868
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1869
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1870
  listing keys for "bookmarks"
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
  1871
  listing keys for "bookmarks"
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1872
  4 changesets found
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1873
  list of changesets:
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1874
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1875
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1876
  911600dab2ae7a9baff75958b84fe606851ce955
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1877
  e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1878
  bundle2-output-bundle: "HG20", 5 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1879
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1880
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1881
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1882
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1883
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1884
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1885
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1886
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1887
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1888
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1889
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
  1890
  adding changesets
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1891
  add changeset ef1ea85a6374
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1892
  add changeset f9cafe1212c8
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1893
  add changeset 911600dab2ae
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1894
  add changeset e8fc755d4d82
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1895
  adding manifests
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1896
  adding file changes
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1897
  adding abc.txt revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1898
  adding foo/Bar/file.txt revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1899
  adding foo/file.txt revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1900
  adding quux/file.py revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1901
  added 4 changesets with 4 changes to 4 files (+1 heads)
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1902
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1903
  acl: checking access for user "george"
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1904
  acl: acl.allow.branches enabled, 1 entries for user george
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1905
  acl: acl.deny.branches not enabled
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1906
  acl: acl.allow not enabled
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1907
  acl: acl.deny not enabled
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1908
  acl: branch access granted: "ef1ea85a6374" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1909
  acl: path access granted: "ef1ea85a6374"
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1910
  acl: branch access granted: "f9cafe1212c8" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1911
  acl: path access granted: "f9cafe1212c8"
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1912
  acl: branch access granted: "911600dab2ae" on branch "default"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1913
  acl: path access granted: "911600dab2ae"
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1914
  acl: branch access granted: "e8fc755d4d82" on branch "foobar"
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1915
  acl: path access granted: "e8fc755d4d82"
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1916
  bundle2-input-part: total payload size 2101
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1917
  bundle2-input-part: "pushkey" (params: 4 mandatory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1918
  pushing key for "phases:911600dab2ae7a9baff75958b84fe606851ce955"
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1919
  bundle2-input-part: "pushkey" (params: 4 mandatory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1920
  pushing key for "phases:e8fc755d4d8217ee5b0c2bb41558c40d43b92c01"
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1921
  bundle2-input-bundle: 4 parts total
20969
7a679918ee2b localrepo: add unbundle support
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 18395
diff changeset
  1922
  updating the branch cache
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1923
  bundle2-output-bundle: "HG20", 3 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1924
  bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1925
  bundle2-output-part: "reply:pushkey" (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1926
  bundle2-output-part: "reply:pushkey" (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1927
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1928
  bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1929
  bundle2-input-part: "reply:pushkey" (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1930
  bundle2-input-part: "reply:pushkey" (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1931
  bundle2-input-bundle: 2 parts total
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
  1932
  listing keys for "phases"
17294
d2217df3a7cf obsolete: add debug output regarding obsolete marker exchange.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 17293
diff changeset
  1933
  try to push obsolete markers to remote
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1934
  repository tip rolled back to revision 2 (undo push)
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1935
  2:fb35475503ef
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1936
  
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1937
Branch acl conflicting deny
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1938
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1939
  $ init_config
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1940
  $ echo "[acl.deny.branches]" >> $config
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1941
  $ echo "foobar = astro" >> $config
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1942
  $ echo "default = astro" >> $config
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1943
  $ echo "* = george" >> $config
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1944
  $ do_push george
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1945
  Pushing as user george
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1946
  hgrc = """
22379
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  1947
  [hooks]
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  1948
  pretxnchangegroup.acl = python:hgext.acl.hook
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1949
  [acl]
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1950
  sources = push
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1951
  [extensions]
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1952
  [acl.deny.branches]
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1953
  foobar = astro
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1954
  default = astro
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1955
  * = george
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1956
  """
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1957
  pushing to ../b
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1958
  query 1; heads
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1959
  searching for changes
14164
cb98fed52495 discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14162
diff changeset
  1960
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
  1961
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1962
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  1963
  listing keys for "bookmarks"
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
  1964
  listing keys for "bookmarks"
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1965
  4 changesets found
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1966
  list of changesets:
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1967
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1968
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1969
  911600dab2ae7a9baff75958b84fe606851ce955
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1970
  e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1971
  bundle2-output-bundle: "HG20", 5 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1972
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1973
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1974
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1975
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1976
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1977
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1978
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1979
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1980
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1981
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  1982
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
  1983
  adding changesets
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1984
  add changeset ef1ea85a6374
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1985
  add changeset f9cafe1212c8
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1986
  add changeset 911600dab2ae
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  1987
  add changeset e8fc755d4d82
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1988
  adding manifests
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1989
  adding file changes
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1990
  adding abc.txt revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1991
  adding foo/Bar/file.txt revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1992
  adding foo/file.txt revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1993
  adding quux/file.py revisions
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1994
  added 4 changesets with 4 changes to 4 files (+1 heads)
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1995
  calling hook pretxnchangegroup.acl: hgext.acl.hook
15207
0f7f9f06c759 acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents: 15131
diff changeset
  1996
  acl: checking access for user "george"
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1997
  acl: acl.allow.branches not enabled
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1998
  acl: acl.deny.branches enabled, 1 entries for user george
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  1999
  acl: acl.allow not enabled
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  2000
  acl: acl.deny not enabled
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  2001
  error: pretxnchangegroup.acl hook failed: acl: user "george" denied on branch "default" (changeset "ef1ea85a6374")
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2002
  bundle2-input-part: total payload size 2101
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2003
  bundle2-input-bundle: 4 parts total
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  2004
  transaction abort!
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  2005
  rollback completed
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  2006
  abort: acl: user "george" denied on branch "default" (changeset "ef1ea85a6374")
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  2007
  no rollback information available
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 14073
diff changeset
  2008
  2:fb35475503ef
13917
3259a067c102 acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents: 13783
diff changeset
  2009
  
16956
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2010
User 'astro' must not be denied
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2011
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2012
  $ init_config
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2013
  $ echo "[acl.deny.branches]" >> $config
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2014
  $ echo "default = !astro" >> $config
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2015
  $ do_push astro
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2016
  Pushing as user astro
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2017
  hgrc = """
22379
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  2018
  [hooks]
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  2019
  pretxnchangegroup.acl = python:hgext.acl.hook
16956
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2020
  [acl]
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2021
  sources = push
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2022
  [extensions]
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2023
  [acl.deny.branches]
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2024
  default = !astro
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2025
  """
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2026
  pushing to ../b
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2027
  query 1; heads
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2028
  searching for changes
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2029
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
  2030
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  2031
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  2032
  listing keys for "bookmarks"
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
  2033
  listing keys for "bookmarks"
16956
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2034
  4 changesets found
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2035
  list of changesets:
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2036
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2037
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2038
  911600dab2ae7a9baff75958b84fe606851ce955
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2039
  e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2040
  bundle2-output-bundle: "HG20", 5 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2041
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2042
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2043
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2044
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2045
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2046
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2047
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2048
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2049
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2050
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2051
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
  2052
  adding changesets
16956
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2053
  add changeset ef1ea85a6374
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2054
  add changeset f9cafe1212c8
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2055
  add changeset 911600dab2ae
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2056
  add changeset e8fc755d4d82
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2057
  adding manifests
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2058
  adding file changes
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2059
  adding abc.txt revisions
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2060
  adding foo/Bar/file.txt revisions
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2061
  adding foo/file.txt revisions
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2062
  adding quux/file.py revisions
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2063
  added 4 changesets with 4 changes to 4 files (+1 heads)
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2064
  calling hook pretxnchangegroup.acl: hgext.acl.hook
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2065
  acl: checking access for user "astro"
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2066
  acl: acl.allow.branches not enabled
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2067
  acl: acl.deny.branches enabled, 0 entries for user astro
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2068
  acl: acl.allow not enabled
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2069
  acl: acl.deny not enabled
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2070
  acl: branch access granted: "ef1ea85a6374" on branch "default"
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2071
  acl: path access granted: "ef1ea85a6374"
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2072
  acl: branch access granted: "f9cafe1212c8" on branch "default"
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2073
  acl: path access granted: "f9cafe1212c8"
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2074
  acl: branch access granted: "911600dab2ae" on branch "default"
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2075
  acl: path access granted: "911600dab2ae"
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2076
  acl: branch access granted: "e8fc755d4d82" on branch "foobar"
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2077
  acl: path access granted: "e8fc755d4d82"
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2078
  bundle2-input-part: total payload size 2101
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2079
  bundle2-input-part: "pushkey" (params: 4 mandatory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2080
  pushing key for "phases:911600dab2ae7a9baff75958b84fe606851ce955"
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2081
  bundle2-input-part: "pushkey" (params: 4 mandatory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2082
  pushing key for "phases:e8fc755d4d8217ee5b0c2bb41558c40d43b92c01"
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2083
  bundle2-input-bundle: 4 parts total
20969
7a679918ee2b localrepo: add unbundle support
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 18395
diff changeset
  2084
  updating the branch cache
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2085
  bundle2-output-bundle: "HG20", 3 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2086
  bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2087
  bundle2-output-part: "reply:pushkey" (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2088
  bundle2-output-part: "reply:pushkey" (params: 0 advisory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2089
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2090
  bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2091
  bundle2-input-part: "reply:pushkey" (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2092
  bundle2-input-part: "reply:pushkey" (params: 0 advisory) supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2093
  bundle2-input-bundle: 2 parts total
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
  2094
  listing keys for "phases"
17294
d2217df3a7cf obsolete: add debug output regarding obsolete marker exchange.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 17293
diff changeset
  2095
  try to push obsolete markers to remote
16956
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2096
  repository tip rolled back to revision 2 (undo push)
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2097
  2:fb35475503ef
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2098
  
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2099
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2100
Non-astro users must be denied
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2101
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2102
  $ do_push george
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2103
  Pushing as user george
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2104
  hgrc = """
22379
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  2105
  [hooks]
38a393d59e77 test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents: 22239
diff changeset
  2106
  pretxnchangegroup.acl = python:hgext.acl.hook
16956
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2107
  [acl]
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2108
  sources = push
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2109
  [extensions]
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2110
  [acl.deny.branches]
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2111
  default = !astro
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2112
  """
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2113
  pushing to ../b
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2114
  query 1; heads
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2115
  searching for changes
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2116
  all remote heads known locally
22019
9fcf772f15ff push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21070
diff changeset
  2117
  listing keys for "phases"
22239
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  2118
  checking for updated bookmarks
0688010ee38f push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 22019
diff changeset
  2119
  listing keys for "bookmarks"
17293
d3f84ccc5495 pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 16956
diff changeset
  2120
  listing keys for "bookmarks"
16956
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2121
  4 changesets found
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2122
  list of changesets:
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2123
  ef1ea85a6374b77d6da9dcda9541f498f2d17df7
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2124
  f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2125
  911600dab2ae7a9baff75958b84fe606851ce955
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2126
  e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2127
  bundle2-output-bundle: "HG20", 5 parts total
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2128
  bundle2-output-part: "replycaps" 93 bytes payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2129
  bundle2-output-part: "check:heads" streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2130
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2131
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2132
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2133
  bundle2-input-bundle: with-transaction
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2134
  bundle2-input-part: "replycaps" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2135
  bundle2-input-part: total payload size 93
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2136
  bundle2-input-part: "check:heads" supported
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2137
  bundle2-input-part: total payload size 20
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2138
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
21070
408877d491fb bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 20969
diff changeset
  2139
  adding changesets
16956
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2140
  add changeset ef1ea85a6374
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2141
  add changeset f9cafe1212c8
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2142
  add changeset 911600dab2ae
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2143
  add changeset e8fc755d4d82
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2144
  adding manifests
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2145
  adding file changes
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2146
  adding abc.txt revisions
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2147
  adding foo/Bar/file.txt revisions
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2148
  adding foo/file.txt revisions
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2149
  adding quux/file.py revisions
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2150
  added 4 changesets with 4 changes to 4 files (+1 heads)
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2151
  calling hook pretxnchangegroup.acl: hgext.acl.hook
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2152
  acl: checking access for user "george"
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2153
  acl: acl.allow.branches not enabled
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2154
  acl: acl.deny.branches enabled, 1 entries for user george
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2155
  acl: acl.allow not enabled
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2156
  acl: acl.deny not enabled
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2157
  error: pretxnchangegroup.acl hook failed: acl: user "george" denied on branch "default" (changeset "ef1ea85a6374")
25373
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2158
  bundle2-input-part: total payload size 2101
9793e52279a1 test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25125
diff changeset
  2159
  bundle2-input-bundle: 4 parts total
16956
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2160
  transaction abort!
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2161
  rollback completed
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2162
  abort: acl: user "george" denied on branch "default" (changeset "ef1ea85a6374")
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2163
  no rollback information available
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2164
  2:fb35475503ef
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2165
  
c49cf339b5bb acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents: 16945
diff changeset
  2166