annotate tests/test-acl.t @ 41855:2dbdb9abcc4b

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