author | Augie Fackler <augie@google.com> |
Sat, 05 Oct 2019 09:55:56 -0400 | |
changeset 43049 | 6e8582ccf76d |
parent 42897 | d7304434390f |
child 44782 | 3d5fb6cab832 |
permissions | -rw-r--r-- |
38021
538e850ae737
tests: mark tests that fail when using chg as #require no-chg
Kyle Lippincott <spectral@google.com>
parents:
37592
diff
changeset
|
1 |
#require no-chg |
538e850ae737
tests: mark tests that fail when using chg as #require no-chg
Kyle Lippincott <spectral@google.com>
parents:
37592
diff
changeset
|
2 |
|
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
3 |
$ hg init repo |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
4 |
$ cd repo |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
5 |
$ echo foo > foo |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
6 |
$ hg ci -qAm 'add foo' |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
7 |
$ echo >> foo |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
8 |
$ hg ci -m 'change foo' |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
9 |
$ hg up -qC 0 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
10 |
$ echo bar > bar |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
11 |
$ hg ci -qAm 'add bar' |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
12 |
|
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
13 |
$ hg log |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
14 |
changeset: 2:effea6de0384 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
15 |
tag: tip |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
16 |
parent: 0:bbd179dfa0a7 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
17 |
user: test |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
18 |
date: Thu Jan 01 00:00:00 1970 +0000 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
19 |
summary: add bar |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
20 |
|
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
21 |
changeset: 1:ed1b79f46b9a |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
22 |
user: test |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
23 |
date: Thu Jan 01 00:00:00 1970 +0000 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
24 |
summary: change foo |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
25 |
|
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
26 |
changeset: 0:bbd179dfa0a7 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
27 |
user: test |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
28 |
date: Thu Jan 01 00:00:00 1970 +0000 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
29 |
summary: add foo |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
30 |
|
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
31 |
$ cd .. |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
32 |
|
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
33 |
Test pullbundle functionality |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
34 |
|
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
35 |
$ cd repo |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
36 |
$ cat <<EOF > .hg/hgrc |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
37 |
> [server] |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
38 |
> pullbundle = True |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
39 |
> [extensions] |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
40 |
> blackbox = |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
41 |
> EOF |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
42 |
$ hg bundle --base null -r 0 .hg/0.hg |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
43 |
1 changesets found |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
44 |
$ hg bundle --base 0 -r 1 .hg/1.hg |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
45 |
1 changesets found |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
46 |
$ hg bundle --base 1 -r 2 .hg/2.hg |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
47 |
1 changesets found |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
48 |
$ cat <<EOF > .hg/pullbundles.manifest |
38678
7e4a856a4f05
pullbundle: fix handling of gzip bundlespecs
Joerg Sonnenberger <joerg@bec.de>
parents:
38021
diff
changeset
|
49 |
> 2.hg BUNDLESPEC=none-v2 heads=effea6de0384e684f44435651cb7bd70b8735bd4 bases=bbd179dfa0a71671c253b3ae0aa1513b60d199fa |
7e4a856a4f05
pullbundle: fix handling of gzip bundlespecs
Joerg Sonnenberger <joerg@bec.de>
parents:
38021
diff
changeset
|
50 |
> 1.hg BUNDLESPEC=bzip2-v2 heads=ed1b79f46b9a29f5a6efa59cf12fcfca43bead5a bases=bbd179dfa0a71671c253b3ae0aa1513b60d199fa |
7e4a856a4f05
pullbundle: fix handling of gzip bundlespecs
Joerg Sonnenberger <joerg@bec.de>
parents:
38021
diff
changeset
|
51 |
> 0.hg BUNDLESPEC=gzip-v2 heads=bbd179dfa0a71671c253b3ae0aa1513b60d199fa |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
52 |
> EOF |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
53 |
$ hg --config blackbox.track=debug --debug serve -p $HGPORT2 -d --pid-file=../repo.pid |
37592
fb91757471b5
tests: glob away fqdn wherever we print it
Augie Fackler <augie@google.com>
parents:
37516
diff
changeset
|
54 |
listening at http://*:$HGPORT2/ (bound to $LOCALIP:$HGPORT2) (glob) (?) |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
55 |
$ cat ../repo.pid >> $DAEMON_PIDS |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
56 |
$ cd .. |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
57 |
$ hg clone -r 0 http://localhost:$HGPORT2/ repo.pullbundle |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
58 |
adding changesets |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
59 |
adding manifests |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
60 |
adding file changes |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
61 |
added 1 changesets with 1 changes to 1 files |
39480
89630d0b3e23
phase: report number of non-public changeset alongside the new range
Boris Feld <boris.feld@octobus.net>
parents:
38678
diff
changeset
|
62 |
new changesets bbd179dfa0a7 (1 drafts) |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
63 |
updating to branch default |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
64 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
65 |
$ cd repo.pullbundle |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
66 |
$ hg pull -r 1 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
67 |
pulling from http://localhost:$HGPORT2/ |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
68 |
searching for changes |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
69 |
adding changesets |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
70 |
adding manifests |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
71 |
adding file changes |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
72 |
added 1 changesets with 1 changes to 1 files |
39480
89630d0b3e23
phase: report number of non-public changeset alongside the new range
Boris Feld <boris.feld@octobus.net>
parents:
38678
diff
changeset
|
73 |
new changesets ed1b79f46b9a (1 drafts) |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
74 |
(run 'hg update' to get a working copy) |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
75 |
$ hg pull -r 2 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
76 |
pulling from http://localhost:$HGPORT2/ |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
77 |
searching for changes |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
78 |
adding changesets |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
79 |
adding manifests |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
80 |
adding file changes |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
81 |
added 1 changesets with 1 changes to 1 files (+1 heads) |
39480
89630d0b3e23
phase: report number of non-public changeset alongside the new range
Boris Feld <boris.feld@octobus.net>
parents:
38678
diff
changeset
|
82 |
new changesets effea6de0384 (1 drafts) |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
83 |
(run 'hg heads' to see heads, 'hg merge' to merge) |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
84 |
$ cd .. |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
85 |
$ killdaemons.py |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
86 |
$ grep 'sending pullbundle ' repo/.hg/blackbox.log |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
87 |
* sending pullbundle "0.hg" (glob) |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
88 |
* sending pullbundle "1.hg" (glob) |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
89 |
* sending pullbundle "2.hg" (glob) |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
90 |
$ rm repo/.hg/blackbox.log |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
91 |
|
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
92 |
Test pullbundle functionality for incremental pulls |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
93 |
|
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
94 |
$ cd repo |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
95 |
$ hg --config blackbox.track=debug --debug serve -p $HGPORT2 -d --pid-file=../repo.pid |
37592
fb91757471b5
tests: glob away fqdn wherever we print it
Augie Fackler <augie@google.com>
parents:
37516
diff
changeset
|
96 |
listening at http://*:$HGPORT2/ (bound to $LOCALIP:$HGPORT2) (glob) (?) |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
97 |
$ cat ../repo.pid >> $DAEMON_PIDS |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
98 |
$ cd .. |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
99 |
$ hg clone http://localhost:$HGPORT2/ repo.pullbundle2 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
100 |
requesting all changes |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
101 |
adding changesets |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
102 |
adding manifests |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
103 |
adding file changes |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
104 |
adding changesets |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
105 |
adding manifests |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
106 |
adding file changes |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
107 |
adding changesets |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
108 |
adding manifests |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
109 |
adding file changes |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42143
diff
changeset
|
110 |
added 3 changesets with 3 changes to 3 files (+1 heads) |
39480
89630d0b3e23
phase: report number of non-public changeset alongside the new range
Boris Feld <boris.feld@octobus.net>
parents:
38678
diff
changeset
|
111 |
new changesets bbd179dfa0a7:ed1b79f46b9a (3 drafts) |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
112 |
updating to branch default |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
113 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
114 |
$ killdaemons.py |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
115 |
$ grep 'sending pullbundle ' repo/.hg/blackbox.log |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
116 |
* sending pullbundle "0.hg" (glob) |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
117 |
* sending pullbundle "2.hg" (glob) |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
118 |
* sending pullbundle "1.hg" (glob) |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
119 |
$ rm repo/.hg/blackbox.log |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
120 |
|
42143
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
121 |
Test pullbundle functionality for incoming |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
122 |
|
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
123 |
$ cd repo |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
124 |
$ hg --config blackbox.track=debug --debug serve -p $HGPORT2 -d --pid-file=../repo.pid |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
125 |
listening at http://*:$HGPORT2/ (bound to $LOCALIP:$HGPORT2) (glob) (?) |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
126 |
$ cat ../repo.pid >> $DAEMON_PIDS |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
127 |
$ cd .. |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
128 |
$ hg clone http://localhost:$HGPORT2/ repo.pullbundle2a -r 0 |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
129 |
adding changesets |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
130 |
adding manifests |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
131 |
adding file changes |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
132 |
added 1 changesets with 1 changes to 1 files |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
133 |
new changesets bbd179dfa0a7 (1 drafts) |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
134 |
updating to branch default |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
135 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
136 |
$ cd repo.pullbundle2a |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
137 |
$ hg incoming -r ed1b79f46b9a |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
138 |
comparing with http://localhost:$HGPORT2/ |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
139 |
searching for changes |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
140 |
changeset: 1:ed1b79f46b9a |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
141 |
tag: tip |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
142 |
user: test |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
143 |
date: Thu Jan 01 00:00:00 1970 +0000 |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
144 |
summary: change foo |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
145 |
|
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
146 |
$ cd .. |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
147 |
$ killdaemons.py |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
148 |
$ grep 'sending pullbundle ' repo/.hg/blackbox.log |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
149 |
* sending pullbundle "0.hg" (glob) |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
150 |
* sending pullbundle "1.hg" (glob) |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
151 |
$ rm repo/.hg/blackbox.log |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
152 |
|
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
153 |
Test recovery from misconfigured server sending no new data |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
154 |
|
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
155 |
$ cd repo |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
156 |
$ cat <<EOF > .hg/pullbundles.manifest |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
157 |
> 0.hg heads=ed1b79f46b9a29f5a6efa59cf12fcfca43bead5a bases=bbd179dfa0a71671c253b3ae0aa1513b60d199fa |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
158 |
> 0.hg heads=bbd179dfa0a71671c253b3ae0aa1513b60d199fa |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
159 |
> EOF |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
160 |
$ hg --config blackbox.track=debug --debug serve -p $HGPORT2 -d --pid-file=../repo.pid |
37592
fb91757471b5
tests: glob away fqdn wherever we print it
Augie Fackler <augie@google.com>
parents:
37516
diff
changeset
|
161 |
listening at http://*:$HGPORT2/ (bound to $LOCALIP:$HGPORT2) (glob) (?) |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
162 |
$ cat ../repo.pid >> $DAEMON_PIDS |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
163 |
$ cd .. |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
164 |
$ hg clone -r 0 http://localhost:$HGPORT2/ repo.pullbundle3 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
165 |
adding changesets |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
166 |
adding manifests |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
167 |
adding file changes |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
168 |
added 1 changesets with 1 changes to 1 files |
39480
89630d0b3e23
phase: report number of non-public changeset alongside the new range
Boris Feld <boris.feld@octobus.net>
parents:
38678
diff
changeset
|
169 |
new changesets bbd179dfa0a7 (1 drafts) |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
170 |
updating to branch default |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
171 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
172 |
$ cd repo.pullbundle3 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
173 |
$ hg pull -r 1 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
174 |
pulling from http://localhost:$HGPORT2/ |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
175 |
searching for changes |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
176 |
adding changesets |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
177 |
adding manifests |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
178 |
adding file changes |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
179 |
added 0 changesets with 0 changes to 1 files |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
180 |
abort: 00changelog.i@ed1b79f46b9a: no node! |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
181 |
[255] |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
182 |
$ cd .. |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
183 |
$ killdaemons.py |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
184 |
$ grep 'sending pullbundle ' repo/.hg/blackbox.log |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
185 |
* sending pullbundle "0.hg" (glob) |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
186 |
* sending pullbundle "0.hg" (glob) |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
187 |
$ rm repo/.hg/blackbox.log |