##// END OF EJS Templates
tests: allow [Errno] in output...
Gregory Szorc -
r35871:2f7ab4fb default
parent child Browse files
Show More
@@ -1,546 +1,546 b''
1 Set up a server
1 Set up a server
2
2
3 $ cat >> $HGRCPATH << EOF
3 $ cat >> $HGRCPATH << EOF
4 > [format]
4 > [format]
5 > usegeneraldelta=yes
5 > usegeneraldelta=yes
6 > EOF
6 > EOF
7 $ hg init server
7 $ hg init server
8 $ cd server
8 $ cd server
9 $ cat >> .hg/hgrc << EOF
9 $ cat >> .hg/hgrc << EOF
10 > [extensions]
10 > [extensions]
11 > clonebundles =
11 > clonebundles =
12 > EOF
12 > EOF
13
13
14 $ touch foo
14 $ touch foo
15 $ hg -q commit -A -m 'add foo'
15 $ hg -q commit -A -m 'add foo'
16 $ touch bar
16 $ touch bar
17 $ hg -q commit -A -m 'add bar'
17 $ hg -q commit -A -m 'add bar'
18
18
19 $ hg serve -d -p $HGPORT --pid-file hg.pid --accesslog access.log
19 $ hg serve -d -p $HGPORT --pid-file hg.pid --accesslog access.log
20 $ cat hg.pid >> $DAEMON_PIDS
20 $ cat hg.pid >> $DAEMON_PIDS
21 $ cd ..
21 $ cd ..
22
22
23 Missing manifest should not result in server lookup
23 Missing manifest should not result in server lookup
24
24
25 $ hg --verbose clone -U http://localhost:$HGPORT no-manifest
25 $ hg --verbose clone -U http://localhost:$HGPORT no-manifest
26 requesting all changes
26 requesting all changes
27 adding changesets
27 adding changesets
28 adding manifests
28 adding manifests
29 adding file changes
29 adding file changes
30 added 2 changesets with 2 changes to 2 files
30 added 2 changesets with 2 changes to 2 files
31 new changesets 53245c60e682:aaff8d2ffbbf
31 new changesets 53245c60e682:aaff8d2ffbbf
32
32
33 $ cat server/access.log
33 $ cat server/access.log
34 * - - [*] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob)
34 * - - [*] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob)
35 $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ (glob)
35 $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ (glob)
36 $LOCALIP - - [$LOGDATE$] "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&$USUAL_BUNDLE_CAPS$&cg=1&common=0000000000000000000000000000000000000000&heads=aaff8d2ffbbf07a46dd1f05d8ae7877e3f56e2a2&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ (glob)
36 $LOCALIP - - [$LOGDATE$] "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&$USUAL_BUNDLE_CAPS$&cg=1&common=0000000000000000000000000000000000000000&heads=aaff8d2ffbbf07a46dd1f05d8ae7877e3f56e2a2&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ (glob)
37
37
38 Empty manifest file results in retrieval
38 Empty manifest file results in retrieval
39 (the extension only checks if the manifest file exists)
39 (the extension only checks if the manifest file exists)
40
40
41 $ touch server/.hg/clonebundles.manifest
41 $ touch server/.hg/clonebundles.manifest
42 $ hg --verbose clone -U http://localhost:$HGPORT empty-manifest
42 $ hg --verbose clone -U http://localhost:$HGPORT empty-manifest
43 no clone bundles available on remote; falling back to regular clone
43 no clone bundles available on remote; falling back to regular clone
44 requesting all changes
44 requesting all changes
45 adding changesets
45 adding changesets
46 adding manifests
46 adding manifests
47 adding file changes
47 adding file changes
48 added 2 changesets with 2 changes to 2 files
48 added 2 changesets with 2 changes to 2 files
49 new changesets 53245c60e682:aaff8d2ffbbf
49 new changesets 53245c60e682:aaff8d2ffbbf
50
50
51 Manifest file with invalid URL aborts
51 Manifest file with invalid URL aborts
52
52
53 $ echo 'http://does.not.exist/bundle.hg' > server/.hg/clonebundles.manifest
53 $ echo 'http://does.not.exist/bundle.hg' > server/.hg/clonebundles.manifest
54 $ hg clone http://localhost:$HGPORT 404-url
54 $ hg clone http://localhost:$HGPORT 404-url
55 applying clone bundle from http://does.not.exist/bundle.hg
55 applying clone bundle from http://does.not.exist/bundle.hg
56 error fetching bundle: (.* not known|No address associated with hostname) (re) (no-windows !)
56 error fetching bundle: (.* not known|(\[Errno -?\d+])? No address associated with hostname) (re) (no-windows !)
57 error fetching bundle: [Errno 11004] getaddrinfo failed (windows !)
57 error fetching bundle: [Errno 11004] getaddrinfo failed (windows !)
58 abort: error applying bundle
58 abort: error applying bundle
59 (if this error persists, consider contacting the server operator or disable clone bundles via "--config ui.clonebundles=false")
59 (if this error persists, consider contacting the server operator or disable clone bundles via "--config ui.clonebundles=false")
60 [255]
60 [255]
61
61
62 Server is not running aborts
62 Server is not running aborts
63
63
64 $ echo "http://localhost:$HGPORT1/bundle.hg" > server/.hg/clonebundles.manifest
64 $ echo "http://localhost:$HGPORT1/bundle.hg" > server/.hg/clonebundles.manifest
65 $ hg clone http://localhost:$HGPORT server-not-runner
65 $ hg clone http://localhost:$HGPORT server-not-runner
66 applying clone bundle from http://localhost:$HGPORT1/bundle.hg
66 applying clone bundle from http://localhost:$HGPORT1/bundle.hg
67 error fetching bundle: (.* refused.*|Protocol not supported|(.* )?Cannot assign requested address) (re)
67 error fetching bundle: (.* refused.*|Protocol not supported|(.* )?Cannot assign requested address) (re)
68 abort: error applying bundle
68 abort: error applying bundle
69 (if this error persists, consider contacting the server operator or disable clone bundles via "--config ui.clonebundles=false")
69 (if this error persists, consider contacting the server operator or disable clone bundles via "--config ui.clonebundles=false")
70 [255]
70 [255]
71
71
72 Server returns 404
72 Server returns 404
73
73
74 $ "$PYTHON" $TESTDIR/dumbhttp.py -p $HGPORT1 --pid http.pid
74 $ "$PYTHON" $TESTDIR/dumbhttp.py -p $HGPORT1 --pid http.pid
75 $ cat http.pid >> $DAEMON_PIDS
75 $ cat http.pid >> $DAEMON_PIDS
76 $ hg clone http://localhost:$HGPORT running-404
76 $ hg clone http://localhost:$HGPORT running-404
77 applying clone bundle from http://localhost:$HGPORT1/bundle.hg
77 applying clone bundle from http://localhost:$HGPORT1/bundle.hg
78 HTTP error fetching bundle: HTTP Error 404: File not found
78 HTTP error fetching bundle: HTTP Error 404: File not found
79 abort: error applying bundle
79 abort: error applying bundle
80 (if this error persists, consider contacting the server operator or disable clone bundles via "--config ui.clonebundles=false")
80 (if this error persists, consider contacting the server operator or disable clone bundles via "--config ui.clonebundles=false")
81 [255]
81 [255]
82
82
83 We can override failure to fall back to regular clone
83 We can override failure to fall back to regular clone
84
84
85 $ hg --config ui.clonebundlefallback=true clone -U http://localhost:$HGPORT 404-fallback
85 $ hg --config ui.clonebundlefallback=true clone -U http://localhost:$HGPORT 404-fallback
86 applying clone bundle from http://localhost:$HGPORT1/bundle.hg
86 applying clone bundle from http://localhost:$HGPORT1/bundle.hg
87 HTTP error fetching bundle: HTTP Error 404: File not found
87 HTTP error fetching bundle: HTTP Error 404: File not found
88 falling back to normal clone
88 falling back to normal clone
89 requesting all changes
89 requesting all changes
90 adding changesets
90 adding changesets
91 adding manifests
91 adding manifests
92 adding file changes
92 adding file changes
93 added 2 changesets with 2 changes to 2 files
93 added 2 changesets with 2 changes to 2 files
94 new changesets 53245c60e682:aaff8d2ffbbf
94 new changesets 53245c60e682:aaff8d2ffbbf
95
95
96 Bundle with partial content works
96 Bundle with partial content works
97
97
98 $ hg -R server bundle --type gzip-v1 --base null -r 53245c60e682 partial.hg
98 $ hg -R server bundle --type gzip-v1 --base null -r 53245c60e682 partial.hg
99 1 changesets found
99 1 changesets found
100
100
101 We verify exact bundle content as an extra check against accidental future
101 We verify exact bundle content as an extra check against accidental future
102 changes. If this output changes, we could break old clients.
102 changes. If this output changes, we could break old clients.
103
103
104 $ f --size --hexdump partial.hg
104 $ f --size --hexdump partial.hg
105 partial.hg: size=207
105 partial.hg: size=207
106 0000: 48 47 31 30 47 5a 78 9c 63 60 60 98 17 ac 12 93 |HG10GZx.c``.....|
106 0000: 48 47 31 30 47 5a 78 9c 63 60 60 98 17 ac 12 93 |HG10GZx.c``.....|
107 0010: f0 ac a9 23 45 70 cb bf 0d 5f 59 4e 4a 7f 79 21 |...#Ep..._YNJ.y!|
107 0010: f0 ac a9 23 45 70 cb bf 0d 5f 59 4e 4a 7f 79 21 |...#Ep..._YNJ.y!|
108 0020: 9b cc 40 24 20 a0 d7 ce 2c d1 38 25 cd 24 25 d5 |..@$ ...,.8%.$%.|
108 0020: 9b cc 40 24 20 a0 d7 ce 2c d1 38 25 cd 24 25 d5 |..@$ ...,.8%.$%.|
109 0030: d8 c2 22 cd 38 d9 24 cd 22 d5 c8 22 cd 24 cd 32 |..".8.$."..".$.2|
109 0030: d8 c2 22 cd 38 d9 24 cd 22 d5 c8 22 cd 24 cd 32 |..".8.$."..".$.2|
110 0040: d1 c2 d0 c4 c8 d2 32 d1 38 39 29 c9 34 cd d4 80 |......2.89).4...|
110 0040: d1 c2 d0 c4 c8 d2 32 d1 38 39 29 c9 34 cd d4 80 |......2.89).4...|
111 0050: ab 24 b5 b8 84 cb 40 c1 80 2b 2d 3f 9f 8b 2b 31 |.$....@..+-?..+1|
111 0050: ab 24 b5 b8 84 cb 40 c1 80 2b 2d 3f 9f 8b 2b 31 |.$....@..+-?..+1|
112 0060: 25 45 01 c8 80 9a d2 9b 65 fb e5 9e 45 bf 8d 7f |%E......e...E...|
112 0060: 25 45 01 c8 80 9a d2 9b 65 fb e5 9e 45 bf 8d 7f |%E......e...E...|
113 0070: 9f c6 97 9f 2b 44 34 67 d9 ec 8e 0f a0 92 0b 75 |....+D4g.......u|
113 0070: 9f c6 97 9f 2b 44 34 67 d9 ec 8e 0f a0 92 0b 75 |....+D4g.......u|
114 0080: 41 d6 24 59 18 a4 a4 9a a6 18 1a 5b 98 9b 5a 98 |A.$Y.......[..Z.|
114 0080: 41 d6 24 59 18 a4 a4 9a a6 18 1a 5b 98 9b 5a 98 |A.$Y.......[..Z.|
115 0090: 9a 18 26 9b a6 19 98 1a 99 99 26 a6 18 9a 98 24 |..&.......&....$|
115 0090: 9a 18 26 9b a6 19 98 1a 99 99 26 a6 18 9a 98 24 |..&.......&....$|
116 00a0: 26 59 a6 25 5a 98 a5 18 a6 24 71 41 35 b1 43 dc |&Y.%Z....$qA5.C.|
116 00a0: 26 59 a6 25 5a 98 a5 18 a6 24 71 41 35 b1 43 dc |&Y.%Z....$qA5.C.|
117 00b0: 16 b2 83 f7 e9 45 8b d2 56 c7 a3 1f 82 52 d7 8a |.....E..V....R..|
117 00b0: 16 b2 83 f7 e9 45 8b d2 56 c7 a3 1f 82 52 d7 8a |.....E..V....R..|
118 00c0: 78 ed fc d5 76 f1 36 35 dc 05 00 36 ed 5e c7 |x...v.65...6.^.|
118 00c0: 78 ed fc d5 76 f1 36 35 dc 05 00 36 ed 5e c7 |x...v.65...6.^.|
119
119
120 $ echo "http://localhost:$HGPORT1/partial.hg" > server/.hg/clonebundles.manifest
120 $ echo "http://localhost:$HGPORT1/partial.hg" > server/.hg/clonebundles.manifest
121 $ hg clone -U http://localhost:$HGPORT partial-bundle
121 $ hg clone -U http://localhost:$HGPORT partial-bundle
122 applying clone bundle from http://localhost:$HGPORT1/partial.hg
122 applying clone bundle from http://localhost:$HGPORT1/partial.hg
123 adding changesets
123 adding changesets
124 adding manifests
124 adding manifests
125 adding file changes
125 adding file changes
126 added 1 changesets with 1 changes to 1 files
126 added 1 changesets with 1 changes to 1 files
127 finished applying clone bundle
127 finished applying clone bundle
128 searching for changes
128 searching for changes
129 adding changesets
129 adding changesets
130 adding manifests
130 adding manifests
131 adding file changes
131 adding file changes
132 added 1 changesets with 1 changes to 1 files
132 added 1 changesets with 1 changes to 1 files
133 new changesets aaff8d2ffbbf
133 new changesets aaff8d2ffbbf
134
134
135 Incremental pull doesn't fetch bundle
135 Incremental pull doesn't fetch bundle
136
136
137 $ hg clone -r 53245c60e682 -U http://localhost:$HGPORT partial-clone
137 $ hg clone -r 53245c60e682 -U http://localhost:$HGPORT partial-clone
138 adding changesets
138 adding changesets
139 adding manifests
139 adding manifests
140 adding file changes
140 adding file changes
141 added 1 changesets with 1 changes to 1 files
141 added 1 changesets with 1 changes to 1 files
142 new changesets 53245c60e682
142 new changesets 53245c60e682
143
143
144 $ cd partial-clone
144 $ cd partial-clone
145 $ hg pull
145 $ hg pull
146 pulling from http://localhost:$HGPORT/
146 pulling from http://localhost:$HGPORT/
147 searching for changes
147 searching for changes
148 adding changesets
148 adding changesets
149 adding manifests
149 adding manifests
150 adding file changes
150 adding file changes
151 added 1 changesets with 1 changes to 1 files
151 added 1 changesets with 1 changes to 1 files
152 new changesets aaff8d2ffbbf
152 new changesets aaff8d2ffbbf
153 (run 'hg update' to get a working copy)
153 (run 'hg update' to get a working copy)
154 $ cd ..
154 $ cd ..
155
155
156 Bundle with full content works
156 Bundle with full content works
157
157
158 $ hg -R server bundle --type gzip-v2 --base null -r tip full.hg
158 $ hg -R server bundle --type gzip-v2 --base null -r tip full.hg
159 2 changesets found
159 2 changesets found
160
160
161 Again, we perform an extra check against bundle content changes. If this content
161 Again, we perform an extra check against bundle content changes. If this content
162 changes, clone bundles produced by new Mercurial versions may not be readable
162 changes, clone bundles produced by new Mercurial versions may not be readable
163 by old clients.
163 by old clients.
164
164
165 $ f --size --hexdump full.hg
165 $ f --size --hexdump full.hg
166 full.hg: size=396
166 full.hg: size=396
167 0000: 48 47 32 30 00 00 00 0e 43 6f 6d 70 72 65 73 73 |HG20....Compress|
167 0000: 48 47 32 30 00 00 00 0e 43 6f 6d 70 72 65 73 73 |HG20....Compress|
168 0010: 69 6f 6e 3d 47 5a 78 9c 63 60 60 d0 e4 76 f6 70 |ion=GZx.c``..v.p|
168 0010: 69 6f 6e 3d 47 5a 78 9c 63 60 60 d0 e4 76 f6 70 |ion=GZx.c``..v.p|
169 0020: f4 73 77 75 0f f2 0f 0d 60 00 02 46 46 76 26 4e |.swu....`..FFv&N|
169 0020: f4 73 77 75 0f f2 0f 0d 60 00 02 46 46 76 26 4e |.swu....`..FFv&N|
170 0030: c6 b2 d4 a2 e2 cc fc 3c 03 a3 bc a4 e4 8c c4 bc |.......<........|
170 0030: c6 b2 d4 a2 e2 cc fc 3c 03 a3 bc a4 e4 8c c4 bc |.......<........|
171 0040: f4 d4 62 23 06 06 e6 19 40 f9 4d c1 2a 31 09 cf |..b#....@.M.*1..|
171 0040: f4 d4 62 23 06 06 e6 19 40 f9 4d c1 2a 31 09 cf |..b#....@.M.*1..|
172 0050: 9a 3a 52 04 b7 fc db f0 95 e5 a4 f4 97 17 b2 c9 |.:R.............|
172 0050: 9a 3a 52 04 b7 fc db f0 95 e5 a4 f4 97 17 b2 c9 |.:R.............|
173 0060: 0c 14 00 02 e6 d9 99 25 1a a7 a4 99 a4 a4 1a 5b |.......%.......[|
173 0060: 0c 14 00 02 e6 d9 99 25 1a a7 a4 99 a4 a4 1a 5b |.......%.......[|
174 0070: 58 a4 19 27 9b a4 59 a4 1a 59 a4 99 a4 59 26 5a |X..'..Y..Y...Y&Z|
174 0070: 58 a4 19 27 9b a4 59 a4 1a 59 a4 99 a4 59 26 5a |X..'..Y..Y...Y&Z|
175 0080: 18 9a 18 59 5a 26 1a 27 27 25 99 a6 99 1a 70 95 |...YZ&.''%....p.|
175 0080: 18 9a 18 59 5a 26 1a 27 27 25 99 a6 99 1a 70 95 |...YZ&.''%....p.|
176 0090: a4 16 97 70 19 28 18 70 a5 e5 e7 73 71 25 a6 a4 |...p.(.p...sq%..|
176 0090: a4 16 97 70 19 28 18 70 a5 e5 e7 73 71 25 a6 a4 |...p.(.p...sq%..|
177 00a0: 28 00 19 20 17 af fa df ab ff 7b 3f fb 92 dc 8b |(.. ......{?....|
177 00a0: 28 00 19 20 17 af fa df ab ff 7b 3f fb 92 dc 8b |(.. ......{?....|
178 00b0: 1f 62 bb 9e b7 d7 d9 87 3d 5a 44 89 2f b0 99 87 |.b......=ZD./...|
178 00b0: 1f 62 bb 9e b7 d7 d9 87 3d 5a 44 89 2f b0 99 87 |.b......=ZD./...|
179 00c0: ec e2 54 63 43 e3 b4 64 43 73 23 33 43 53 0b 63 |..TcC..dCs#3CS.c|
179 00c0: ec e2 54 63 43 e3 b4 64 43 73 23 33 43 53 0b 63 |..TcC..dCs#3CS.c|
180 00d0: d3 14 23 03 a0 fb 2c 2c 0c d3 80 1e 30 49 49 b1 |..#...,,....0II.|
180 00d0: d3 14 23 03 a0 fb 2c 2c 0c d3 80 1e 30 49 49 b1 |..#...,,....0II.|
181 00e0: 4c 4a 32 48 33 30 b0 34 42 b8 38 29 b1 08 e2 62 |LJ2H30.4B.8)...b|
181 00e0: 4c 4a 32 48 33 30 b0 34 42 b8 38 29 b1 08 e2 62 |LJ2H30.4B.8)...b|
182 00f0: 20 03 6a ca c2 2c db 2f f7 2c fa 6d fc fb 34 be | .j..,./.,.m..4.|
182 00f0: 20 03 6a ca c2 2c db 2f f7 2c fa 6d fc fb 34 be | .j..,./.,.m..4.|
183 0100: fc 5c 21 a2 39 cb 66 77 7c 00 0d c3 59 17 14 58 |.\!.9.fw|...Y..X|
183 0100: fc 5c 21 a2 39 cb 66 77 7c 00 0d c3 59 17 14 58 |.\!.9.fw|...Y..X|
184 0110: 49 16 06 29 a9 a6 29 86 c6 16 e6 a6 16 a6 26 86 |I..)..).......&.|
184 0110: 49 16 06 29 a9 a6 29 86 c6 16 e6 a6 16 a6 26 86 |I..)..).......&.|
185 0120: c9 a6 69 06 a6 46 66 a6 89 29 86 26 26 89 49 96 |..i..Ff..).&&.I.|
185 0120: c9 a6 69 06 a6 46 66 a6 89 29 86 26 26 89 49 96 |..i..Ff..).&&.I.|
186 0130: 69 89 16 66 29 86 29 49 5c 20 07 3e 16 fe 23 ae |i..f).)I\ .>..#.|
186 0130: 69 89 16 66 29 86 29 49 5c 20 07 3e 16 fe 23 ae |i..f).)I\ .>..#.|
187 0140: 26 da 1c ab 10 1f d1 f8 e3 b3 ef cd dd fc 0c 93 |&...............|
187 0140: 26 da 1c ab 10 1f d1 f8 e3 b3 ef cd dd fc 0c 93 |&...............|
188 0150: 88 75 34 36 75 04 82 55 17 14 36 a4 38 10 04 d8 |.u46u..U..6.8...|
188 0150: 88 75 34 36 75 04 82 55 17 14 36 a4 38 10 04 d8 |.u46u..U..6.8...|
189 0160: 21 01 9a b1 83 f7 e9 45 8b d2 56 c7 a3 1f 82 52 |!......E..V....R|
189 0160: 21 01 9a b1 83 f7 e9 45 8b d2 56 c7 a3 1f 82 52 |!......E..V....R|
190 0170: d7 8a 78 ed fc d5 76 f1 36 25 81 89 c7 ad ec 90 |..x...v.6%......|
190 0170: d7 8a 78 ed fc d5 76 f1 36 25 81 89 c7 ad ec 90 |..x...v.6%......|
191 0180: 54 47 75 2b 89 49 b1 00 d2 8a eb 92 |TGu+.I......|
191 0180: 54 47 75 2b 89 49 b1 00 d2 8a eb 92 |TGu+.I......|
192
192
193 $ echo "http://localhost:$HGPORT1/full.hg" > server/.hg/clonebundles.manifest
193 $ echo "http://localhost:$HGPORT1/full.hg" > server/.hg/clonebundles.manifest
194 $ hg clone -U http://localhost:$HGPORT full-bundle
194 $ hg clone -U http://localhost:$HGPORT full-bundle
195 applying clone bundle from http://localhost:$HGPORT1/full.hg
195 applying clone bundle from http://localhost:$HGPORT1/full.hg
196 adding changesets
196 adding changesets
197 adding manifests
197 adding manifests
198 adding file changes
198 adding file changes
199 added 2 changesets with 2 changes to 2 files
199 added 2 changesets with 2 changes to 2 files
200 finished applying clone bundle
200 finished applying clone bundle
201 searching for changes
201 searching for changes
202 no changes found
202 no changes found
203
203
204 Feature works over SSH
204 Feature works over SSH
205
205
206 $ hg clone -U -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/server ssh-full-clone
206 $ hg clone -U -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/server ssh-full-clone
207 applying clone bundle from http://localhost:$HGPORT1/full.hg
207 applying clone bundle from http://localhost:$HGPORT1/full.hg
208 adding changesets
208 adding changesets
209 adding manifests
209 adding manifests
210 adding file changes
210 adding file changes
211 added 2 changesets with 2 changes to 2 files
211 added 2 changesets with 2 changes to 2 files
212 finished applying clone bundle
212 finished applying clone bundle
213 searching for changes
213 searching for changes
214 no changes found
214 no changes found
215
215
216 Entry with unknown BUNDLESPEC is filtered and not used
216 Entry with unknown BUNDLESPEC is filtered and not used
217
217
218 $ cat > server/.hg/clonebundles.manifest << EOF
218 $ cat > server/.hg/clonebundles.manifest << EOF
219 > http://bad.entry1 BUNDLESPEC=UNKNOWN
219 > http://bad.entry1 BUNDLESPEC=UNKNOWN
220 > http://bad.entry2 BUNDLESPEC=xz-v1
220 > http://bad.entry2 BUNDLESPEC=xz-v1
221 > http://bad.entry3 BUNDLESPEC=none-v100
221 > http://bad.entry3 BUNDLESPEC=none-v100
222 > http://localhost:$HGPORT1/full.hg BUNDLESPEC=gzip-v2
222 > http://localhost:$HGPORT1/full.hg BUNDLESPEC=gzip-v2
223 > EOF
223 > EOF
224
224
225 $ hg clone -U http://localhost:$HGPORT filter-unknown-type
225 $ hg clone -U http://localhost:$HGPORT filter-unknown-type
226 applying clone bundle from http://localhost:$HGPORT1/full.hg
226 applying clone bundle from http://localhost:$HGPORT1/full.hg
227 adding changesets
227 adding changesets
228 adding manifests
228 adding manifests
229 adding file changes
229 adding file changes
230 added 2 changesets with 2 changes to 2 files
230 added 2 changesets with 2 changes to 2 files
231 finished applying clone bundle
231 finished applying clone bundle
232 searching for changes
232 searching for changes
233 no changes found
233 no changes found
234
234
235 Automatic fallback when all entries are filtered
235 Automatic fallback when all entries are filtered
236
236
237 $ cat > server/.hg/clonebundles.manifest << EOF
237 $ cat > server/.hg/clonebundles.manifest << EOF
238 > http://bad.entry BUNDLESPEC=UNKNOWN
238 > http://bad.entry BUNDLESPEC=UNKNOWN
239 > EOF
239 > EOF
240
240
241 $ hg clone -U http://localhost:$HGPORT filter-all
241 $ hg clone -U http://localhost:$HGPORT filter-all
242 no compatible clone bundles available on server; falling back to regular clone
242 no compatible clone bundles available on server; falling back to regular clone
243 (you may want to report this to the server operator)
243 (you may want to report this to the server operator)
244 requesting all changes
244 requesting all changes
245 adding changesets
245 adding changesets
246 adding manifests
246 adding manifests
247 adding file changes
247 adding file changes
248 added 2 changesets with 2 changes to 2 files
248 added 2 changesets with 2 changes to 2 files
249 new changesets 53245c60e682:aaff8d2ffbbf
249 new changesets 53245c60e682:aaff8d2ffbbf
250
250
251 URLs requiring SNI are filtered in Python <2.7.9
251 URLs requiring SNI are filtered in Python <2.7.9
252
252
253 $ cp full.hg sni.hg
253 $ cp full.hg sni.hg
254 $ cat > server/.hg/clonebundles.manifest << EOF
254 $ cat > server/.hg/clonebundles.manifest << EOF
255 > http://localhost:$HGPORT1/sni.hg REQUIRESNI=true
255 > http://localhost:$HGPORT1/sni.hg REQUIRESNI=true
256 > http://localhost:$HGPORT1/full.hg
256 > http://localhost:$HGPORT1/full.hg
257 > EOF
257 > EOF
258
258
259 #if sslcontext
259 #if sslcontext
260 Python 2.7.9+ support SNI
260 Python 2.7.9+ support SNI
261
261
262 $ hg clone -U http://localhost:$HGPORT sni-supported
262 $ hg clone -U http://localhost:$HGPORT sni-supported
263 applying clone bundle from http://localhost:$HGPORT1/sni.hg
263 applying clone bundle from http://localhost:$HGPORT1/sni.hg
264 adding changesets
264 adding changesets
265 adding manifests
265 adding manifests
266 adding file changes
266 adding file changes
267 added 2 changesets with 2 changes to 2 files
267 added 2 changesets with 2 changes to 2 files
268 finished applying clone bundle
268 finished applying clone bundle
269 searching for changes
269 searching for changes
270 no changes found
270 no changes found
271 #else
271 #else
272 Python <2.7.9 will filter SNI URLs
272 Python <2.7.9 will filter SNI URLs
273
273
274 $ hg clone -U http://localhost:$HGPORT sni-unsupported
274 $ hg clone -U http://localhost:$HGPORT sni-unsupported
275 applying clone bundle from http://localhost:$HGPORT1/full.hg
275 applying clone bundle from http://localhost:$HGPORT1/full.hg
276 adding changesets
276 adding changesets
277 adding manifests
277 adding manifests
278 adding file changes
278 adding file changes
279 added 2 changesets with 2 changes to 2 files
279 added 2 changesets with 2 changes to 2 files
280 finished applying clone bundle
280 finished applying clone bundle
281 searching for changes
281 searching for changes
282 no changes found
282 no changes found
283 #endif
283 #endif
284
284
285 Stream clone bundles are supported
285 Stream clone bundles are supported
286
286
287 $ hg -R server debugcreatestreamclonebundle packed.hg
287 $ hg -R server debugcreatestreamclonebundle packed.hg
288 writing 613 bytes for 4 files
288 writing 613 bytes for 4 files
289 bundle requirements: generaldelta, revlogv1
289 bundle requirements: generaldelta, revlogv1
290
290
291 No bundle spec should work
291 No bundle spec should work
292
292
293 $ cat > server/.hg/clonebundles.manifest << EOF
293 $ cat > server/.hg/clonebundles.manifest << EOF
294 > http://localhost:$HGPORT1/packed.hg
294 > http://localhost:$HGPORT1/packed.hg
295 > EOF
295 > EOF
296
296
297 $ hg clone -U http://localhost:$HGPORT stream-clone-no-spec
297 $ hg clone -U http://localhost:$HGPORT stream-clone-no-spec
298 applying clone bundle from http://localhost:$HGPORT1/packed.hg
298 applying clone bundle from http://localhost:$HGPORT1/packed.hg
299 4 files to transfer, 613 bytes of data
299 4 files to transfer, 613 bytes of data
300 transferred 613 bytes in *.* seconds (*) (glob)
300 transferred 613 bytes in *.* seconds (*) (glob)
301 finished applying clone bundle
301 finished applying clone bundle
302 searching for changes
302 searching for changes
303 no changes found
303 no changes found
304
304
305 Bundle spec without parameters should work
305 Bundle spec without parameters should work
306
306
307 $ cat > server/.hg/clonebundles.manifest << EOF
307 $ cat > server/.hg/clonebundles.manifest << EOF
308 > http://localhost:$HGPORT1/packed.hg BUNDLESPEC=none-packed1
308 > http://localhost:$HGPORT1/packed.hg BUNDLESPEC=none-packed1
309 > EOF
309 > EOF
310
310
311 $ hg clone -U http://localhost:$HGPORT stream-clone-vanilla-spec
311 $ hg clone -U http://localhost:$HGPORT stream-clone-vanilla-spec
312 applying clone bundle from http://localhost:$HGPORT1/packed.hg
312 applying clone bundle from http://localhost:$HGPORT1/packed.hg
313 4 files to transfer, 613 bytes of data
313 4 files to transfer, 613 bytes of data
314 transferred 613 bytes in *.* seconds (*) (glob)
314 transferred 613 bytes in *.* seconds (*) (glob)
315 finished applying clone bundle
315 finished applying clone bundle
316 searching for changes
316 searching for changes
317 no changes found
317 no changes found
318
318
319 Bundle spec with format requirements should work
319 Bundle spec with format requirements should work
320
320
321 $ cat > server/.hg/clonebundles.manifest << EOF
321 $ cat > server/.hg/clonebundles.manifest << EOF
322 > http://localhost:$HGPORT1/packed.hg BUNDLESPEC=none-packed1;requirements%3Drevlogv1
322 > http://localhost:$HGPORT1/packed.hg BUNDLESPEC=none-packed1;requirements%3Drevlogv1
323 > EOF
323 > EOF
324
324
325 $ hg clone -U http://localhost:$HGPORT stream-clone-supported-requirements
325 $ hg clone -U http://localhost:$HGPORT stream-clone-supported-requirements
326 applying clone bundle from http://localhost:$HGPORT1/packed.hg
326 applying clone bundle from http://localhost:$HGPORT1/packed.hg
327 4 files to transfer, 613 bytes of data
327 4 files to transfer, 613 bytes of data
328 transferred 613 bytes in *.* seconds (*) (glob)
328 transferred 613 bytes in *.* seconds (*) (glob)
329 finished applying clone bundle
329 finished applying clone bundle
330 searching for changes
330 searching for changes
331 no changes found
331 no changes found
332
332
333 Stream bundle spec with unknown requirements should be filtered out
333 Stream bundle spec with unknown requirements should be filtered out
334
334
335 $ cat > server/.hg/clonebundles.manifest << EOF
335 $ cat > server/.hg/clonebundles.manifest << EOF
336 > http://localhost:$HGPORT1/packed.hg BUNDLESPEC=none-packed1;requirements%3Drevlogv42
336 > http://localhost:$HGPORT1/packed.hg BUNDLESPEC=none-packed1;requirements%3Drevlogv42
337 > EOF
337 > EOF
338
338
339 $ hg clone -U http://localhost:$HGPORT stream-clone-unsupported-requirements
339 $ hg clone -U http://localhost:$HGPORT stream-clone-unsupported-requirements
340 no compatible clone bundles available on server; falling back to regular clone
340 no compatible clone bundles available on server; falling back to regular clone
341 (you may want to report this to the server operator)
341 (you may want to report this to the server operator)
342 requesting all changes
342 requesting all changes
343 adding changesets
343 adding changesets
344 adding manifests
344 adding manifests
345 adding file changes
345 adding file changes
346 added 2 changesets with 2 changes to 2 files
346 added 2 changesets with 2 changes to 2 files
347 new changesets 53245c60e682:aaff8d2ffbbf
347 new changesets 53245c60e682:aaff8d2ffbbf
348
348
349 Set up manifest for testing preferences
349 Set up manifest for testing preferences
350 (Remember, the TYPE does not have to match reality - the URL is
350 (Remember, the TYPE does not have to match reality - the URL is
351 important)
351 important)
352
352
353 $ cp full.hg gz-a.hg
353 $ cp full.hg gz-a.hg
354 $ cp full.hg gz-b.hg
354 $ cp full.hg gz-b.hg
355 $ cp full.hg bz2-a.hg
355 $ cp full.hg bz2-a.hg
356 $ cp full.hg bz2-b.hg
356 $ cp full.hg bz2-b.hg
357 $ cat > server/.hg/clonebundles.manifest << EOF
357 $ cat > server/.hg/clonebundles.manifest << EOF
358 > http://localhost:$HGPORT1/gz-a.hg BUNDLESPEC=gzip-v2 extra=a
358 > http://localhost:$HGPORT1/gz-a.hg BUNDLESPEC=gzip-v2 extra=a
359 > http://localhost:$HGPORT1/bz2-a.hg BUNDLESPEC=bzip2-v2 extra=a
359 > http://localhost:$HGPORT1/bz2-a.hg BUNDLESPEC=bzip2-v2 extra=a
360 > http://localhost:$HGPORT1/gz-b.hg BUNDLESPEC=gzip-v2 extra=b
360 > http://localhost:$HGPORT1/gz-b.hg BUNDLESPEC=gzip-v2 extra=b
361 > http://localhost:$HGPORT1/bz2-b.hg BUNDLESPEC=bzip2-v2 extra=b
361 > http://localhost:$HGPORT1/bz2-b.hg BUNDLESPEC=bzip2-v2 extra=b
362 > EOF
362 > EOF
363
363
364 Preferring an undefined attribute will take first entry
364 Preferring an undefined attribute will take first entry
365
365
366 $ hg --config ui.clonebundleprefers=foo=bar clone -U http://localhost:$HGPORT prefer-foo
366 $ hg --config ui.clonebundleprefers=foo=bar clone -U http://localhost:$HGPORT prefer-foo
367 applying clone bundle from http://localhost:$HGPORT1/gz-a.hg
367 applying clone bundle from http://localhost:$HGPORT1/gz-a.hg
368 adding changesets
368 adding changesets
369 adding manifests
369 adding manifests
370 adding file changes
370 adding file changes
371 added 2 changesets with 2 changes to 2 files
371 added 2 changesets with 2 changes to 2 files
372 finished applying clone bundle
372 finished applying clone bundle
373 searching for changes
373 searching for changes
374 no changes found
374 no changes found
375
375
376 Preferring bz2 type will download first entry of that type
376 Preferring bz2 type will download first entry of that type
377
377
378 $ hg --config ui.clonebundleprefers=COMPRESSION=bzip2 clone -U http://localhost:$HGPORT prefer-bz
378 $ hg --config ui.clonebundleprefers=COMPRESSION=bzip2 clone -U http://localhost:$HGPORT prefer-bz
379 applying clone bundle from http://localhost:$HGPORT1/bz2-a.hg
379 applying clone bundle from http://localhost:$HGPORT1/bz2-a.hg
380 adding changesets
380 adding changesets
381 adding manifests
381 adding manifests
382 adding file changes
382 adding file changes
383 added 2 changesets with 2 changes to 2 files
383 added 2 changesets with 2 changes to 2 files
384 finished applying clone bundle
384 finished applying clone bundle
385 searching for changes
385 searching for changes
386 no changes found
386 no changes found
387
387
388 Preferring multiple values of an option works
388 Preferring multiple values of an option works
389
389
390 $ hg --config ui.clonebundleprefers=COMPRESSION=unknown,COMPRESSION=bzip2 clone -U http://localhost:$HGPORT prefer-multiple-bz
390 $ hg --config ui.clonebundleprefers=COMPRESSION=unknown,COMPRESSION=bzip2 clone -U http://localhost:$HGPORT prefer-multiple-bz
391 applying clone bundle from http://localhost:$HGPORT1/bz2-a.hg
391 applying clone bundle from http://localhost:$HGPORT1/bz2-a.hg
392 adding changesets
392 adding changesets
393 adding manifests
393 adding manifests
394 adding file changes
394 adding file changes
395 added 2 changesets with 2 changes to 2 files
395 added 2 changesets with 2 changes to 2 files
396 finished applying clone bundle
396 finished applying clone bundle
397 searching for changes
397 searching for changes
398 no changes found
398 no changes found
399
399
400 Sorting multiple values should get us back to original first entry
400 Sorting multiple values should get us back to original first entry
401
401
402 $ hg --config ui.clonebundleprefers=BUNDLESPEC=unknown,BUNDLESPEC=gzip-v2,BUNDLESPEC=bzip2-v2 clone -U http://localhost:$HGPORT prefer-multiple-gz
402 $ hg --config ui.clonebundleprefers=BUNDLESPEC=unknown,BUNDLESPEC=gzip-v2,BUNDLESPEC=bzip2-v2 clone -U http://localhost:$HGPORT prefer-multiple-gz
403 applying clone bundle from http://localhost:$HGPORT1/gz-a.hg
403 applying clone bundle from http://localhost:$HGPORT1/gz-a.hg
404 adding changesets
404 adding changesets
405 adding manifests
405 adding manifests
406 adding file changes
406 adding file changes
407 added 2 changesets with 2 changes to 2 files
407 added 2 changesets with 2 changes to 2 files
408 finished applying clone bundle
408 finished applying clone bundle
409 searching for changes
409 searching for changes
410 no changes found
410 no changes found
411
411
412 Preferring multiple attributes has correct order
412 Preferring multiple attributes has correct order
413
413
414 $ hg --config ui.clonebundleprefers=extra=b,BUNDLESPEC=bzip2-v2 clone -U http://localhost:$HGPORT prefer-separate-attributes
414 $ hg --config ui.clonebundleprefers=extra=b,BUNDLESPEC=bzip2-v2 clone -U http://localhost:$HGPORT prefer-separate-attributes
415 applying clone bundle from http://localhost:$HGPORT1/bz2-b.hg
415 applying clone bundle from http://localhost:$HGPORT1/bz2-b.hg
416 adding changesets
416 adding changesets
417 adding manifests
417 adding manifests
418 adding file changes
418 adding file changes
419 added 2 changesets with 2 changes to 2 files
419 added 2 changesets with 2 changes to 2 files
420 finished applying clone bundle
420 finished applying clone bundle
421 searching for changes
421 searching for changes
422 no changes found
422 no changes found
423
423
424 Test where attribute is missing from some entries
424 Test where attribute is missing from some entries
425
425
426 $ cat > server/.hg/clonebundles.manifest << EOF
426 $ cat > server/.hg/clonebundles.manifest << EOF
427 > http://localhost:$HGPORT1/gz-a.hg BUNDLESPEC=gzip-v2
427 > http://localhost:$HGPORT1/gz-a.hg BUNDLESPEC=gzip-v2
428 > http://localhost:$HGPORT1/bz2-a.hg BUNDLESPEC=bzip2-v2
428 > http://localhost:$HGPORT1/bz2-a.hg BUNDLESPEC=bzip2-v2
429 > http://localhost:$HGPORT1/gz-b.hg BUNDLESPEC=gzip-v2 extra=b
429 > http://localhost:$HGPORT1/gz-b.hg BUNDLESPEC=gzip-v2 extra=b
430 > http://localhost:$HGPORT1/bz2-b.hg BUNDLESPEC=bzip2-v2 extra=b
430 > http://localhost:$HGPORT1/bz2-b.hg BUNDLESPEC=bzip2-v2 extra=b
431 > EOF
431 > EOF
432
432
433 $ hg --config ui.clonebundleprefers=extra=b clone -U http://localhost:$HGPORT prefer-partially-defined-attribute
433 $ hg --config ui.clonebundleprefers=extra=b clone -U http://localhost:$HGPORT prefer-partially-defined-attribute
434 applying clone bundle from http://localhost:$HGPORT1/gz-b.hg
434 applying clone bundle from http://localhost:$HGPORT1/gz-b.hg
435 adding changesets
435 adding changesets
436 adding manifests
436 adding manifests
437 adding file changes
437 adding file changes
438 added 2 changesets with 2 changes to 2 files
438 added 2 changesets with 2 changes to 2 files
439 finished applying clone bundle
439 finished applying clone bundle
440 searching for changes
440 searching for changes
441 no changes found
441 no changes found
442
442
443 Test interaction between clone bundles and --stream
443 Test interaction between clone bundles and --stream
444
444
445 A manifest with just a gzip bundle
445 A manifest with just a gzip bundle
446
446
447 $ cat > server/.hg/clonebundles.manifest << EOF
447 $ cat > server/.hg/clonebundles.manifest << EOF
448 > http://localhost:$HGPORT1/gz-a.hg BUNDLESPEC=gzip-v2
448 > http://localhost:$HGPORT1/gz-a.hg BUNDLESPEC=gzip-v2
449 > EOF
449 > EOF
450
450
451 $ hg clone -U --stream http://localhost:$HGPORT uncompressed-gzip
451 $ hg clone -U --stream http://localhost:$HGPORT uncompressed-gzip
452 no compatible clone bundles available on server; falling back to regular clone
452 no compatible clone bundles available on server; falling back to regular clone
453 (you may want to report this to the server operator)
453 (you may want to report this to the server operator)
454 streaming all changes
454 streaming all changes
455 4 files to transfer, 613 bytes of data
455 4 files to transfer, 613 bytes of data
456 transferred 613 bytes in * seconds (*) (glob)
456 transferred 613 bytes in * seconds (*) (glob)
457 searching for changes
457 searching for changes
458 no changes found
458 no changes found
459
459
460 A manifest with a stream clone but no BUNDLESPEC
460 A manifest with a stream clone but no BUNDLESPEC
461
461
462 $ cat > server/.hg/clonebundles.manifest << EOF
462 $ cat > server/.hg/clonebundles.manifest << EOF
463 > http://localhost:$HGPORT1/packed.hg
463 > http://localhost:$HGPORT1/packed.hg
464 > EOF
464 > EOF
465
465
466 $ hg clone -U --stream http://localhost:$HGPORT uncompressed-no-bundlespec
466 $ hg clone -U --stream http://localhost:$HGPORT uncompressed-no-bundlespec
467 no compatible clone bundles available on server; falling back to regular clone
467 no compatible clone bundles available on server; falling back to regular clone
468 (you may want to report this to the server operator)
468 (you may want to report this to the server operator)
469 streaming all changes
469 streaming all changes
470 4 files to transfer, 613 bytes of data
470 4 files to transfer, 613 bytes of data
471 transferred 613 bytes in * seconds (*) (glob)
471 transferred 613 bytes in * seconds (*) (glob)
472 searching for changes
472 searching for changes
473 no changes found
473 no changes found
474
474
475 A manifest with a gzip bundle and a stream clone
475 A manifest with a gzip bundle and a stream clone
476
476
477 $ cat > server/.hg/clonebundles.manifest << EOF
477 $ cat > server/.hg/clonebundles.manifest << EOF
478 > http://localhost:$HGPORT1/gz-a.hg BUNDLESPEC=gzip-v2
478 > http://localhost:$HGPORT1/gz-a.hg BUNDLESPEC=gzip-v2
479 > http://localhost:$HGPORT1/packed.hg BUNDLESPEC=none-packed1
479 > http://localhost:$HGPORT1/packed.hg BUNDLESPEC=none-packed1
480 > EOF
480 > EOF
481
481
482 $ hg clone -U --stream http://localhost:$HGPORT uncompressed-gzip-packed
482 $ hg clone -U --stream http://localhost:$HGPORT uncompressed-gzip-packed
483 applying clone bundle from http://localhost:$HGPORT1/packed.hg
483 applying clone bundle from http://localhost:$HGPORT1/packed.hg
484 4 files to transfer, 613 bytes of data
484 4 files to transfer, 613 bytes of data
485 transferred 613 bytes in * seconds (*) (glob)
485 transferred 613 bytes in * seconds (*) (glob)
486 finished applying clone bundle
486 finished applying clone bundle
487 searching for changes
487 searching for changes
488 no changes found
488 no changes found
489
489
490 A manifest with a gzip bundle and stream clone with supported requirements
490 A manifest with a gzip bundle and stream clone with supported requirements
491
491
492 $ cat > server/.hg/clonebundles.manifest << EOF
492 $ cat > server/.hg/clonebundles.manifest << EOF
493 > http://localhost:$HGPORT1/gz-a.hg BUNDLESPEC=gzip-v2
493 > http://localhost:$HGPORT1/gz-a.hg BUNDLESPEC=gzip-v2
494 > http://localhost:$HGPORT1/packed.hg BUNDLESPEC=none-packed1;requirements%3Drevlogv1
494 > http://localhost:$HGPORT1/packed.hg BUNDLESPEC=none-packed1;requirements%3Drevlogv1
495 > EOF
495 > EOF
496
496
497 $ hg clone -U --stream http://localhost:$HGPORT uncompressed-gzip-packed-requirements
497 $ hg clone -U --stream http://localhost:$HGPORT uncompressed-gzip-packed-requirements
498 applying clone bundle from http://localhost:$HGPORT1/packed.hg
498 applying clone bundle from http://localhost:$HGPORT1/packed.hg
499 4 files to transfer, 613 bytes of data
499 4 files to transfer, 613 bytes of data
500 transferred 613 bytes in * seconds (*) (glob)
500 transferred 613 bytes in * seconds (*) (glob)
501 finished applying clone bundle
501 finished applying clone bundle
502 searching for changes
502 searching for changes
503 no changes found
503 no changes found
504
504
505 A manifest with a gzip bundle and a stream clone with unsupported requirements
505 A manifest with a gzip bundle and a stream clone with unsupported requirements
506
506
507 $ cat > server/.hg/clonebundles.manifest << EOF
507 $ cat > server/.hg/clonebundles.manifest << EOF
508 > http://localhost:$HGPORT1/gz-a.hg BUNDLESPEC=gzip-v2
508 > http://localhost:$HGPORT1/gz-a.hg BUNDLESPEC=gzip-v2
509 > http://localhost:$HGPORT1/packed.hg BUNDLESPEC=none-packed1;requirements%3Drevlogv42
509 > http://localhost:$HGPORT1/packed.hg BUNDLESPEC=none-packed1;requirements%3Drevlogv42
510 > EOF
510 > EOF
511
511
512 $ hg clone -U --stream http://localhost:$HGPORT uncompressed-gzip-packed-unsupported-requirements
512 $ hg clone -U --stream http://localhost:$HGPORT uncompressed-gzip-packed-unsupported-requirements
513 no compatible clone bundles available on server; falling back to regular clone
513 no compatible clone bundles available on server; falling back to regular clone
514 (you may want to report this to the server operator)
514 (you may want to report this to the server operator)
515 streaming all changes
515 streaming all changes
516 4 files to transfer, 613 bytes of data
516 4 files to transfer, 613 bytes of data
517 transferred 613 bytes in * seconds (*) (glob)
517 transferred 613 bytes in * seconds (*) (glob)
518 searching for changes
518 searching for changes
519 no changes found
519 no changes found
520
520
521 Test clone bundle retrieved through bundle2
521 Test clone bundle retrieved through bundle2
522
522
523 $ cat << EOF >> $HGRCPATH
523 $ cat << EOF >> $HGRCPATH
524 > [extensions]
524 > [extensions]
525 > largefiles=
525 > largefiles=
526 > EOF
526 > EOF
527 $ killdaemons.py
527 $ killdaemons.py
528 $ hg -R server serve -d -p $HGPORT --pid-file hg.pid --accesslog access.log
528 $ hg -R server serve -d -p $HGPORT --pid-file hg.pid --accesslog access.log
529 $ cat hg.pid >> $DAEMON_PIDS
529 $ cat hg.pid >> $DAEMON_PIDS
530
530
531 $ hg -R server debuglfput gz-a.hg
531 $ hg -R server debuglfput gz-a.hg
532 f6eca29e25359f6a92f1ea64527cdcf1b5abe62a
532 f6eca29e25359f6a92f1ea64527cdcf1b5abe62a
533
533
534 $ cat > server/.hg/clonebundles.manifest << EOF
534 $ cat > server/.hg/clonebundles.manifest << EOF
535 > largefile://f6eca29e25359f6a92f1ea64527cdcf1b5abe62a BUNDLESPEC=gzip-v2
535 > largefile://f6eca29e25359f6a92f1ea64527cdcf1b5abe62a BUNDLESPEC=gzip-v2
536 > EOF
536 > EOF
537
537
538 $ hg clone -U http://localhost:$HGPORT largefile-provided --traceback
538 $ hg clone -U http://localhost:$HGPORT largefile-provided --traceback
539 applying clone bundle from largefile://f6eca29e25359f6a92f1ea64527cdcf1b5abe62a
539 applying clone bundle from largefile://f6eca29e25359f6a92f1ea64527cdcf1b5abe62a
540 adding changesets
540 adding changesets
541 adding manifests
541 adding manifests
542 adding file changes
542 adding file changes
543 added 2 changesets with 2 changes to 2 files
543 added 2 changesets with 2 changes to 2 files
544 finished applying clone bundle
544 finished applying clone bundle
545 searching for changes
545 searching for changes
546 no changes found
546 no changes found
General Comments 0
You need to be logged in to leave comments. Login now