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