annotate tests/test-acl.t @ 25190:22438cfd11b5

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