Mercurial > hg > mercurial-crew-with-dirclash
annotate tests/test-hook.out @ 1981:736b6c96bbbc
make incoming work via ssh (issue139); move chunk code into separate module.
Incoming ssh needs to detect the end of the changegroup, otherwise it would
block trying to read from the ssh pipe. This is done by parsing the
changegroup chunks.
bundlerepo.getchunk() already is identical to
localrepo.addchangegroup.getchunk(), which is followed by getgroup which
looks much like what you can re-use in bundlerepository.__init__() and in
write_bundle(). bundlerevlog.__init__.genchunk() looks very similar, too,
as do some while loops in localrepo.py.
Applied patch from Benoit Boissinot to move duplicate/related code
to mercurial/changegroup.py and use this to fix incoming ssh.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 21 Mar 2006 11:47:21 +0100 |
parents | 7544700fd931 |
children | ff255b41b4aa |
rev | line source |
---|---|
1735
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
1 precommit hook: p1=0000000000000000000000000000000000000000 p2= |
1933
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
2 pretxncommit hook: n=29b62aeb769fdf78d8d9c5f28b017f76d7ef824b p1=0000000000000000000000000000000000000000 p2= |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
3 0:29b62aeb769f |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
4 commit hook: n=29b62aeb769fdf78d8d9c5f28b017f76d7ef824b p1=0000000000000000000000000000000000000000 p2= |
1735
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
5 commit hook b |
1933
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
6 precommit hook: p1=29b62aeb769fdf78d8d9c5f28b017f76d7ef824b p2= |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
7 pretxncommit hook: n=b702efe9688826e3a91283852b328b84dbf37bc2 p1=29b62aeb769fdf78d8d9c5f28b017f76d7ef824b p2= |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
8 1:b702efe96888 |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
9 commit hook: n=b702efe9688826e3a91283852b328b84dbf37bc2 p1=29b62aeb769fdf78d8d9c5f28b017f76d7ef824b p2= |
1735
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
10 commit hook b |
1933
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
11 precommit hook: p1=29b62aeb769fdf78d8d9c5f28b017f76d7ef824b p2= |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
12 pretxncommit hook: n=1324a5531bac09b329c3845d35ae6a7526874edb p1=29b62aeb769fdf78d8d9c5f28b017f76d7ef824b p2= |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
13 2:1324a5531bac |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
14 commit hook: n=1324a5531bac09b329c3845d35ae6a7526874edb p1=29b62aeb769fdf78d8d9c5f28b017f76d7ef824b p2= |
1735
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
15 commit hook b |
1933
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
16 precommit hook: p1=1324a5531bac09b329c3845d35ae6a7526874edb p2=b702efe9688826e3a91283852b328b84dbf37bc2 |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
17 pretxncommit hook: n=4c52fb2e402287dd5dc052090682536c8406c321 p1=1324a5531bac09b329c3845d35ae6a7526874edb p2=b702efe9688826e3a91283852b328b84dbf37bc2 |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
18 3:4c52fb2e4022 |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
19 commit hook: n=4c52fb2e402287dd5dc052090682536c8406c321 p1=1324a5531bac09b329c3845d35ae6a7526874edb p2=b702efe9688826e3a91283852b328b84dbf37bc2 |
1735
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
20 commit hook b |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
21 prechangegroup hook |
1933
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
22 changegroup hook: n=b702efe9688826e3a91283852b328b84dbf37bc2 |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
23 incoming hook: n=b702efe9688826e3a91283852b328b84dbf37bc2 |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
24 incoming hook: n=1324a5531bac09b329c3845d35ae6a7526874edb |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
25 incoming hook: n=4c52fb2e402287dd5dc052090682536c8406c321 |
1735
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
26 pulling from ../a |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
27 searching for changes |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
28 adding changesets |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
29 adding manifests |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
30 adding file changes |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
31 added 3 changesets with 2 changes to 2 files |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
32 (run 'hg update' to get a working copy) |
1933
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
33 pretag hook: t=a n=4c52fb2e402287dd5dc052090682536c8406c321 l=0 |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
34 precommit hook: p1=4c52fb2e402287dd5dc052090682536c8406c321 p2= |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
35 pretxncommit hook: n=4f92e785b90ae8995dfe156e39dd4fbc3b346a24 p1=4c52fb2e402287dd5dc052090682536c8406c321 p2= |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
36 4:4f92e785b90a |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
37 commit hook: n=4f92e785b90ae8995dfe156e39dd4fbc3b346a24 p1=4c52fb2e402287dd5dc052090682536c8406c321 p2= |
1481
acd1832ebf31
Change test-hook to test multiple hooks
Matt Mackall <mpm@selenic.com>
parents:
925
diff
changeset
|
38 commit hook b |
1933
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
39 tag hook: t=a n=4c52fb2e402287dd5dc052090682536c8406c321 l=0 |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
40 pretag hook: t=la n=4f92e785b90ae8995dfe156e39dd4fbc3b346a24 l=1 |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
41 tag hook: t=la n=4f92e785b90ae8995dfe156e39dd4fbc3b346a24 l=1 |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
42 pretag hook: t=fa n=4f92e785b90ae8995dfe156e39dd4fbc3b346a24 l=0 |
1735
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
43 pretag.forbid hook |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
44 abort: pretag.forbid hook exited with status 1 |
1933
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
45 pretag hook: t=fla n=4f92e785b90ae8995dfe156e39dd4fbc3b346a24 l=1 |
1735
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
46 pretag.forbid hook |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
47 abort: pretag.forbid hook exited with status 1 |
1933
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
48 4:4f92e785b90a |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
49 precommit hook: p1=4f92e785b90ae8995dfe156e39dd4fbc3b346a24 p2= |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
50 pretxncommit hook: n=7792358308a2026661cea44f9d47c072813004cb p1=4f92e785b90ae8995dfe156e39dd4fbc3b346a24 p2= |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
51 5:7792358308a2 |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
52 pretxncommit.forbid hook: tip=5:7792358308a2 |
1735
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
53 abort: pretxncommit.forbid hook exited with status 1 |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
54 transaction abort! |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
55 rollback completed |
1933
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
56 4:4f92e785b90a |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
57 precommit hook: p1=4f92e785b90ae8995dfe156e39dd4fbc3b346a24 p2= |
1735
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
58 precommit.forbid hook |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
59 abort: precommit.forbid hook exited with status 1 |
1933
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
60 4:4f92e785b90a |
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
61 3:4c52fb2e4022 |
1735
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
62 prechangegroup.forbid hook |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
63 pulling from ../a |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
64 searching for changes |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
65 abort: prechangegroup.forbid hook exited with status 1 |
1933
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
66 pretxnchangegroup.forbid hook: tip=4:4f92e785b90a |
1735
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
67 pulling from ../a |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
68 searching for changes |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
69 adding changesets |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
70 adding manifests |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
71 adding file changes |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
72 added 1 changesets with 1 changes to 1 files |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
73 abort: pretxnchangegroup.forbid hook exited with status 1 |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
74 transaction abort! |
791405fe9991
i forgot to change the test output for test-hook.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1481
diff
changeset
|
75 rollback completed |
1933
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
76 3:4c52fb2e4022 |
1736
50de0887bbcd
add preoutgoing and outgoing hooks.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1735
diff
changeset
|
77 preoutgoing hook: s=pull |
1933
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1838
diff
changeset
|
78 outgoing hook: n=4f92e785b90ae8995dfe156e39dd4fbc3b346a24 s=pull |
1736
50de0887bbcd
add preoutgoing and outgoing hooks.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1735
diff
changeset
|
79 pulling from ../a |
50de0887bbcd
add preoutgoing and outgoing hooks.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1735
diff
changeset
|
80 searching for changes |
50de0887bbcd
add preoutgoing and outgoing hooks.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1735
diff
changeset
|
81 adding changesets |
50de0887bbcd
add preoutgoing and outgoing hooks.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1735
diff
changeset
|
82 adding manifests |
50de0887bbcd
add preoutgoing and outgoing hooks.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1735
diff
changeset
|
83 adding file changes |
50de0887bbcd
add preoutgoing and outgoing hooks.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1735
diff
changeset
|
84 added 1 changesets with 1 changes to 1 files |
50de0887bbcd
add preoutgoing and outgoing hooks.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1735
diff
changeset
|
85 (run 'hg update' to get a working copy) |
50de0887bbcd
add preoutgoing and outgoing hooks.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1735
diff
changeset
|
86 rolling back last transaction |
50de0887bbcd
add preoutgoing and outgoing hooks.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1735
diff
changeset
|
87 preoutgoing hook: s=pull |
50de0887bbcd
add preoutgoing and outgoing hooks.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1735
diff
changeset
|
88 preoutgoing.forbid hook |
50de0887bbcd
add preoutgoing and outgoing hooks.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1735
diff
changeset
|
89 pulling from ../a |
50de0887bbcd
add preoutgoing and outgoing hooks.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1735
diff
changeset
|
90 searching for changes |
50de0887bbcd
add preoutgoing and outgoing hooks.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1735
diff
changeset
|
91 abort: preoutgoing.forbid hook exited with status 1 |