##// END OF EJS Templates
branching: merge stable into default
Raphaël Gomès -
r48692:31a72e5e merge default
parent child Browse files
Show More
@@ -770,7 +770,7 b' class DNSOutgoing(object):'
770
770
771 def writeString(self, value, length):
771 def writeString(self, value, length):
772 """Writes a string to the packet"""
772 """Writes a string to the packet"""
773 format = b'!' + str(length) + b's'
773 format = '!' + str(length) + 's'
774 self.data.append(struct.pack(format, value))
774 self.data.append(struct.pack(format, value))
775 self.size += length
775 self.size += length
776
776
@@ -452,9 +452,10 b' static int node_check(Py_ssize_t nodelen'
452 static PyObject *index_append(indexObject *self, PyObject *obj)
452 static PyObject *index_append(indexObject *self, PyObject *obj)
453 {
453 {
454 uint64_t offset_flags, sidedata_offset;
454 uint64_t offset_flags, sidedata_offset;
455 int rev, comp_len, uncomp_len, base_rev, link_rev, parent_1, parent_2;
455 int rev, comp_len, uncomp_len, base_rev, link_rev, parent_1, parent_2,
456 sidedata_comp_len;
456 char data_comp_mode, sidedata_comp_mode;
457 char data_comp_mode, sidedata_comp_mode;
457 Py_ssize_t c_node_id_len, sidedata_comp_len;
458 Py_ssize_t c_node_id_len;
458 const char *c_node_id;
459 const char *c_node_id;
459 char comp_field;
460 char comp_field;
460 char *data;
461 char *data;
@@ -534,9 +535,9 b' static PyObject *index_append(indexObjec'
534 static PyObject *index_replace_sidedata_info(indexObject *self, PyObject *args)
535 static PyObject *index_replace_sidedata_info(indexObject *self, PyObject *args)
535 {
536 {
536 uint64_t offset_flags, sidedata_offset;
537 uint64_t offset_flags, sidedata_offset;
537 int rev;
538 Py_ssize_t rev;
539 int sidedata_comp_len;
538 char comp_mode;
540 char comp_mode;
539 Py_ssize_t sidedata_comp_len;
540 char *data;
541 char *data;
541 #if LONG_MAX == 0x7fffffffL
542 #if LONG_MAX == 0x7fffffffL
542 const char *const sidedata_format = PY23("nKiKB", "nKiKB");
543 const char *const sidedata_format = PY23("nKiKB", "nKiKB");
@@ -821,9 +821,11 b' def _copy_files(src_vfs_map, dst_vfs_map'
821 dst_vfs = dst_vfs_map[k]
821 dst_vfs = dst_vfs_map[k]
822 src_path = src_vfs.join(path)
822 src_path = src_vfs.join(path)
823 dst_path = dst_vfs.join(path)
823 dst_path = dst_vfs.join(path)
824 dirname = dst_vfs.dirname(path)
824 # We cannot use dirname and makedirs of dst_vfs here because the store
825 if not dst_vfs.exists(dirname):
825 # encoding confuses them. See issue 6581 for details.
826 dst_vfs.makedirs(dirname)
826 dirname = os.path.dirname(dst_path)
827 if not os.path.exists(dirname):
828 util.makedirs(dirname)
827 dst_vfs.register_file(path)
829 dst_vfs.register_file(path)
828 # XXX we could use the #nb_bytes argument.
830 # XXX we could use the #nb_bytes argument.
829 util.copyfile(
831 util.copyfile(
@@ -616,7 +616,16 b' def groupname(gid=None):'
616
616
617
617
618 def readlink(pathname):
618 def readlink(pathname):
619 return pycompat.fsencode(os.readlink(pycompat.fsdecode(pathname)))
619 path = pycompat.fsdecode(pathname)
620 try:
621 link = os.readlink(path)
622 except ValueError as e:
623 # On py2, os.readlink() raises an AttributeError since it is
624 # unsupported. On py3, reading a non-link raises a ValueError. Simply
625 # treat this as the error the locking code has been expecting up to now
626 # until an effort can be made to enable symlink support on Windows.
627 raise AttributeError(e)
628 return pycompat.fsencode(link)
620
629
621
630
622 def removedirs(name):
631 def removedirs(name):
@@ -44,6 +44,17 b' if extra_path is not None:'
44 # We do not prepend the values because the Mercurial library wants to be in
44 # We do not prepend the values because the Mercurial library wants to be in
45 # the front of the sys.path to avoid picking up other installations.
45 # the front of the sys.path to avoid picking up other installations.
46 sys.path.extend(extra_path.split(os.pathsep))
46 sys.path.extend(extra_path.split(os.pathsep))
47 # Add user site to sys.path to load extensions without the full path
48 if os.name == 'nt':
49 vi = sys.version_info
50 sys.path.append(
51 os.path.join(
52 os.environ['APPDATA'],
53 'Python',
54 'Python%d%d' % (vi[0], vi[1]),
55 'site-packages',
56 )
57 )
47 import hgdemandimport;
58 import hgdemandimport;
48 hgdemandimport.enable();
59 hgdemandimport.enable();
49 from mercurial import dispatch;
60 from mercurial import dispatch;
@@ -115,6 +115,14 b' substitutions = ['
115 br'(.*file:/)/?(/\$TESTTMP.*)',
115 br'(.*file:/)/?(/\$TESTTMP.*)',
116 lambda m: m.group(1) + b'*' + m.group(2) + b' (glob)',
116 lambda m: m.group(1) + b'*' + m.group(2) + b' (glob)',
117 ),
117 ),
118 # `hg clone --stream` output
119 (
120 br'transferred (\S+?) KB in \S+? seconds \(.+?/sec\)(?: \(glob\))?(.*)',
121 lambda m: (
122 br'transferred %s KB in * seconds (* */sec) (glob)%s'
123 % (m.group(1), m.group(2))
124 ),
125 ),
118 ]
126 ]
119
127
120 # Various platform error strings, keyed on a common replacement string
128 # Various platform error strings, keyed on a common replacement string
@@ -403,7 +403,7 b' transaction)'
403 6 files to transfer, 2.60 KB of data
403 6 files to transfer, 2.60 KB of data
404 pretxnopen: 000000000000
404 pretxnopen: 000000000000
405 pretxnclose: aa35859c02ea
405 pretxnclose: aa35859c02ea
406 transferred 2.60 KB in *.* seconds (* */sec) (glob)
406 transferred 2.60 KB in * seconds (* */sec) (glob)
407 txnclose: aa35859c02ea
407 txnclose: aa35859c02ea
408
408
409 (for safety, confirm visibility of streamclone-ed changes by another
409 (for safety, confirm visibility of streamclone-ed changes by another
@@ -94,7 +94,12 b' Name with special characters'
94
94
95 $ echo foo > store/CélesteVille_is_a_Capital_City
95 $ echo foo > store/CélesteVille_is_a_Capital_City
96
96
97 All all that
97 name causing issue6581
98
99 $ mkdir --parents container/isam-build-centos7/
100 $ touch container/isam-build-centos7/bazel-coverage-generator-sandboxfs-compatibility-0758e3e4f6057904d44399bd666faba9e7f40686.patch
101
102 Add all that
98
103
99 $ hg add .
104 $ hg add .
100 adding 00changelog-ab349180a0405010.nd
105 adding 00changelog-ab349180a0405010.nd
@@ -103,6 +108,7 b' All all that'
103 adding 00changelog.n
108 adding 00changelog.n
104 adding 00manifest.d
109 adding 00manifest.d
105 adding 00manifest.i
110 adding 00manifest.i
111 adding container/isam-build-centos7/bazel-coverage-generator-sandboxfs-compatibility-0758e3e4f6057904d44399bd666faba9e7f40686.patch
106 adding data/foo.d
112 adding data/foo.d
107 adding data/foo.i
113 adding data/foo.i
108 adding data/foo.n
114 adding data/foo.n
@@ -172,7 +178,16 b' This is present here to reuse the testin'
172
178
173 $ hg clone server local-clone
179 $ hg clone server local-clone
174 updating to branch default
180 updating to branch default
175 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved
181 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved
182
183 Check that the clone went well
184
185 $ hg verify -R local-clone
186 checking changesets
187 checking manifests
188 crosschecking files in changesets and manifests
189 checking files
190 checked 3 changesets with 1088 changes to 1088 files
176
191
177 Check uncompressed
192 Check uncompressed
178 ==================
193 ==================
@@ -232,8 +247,8 b' Cannot stream clone when server.uncompre'
232 adding changesets
247 adding changesets
233 adding manifests
248 adding manifests
234 adding file changes
249 adding file changes
235 added 3 changesets with 1087 changes to 1087 files
250 added 3 changesets with 1088 changes to 1088 files
236 new changesets 96ee1d7354c4:42e820400e84
251 new changesets 96ee1d7354c4:5223b5e3265f
237
252
238 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=getbundle' content-type --bodyfile body --hgproto 0.2 --requestheader "x-hgarg-1=bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=0&common=0000000000000000000000000000000000000000&heads=c17445101a72edac06facd130d14808dfbd5c7c2&stream=1"
253 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=getbundle' content-type --bodyfile body --hgproto 0.2 --requestheader "x-hgarg-1=bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=0&common=0000000000000000000000000000000000000000&heads=c17445101a72edac06facd130d14808dfbd5c7c2&stream=1"
239 200 Script output follows
254 200 Script output follows
@@ -299,8 +314,8 b' Cannot stream clone when server.uncompre'
299 adding changesets
314 adding changesets
300 adding manifests
315 adding manifests
301 adding file changes
316 adding file changes
302 added 3 changesets with 1087 changes to 1087 files
317 added 3 changesets with 1088 changes to 1088 files
303 new changesets 96ee1d7354c4:42e820400e84
318 new changesets 96ee1d7354c4:5223b5e3265f
304
319
305 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=getbundle' content-type --bodyfile body --hgproto 0.2 --requestheader "x-hgarg-1=bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=0&common=0000000000000000000000000000000000000000&heads=c17445101a72edac06facd130d14808dfbd5c7c2&stream=1"
320 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=getbundle' content-type --bodyfile body --hgproto 0.2 --requestheader "x-hgarg-1=bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=0&common=0000000000000000000000000000000000000000&heads=c17445101a72edac06facd130d14808dfbd5c7c2&stream=1"
306 200 Script output follows
321 200 Script output follows
@@ -330,10 +345,10 b' Basic clone'
330 #if stream-legacy
345 #if stream-legacy
331 $ hg clone --stream -U http://localhost:$HGPORT clone1
346 $ hg clone --stream -U http://localhost:$HGPORT clone1
332 streaming all changes
347 streaming all changes
333 1089 files to transfer, 101 KB of data (no-zstd !)
348 1090 files to transfer, 102 KB of data (no-zstd !)
334 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
349 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
335 1089 files to transfer, 98.5 KB of data (zstd !)
350 1090 files to transfer, 98.8 KB of data (zstd !)
336 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
351 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !)
337 searching for changes
352 searching for changes
338 no changes found
353 no changes found
339 $ cat server/errors.txt
354 $ cat server/errors.txt
@@ -341,10 +356,10 b' Basic clone'
341 #if stream-bundle2
356 #if stream-bundle2
342 $ hg clone --stream -U http://localhost:$HGPORT clone1
357 $ hg clone --stream -U http://localhost:$HGPORT clone1
343 streaming all changes
358 streaming all changes
344 1092 files to transfer, 101 KB of data (no-zstd !)
359 1093 files to transfer, 102 KB of data (no-zstd !)
345 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
360 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
346 1092 files to transfer, 98.6 KB of data (zstd !)
361 1093 files to transfer, 98.9 KB of data (zstd !)
347 transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !)
362 transferred 98.9 KB in * seconds (* */sec) (glob) (zstd !)
348
363
349 $ ls -1 clone1/.hg/cache
364 $ ls -1 clone1/.hg/cache
350 branch2-base
365 branch2-base
@@ -369,12 +384,12 b' getbundle requests with stream=1 are unc'
369
384
370 #if no-zstd no-rust
385 #if no-zstd no-rust
371 $ f --size --hex --bytes 256 body
386 $ f --size --hex --bytes 256 body
372 body: size=118737
387 body: size=119153
373 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
388 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
374 0010: 80 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......|
389 0010: 80 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......|
375 0020: 06 09 04 0c 44 62 79 74 65 63 6f 75 6e 74 31 30 |....Dbytecount10|
390 0020: 06 09 04 0c 44 62 79 74 65 63 6f 75 6e 74 31 30 |....Dbytecount10|
376 0030: 33 38 33 34 66 69 6c 65 63 6f 75 6e 74 31 30 39 |3834filecount109|
391 0030: 34 31 31 35 66 69 6c 65 63 6f 75 6e 74 31 30 39 |4115filecount109|
377 0040: 32 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |2requirementsdot|
392 0040: 33 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |3requirementsdot|
378 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache|
393 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache|
379 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%|
394 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%|
380 0070: 32 43 72 65 76 6c 6f 67 76 31 25 32 43 73 70 61 |2Crevlogv1%2Cspa|
395 0070: 32 43 72 65 76 6c 6f 67 76 31 25 32 43 73 70 61 |2Crevlogv1%2Cspa|
@@ -389,12 +404,12 b' getbundle requests with stream=1 are unc'
389 #endif
404 #endif
390 #if zstd no-rust
405 #if zstd no-rust
391 $ f --size --hex --bytes 256 body
406 $ f --size --hex --bytes 256 body
392 body: size=115921
407 body: size=116340
393 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
408 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
394 0010: 9a 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......|
409 0010: 9a 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......|
395 0020: 06 09 04 0c 5e 62 79 74 65 63 6f 75 6e 74 31 30 |....^bytecount10|
410 0020: 06 09 04 0c 5e 62 79 74 65 63 6f 75 6e 74 31 30 |....^bytecount10|
396 0030: 30 39 39 32 66 69 6c 65 63 6f 75 6e 74 31 30 39 |0992filecount109|
411 0030: 31 32 37 36 66 69 6c 65 63 6f 75 6e 74 31 30 39 |1276filecount109|
397 0040: 32 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |2requirementsdot|
412 0040: 33 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |3requirementsdot|
398 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache|
413 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache|
399 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%|
414 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%|
400 0070: 32 43 72 65 76 6c 6f 67 2d 63 6f 6d 70 72 65 73 |2Crevlog-compres|
415 0070: 32 43 72 65 76 6c 6f 67 2d 63 6f 6d 70 72 65 73 |2Crevlog-compres|
@@ -409,12 +424,12 b' getbundle requests with stream=1 are unc'
409 #endif
424 #endif
410 #if zstd rust no-dirstate-v2
425 #if zstd rust no-dirstate-v2
411 $ f --size --hex --bytes 256 body
426 $ f --size --hex --bytes 256 body
412 body: size=115942
427 body: size=116361
413 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
428 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
414 0010: af 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......|
429 0010: af 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......|
415 0020: 06 09 04 0c 73 62 79 74 65 63 6f 75 6e 74 31 30 |....sbytecount10|
430 0020: 06 09 04 0c 73 62 79 74 65 63 6f 75 6e 74 31 30 |....sbytecount10|
416 0030: 30 39 39 32 66 69 6c 65 63 6f 75 6e 74 31 30 39 |0992filecount109|
431 0030: 31 32 37 36 66 69 6c 65 63 6f 75 6e 74 31 30 39 |1276filecount109|
417 0040: 32 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |2requirementsdot|
432 0040: 33 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |3requirementsdot|
418 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache|
433 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache|
419 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%|
434 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%|
420 0070: 32 43 70 65 72 73 69 73 74 65 6e 74 2d 6e 6f 64 |2Cpersistent-nod|
435 0070: 32 43 70 65 72 73 69 73 74 65 6e 74 2d 6e 6f 64 |2Cpersistent-nod|
@@ -453,20 +468,20 b' getbundle requests with stream=1 are unc'
453 #if stream-legacy
468 #if stream-legacy
454 $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed
469 $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed
455 streaming all changes
470 streaming all changes
456 1089 files to transfer, 101 KB of data (no-zstd !)
471 1090 files to transfer, 102 KB of data (no-zstd !)
457 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
472 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
458 1089 files to transfer, 98.5 KB of data (zstd !)
473 1090 files to transfer, 98.8 KB of data (zstd !)
459 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
474 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !)
460 searching for changes
475 searching for changes
461 no changes found
476 no changes found
462 #endif
477 #endif
463 #if stream-bundle2
478 #if stream-bundle2
464 $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed
479 $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed
465 streaming all changes
480 streaming all changes
466 1092 files to transfer, 101 KB of data (no-zstd !)
481 1093 files to transfer, 102 KB of data (no-zstd !)
467 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
482 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
468 1092 files to transfer, 98.6 KB of data (zstd !)
483 1093 files to transfer, 98.9 KB of data (zstd !)
469 transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !)
484 transferred 98.9 KB in * seconds (* */sec) (glob) (zstd !)
470 #endif
485 #endif
471
486
472 Clone with background file closing enabled
487 Clone with background file closing enabled
@@ -478,12 +493,12 b' Clone with background file closing enabl'
478 sending branchmap command
493 sending branchmap command
479 streaming all changes
494 streaming all changes
480 sending stream_out command
495 sending stream_out command
481 1089 files to transfer, 101 KB of data (no-zstd !)
496 1090 files to transfer, 102 KB of data (no-zstd !)
482 1089 files to transfer, 98.5 KB of data (zstd !)
497 1090 files to transfer, 98.8 KB of data (zstd !)
483 starting 4 threads for background file closing
498 starting 4 threads for background file closing
484 updating the branch cache
499 updating the branch cache
485 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
500 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
486 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
501 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !)
487 query 1; heads
502 query 1; heads
488 sending batch command
503 sending batch command
489 searching for changes
504 searching for changes
@@ -510,15 +525,15 b' Clone with background file closing enabl'
510 bundle2-input-bundle: with-transaction
525 bundle2-input-bundle: with-transaction
511 bundle2-input-part: "stream2" (params: 3 mandatory) supported
526 bundle2-input-part: "stream2" (params: 3 mandatory) supported
512 applying stream bundle
527 applying stream bundle
513 1092 files to transfer, 101 KB of data (no-zstd !)
528 1093 files to transfer, 102 KB of data (no-zstd !)
514 1092 files to transfer, 98.6 KB of data (zstd !)
529 1093 files to transfer, 98.9 KB of data (zstd !)
515 starting 4 threads for background file closing
530 starting 4 threads for background file closing
516 starting 4 threads for background file closing
531 starting 4 threads for background file closing
517 updating the branch cache
532 updating the branch cache
518 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
533 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
519 bundle2-input-part: total payload size 118568 (no-zstd !)
534 bundle2-input-part: total payload size 118984 (no-zstd !)
520 transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !)
535 transferred 98.9 KB in * seconds (* */sec) (glob) (zstd !)
521 bundle2-input-part: total payload size 115726 (zstd !)
536 bundle2-input-part: total payload size 116145 (zstd !)
522 bundle2-input-part: "listkeys" (params: 1 mandatory) supported
537 bundle2-input-part: "listkeys" (params: 1 mandatory) supported
523 bundle2-input-bundle: 2 parts total
538 bundle2-input-bundle: 2 parts total
524 checking for updated bookmarks
539 checking for updated bookmarks
@@ -550,20 +565,20 b' Streaming of secrets can be overridden b'
550 #if stream-legacy
565 #if stream-legacy
551 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed
566 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed
552 streaming all changes
567 streaming all changes
553 1089 files to transfer, 101 KB of data (no-zstd !)
568 1090 files to transfer, 102 KB of data (no-zstd !)
554 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
569 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
555 1089 files to transfer, 98.5 KB of data (zstd !)
570 1090 files to transfer, 98.8 KB of data (zstd !)
556 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
571 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !)
557 searching for changes
572 searching for changes
558 no changes found
573 no changes found
559 #endif
574 #endif
560 #if stream-bundle2
575 #if stream-bundle2
561 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed
576 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed
562 streaming all changes
577 streaming all changes
563 1092 files to transfer, 101 KB of data (no-zstd !)
578 1093 files to transfer, 102 KB of data (no-zstd !)
564 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
579 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
565 1092 files to transfer, 98.6 KB of data (zstd !)
580 1093 files to transfer, 98.9 KB of data (zstd !)
566 transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !)
581 transferred 98.9 KB in * seconds (* */sec) (glob) (zstd !)
567 #endif
582 #endif
568
583
569 $ killdaemons.py
584 $ killdaemons.py
@@ -702,33 +717,33 b' clone it'
702 #if stream-legacy
717 #if stream-legacy
703 $ hg clone --stream http://localhost:$HGPORT with-bookmarks
718 $ hg clone --stream http://localhost:$HGPORT with-bookmarks
704 streaming all changes
719 streaming all changes
705 1089 files to transfer, 101 KB of data (no-zstd !)
720 1090 files to transfer, 102 KB of data (no-zstd !)
706 transferred 101 KB in * seconds (*) (glob) (no-zstd !)
721 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
707 1089 files to transfer, 98.5 KB of data (zstd !)
722 1090 files to transfer, 98.8 KB of data (zstd !)
708 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
723 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !)
709 searching for changes
724 searching for changes
710 no changes found
725 no changes found
711 updating to branch default
726 updating to branch default
712 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved
727 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved
713 #endif
728 #endif
714 #if stream-bundle2
729 #if stream-bundle2
715 $ hg clone --stream http://localhost:$HGPORT with-bookmarks
730 $ hg clone --stream http://localhost:$HGPORT with-bookmarks
716 streaming all changes
731 streaming all changes
717 1095 files to transfer, 102 KB of data (no-zstd !)
732 1096 files to transfer, 102 KB of data (no-zstd !)
718 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
733 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
719 1095 files to transfer, 98.8 KB of data (zstd !)
734 1096 files to transfer, 99.1 KB of data (zstd !)
720 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !)
735 transferred 99.1 KB in * seconds (* */sec) (glob) (zstd !)
721 updating to branch default
736 updating to branch default
722 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved
737 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved
723 #endif
738 #endif
724 $ hg verify -R with-bookmarks
739 $ hg verify -R with-bookmarks
725 checking changesets
740 checking changesets
726 checking manifests
741 checking manifests
727 crosschecking files in changesets and manifests
742 crosschecking files in changesets and manifests
728 checking files
743 checking files
729 checked 3 changesets with 1087 changes to 1087 files
744 checked 3 changesets with 1088 changes to 1088 files
730 $ hg -R with-bookmarks bookmarks
745 $ hg -R with-bookmarks bookmarks
731 some-bookmark 2:42e820400e84
746 some-bookmark 2:5223b5e3265f
732
747
733 Stream repository with phases
748 Stream repository with phases
734 -----------------------------
749 -----------------------------
@@ -743,31 +758,31 b' Clone as publishing'
743 #if stream-legacy
758 #if stream-legacy
744 $ hg clone --stream http://localhost:$HGPORT phase-publish
759 $ hg clone --stream http://localhost:$HGPORT phase-publish
745 streaming all changes
760 streaming all changes
746 1089 files to transfer, 101 KB of data (no-zstd !)
761 1090 files to transfer, 102 KB of data (no-zstd !)
747 transferred 101 KB in * seconds (*) (glob) (no-zstd !)
762 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
748 1089 files to transfer, 98.5 KB of data (zstd !)
763 1090 files to transfer, 98.8 KB of data (zstd !)
749 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
764 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !)
750 searching for changes
765 searching for changes
751 no changes found
766 no changes found
752 updating to branch default
767 updating to branch default
753 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved
768 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved
754 #endif
769 #endif
755 #if stream-bundle2
770 #if stream-bundle2
756 $ hg clone --stream http://localhost:$HGPORT phase-publish
771 $ hg clone --stream http://localhost:$HGPORT phase-publish
757 streaming all changes
772 streaming all changes
758 1095 files to transfer, 102 KB of data (no-zstd !)
773 1096 files to transfer, 102 KB of data (no-zstd !)
759 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
774 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
760 1095 files to transfer, 98.8 KB of data (zstd !)
775 1096 files to transfer, 99.1 KB of data (zstd !)
761 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !)
776 transferred 99.1 KB in * seconds (* */sec) (glob) (zstd !)
762 updating to branch default
777 updating to branch default
763 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved
778 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved
764 #endif
779 #endif
765 $ hg verify -R phase-publish
780 $ hg verify -R phase-publish
766 checking changesets
781 checking changesets
767 checking manifests
782 checking manifests
768 crosschecking files in changesets and manifests
783 crosschecking files in changesets and manifests
769 checking files
784 checking files
770 checked 3 changesets with 1087 changes to 1087 files
785 checked 3 changesets with 1088 changes to 1088 files
771 $ hg -R phase-publish phase -r 'all()'
786 $ hg -R phase-publish phase -r 'all()'
772 0: public
787 0: public
773 1: public
788 1: public
@@ -790,14 +805,14 b' stream v1 unsuitable for non-publishing '
790
805
791 $ hg clone --stream http://localhost:$HGPORT phase-no-publish
806 $ hg clone --stream http://localhost:$HGPORT phase-no-publish
792 streaming all changes
807 streaming all changes
793 1089 files to transfer, 101 KB of data (no-zstd !)
808 1090 files to transfer, 102 KB of data (no-zstd !)
794 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
809 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
795 1089 files to transfer, 98.5 KB of data (zstd !)
810 1090 files to transfer, 98.8 KB of data (zstd !)
796 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
811 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !)
797 searching for changes
812 searching for changes
798 no changes found
813 no changes found
799 updating to branch default
814 updating to branch default
800 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved
815 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved
801 $ hg -R phase-no-publish phase -r 'all()'
816 $ hg -R phase-no-publish phase -r 'all()'
802 0: public
817 0: public
803 1: public
818 1: public
@@ -806,12 +821,12 b' stream v1 unsuitable for non-publishing '
806 #if stream-bundle2
821 #if stream-bundle2
807 $ hg clone --stream http://localhost:$HGPORT phase-no-publish
822 $ hg clone --stream http://localhost:$HGPORT phase-no-publish
808 streaming all changes
823 streaming all changes
809 1096 files to transfer, 102 KB of data (no-zstd !)
824 1097 files to transfer, 102 KB of data (no-zstd !)
810 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
825 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
811 1096 files to transfer, 98.8 KB of data (zstd !)
826 1097 files to transfer, 99.1 KB of data (zstd !)
812 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !)
827 transferred 99.1 KB in * seconds (* */sec) (glob) (zstd !)
813 updating to branch default
828 updating to branch default
814 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved
829 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved
815 $ hg -R phase-no-publish phase -r 'all()'
830 $ hg -R phase-no-publish phase -r 'all()'
816 0: draft
831 0: draft
817 1: draft
832 1: draft
@@ -822,7 +837,7 b' stream v1 unsuitable for non-publishing '
822 checking manifests
837 checking manifests
823 crosschecking files in changesets and manifests
838 crosschecking files in changesets and manifests
824 checking files
839 checking files
825 checked 3 changesets with 1087 changes to 1087 files
840 checked 3 changesets with 1088 changes to 1088 files
826
841
827 $ killdaemons.py
842 $ killdaemons.py
828
843
@@ -861,22 +876,22 b' Clone non-publishing with obsolescence'
861
876
862 $ hg clone -U --stream http://localhost:$HGPORT with-obsolescence
877 $ hg clone -U --stream http://localhost:$HGPORT with-obsolescence
863 streaming all changes
878 streaming all changes
864 1097 files to transfer, 102 KB of data (no-zstd !)
879 1098 files to transfer, 102 KB of data (no-zstd !)
865 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
880 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
866 1097 files to transfer, 99.2 KB of data (zstd !)
881 1098 files to transfer, 99.5 KB of data (zstd !)
867 transferred 99.2 KB in * seconds (* */sec) (glob) (zstd !)
882 transferred 99.5 KB in * seconds (* */sec) (glob) (zstd !)
868 $ hg -R with-obsolescence log -T '{rev}: {phase}\n'
883 $ hg -R with-obsolescence log -T '{rev}: {phase}\n'
869 2: draft
884 2: draft
870 1: draft
885 1: draft
871 0: draft
886 0: draft
872 $ hg debugobsolete -R with-obsolescence
887 $ hg debugobsolete -R with-obsolescence
873 e53e122156df12330d3a0b72351e3a84bfd14195 0 {42e820400e843bc479ad36068ff772a69c8affe9} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
888 8c206a663911c1f97f2f9d7382e417ae55872cfa 0 {5223b5e3265f0df40bb743da62249413d74ac70f} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
874 $ hg verify -R with-obsolescence
889 $ hg verify -R with-obsolescence
875 checking changesets
890 checking changesets
876 checking manifests
891 checking manifests
877 crosschecking files in changesets and manifests
892 crosschecking files in changesets and manifests
878 checking files
893 checking files
879 checked 4 changesets with 1088 changes to 1087 files
894 checked 4 changesets with 1089 changes to 1088 files
880
895
881 $ hg clone -U --stream --config experimental.evolution=0 http://localhost:$HGPORT with-obsolescence-no-evolution
896 $ hg clone -U --stream --config experimental.evolution=0 http://localhost:$HGPORT with-obsolescence-no-evolution
882 streaming all changes
897 streaming all changes
@@ -385,7 +385,8 b' disable pull-based clones'
385 $ hg clone --stream --noupdate http://localhost:$HGPORT1/ test-stream-clone
385 $ hg clone --stream --noupdate http://localhost:$HGPORT1/ test-stream-clone
386 streaming all changes
386 streaming all changes
387 * files to transfer, * of data (glob)
387 * files to transfer, * of data (glob)
388 transferred * in * seconds (* KB/sec) (glob)
388 transferred 1.36 KB in * seconds (* */sec) (glob) (no-zstd !)
389 transferred 1.38 KB in * seconds (* */sec) (glob) (zstd !)
389 searching for changes
390 searching for changes
390 no changes found
391 no changes found
391 #endif
392 #endif
@@ -91,7 +91,7 b' Test that we can apply the bundle as a s'
91 adding [c] branch2-served (94 bytes)
91 adding [c] branch2-served (94 bytes)
92 adding [c] rbc-names-v1 (7 bytes)
92 adding [c] rbc-names-v1 (7 bytes)
93 adding [c] rbc-revs-v1 (40 bytes)
93 adding [c] rbc-revs-v1 (40 bytes)
94 transferred 1.65 KB in \d\.\d seconds \(.*/sec\) (re)
94 transferred 1.65 KB in * seconds (* */sec) (glob)
95 bundle2-input-part: total payload size 1840
95 bundle2-input-part: total payload size 1840
96 bundle2-input-bundle: 1 parts total
96 bundle2-input-bundle: 1 parts total
97 updating the branch cache
97 updating the branch cache
@@ -148,7 +148,7 b' Test that we can apply the bundle as a s'
148 adding [c] branch2-served (94 bytes)
148 adding [c] branch2-served (94 bytes)
149 adding [c] rbc-names-v1 (7 bytes)
149 adding [c] rbc-names-v1 (7 bytes)
150 adding [c] rbc-revs-v1 (40 bytes)
150 adding [c] rbc-revs-v1 (40 bytes)
151 transferred 1.65 KB in *.* seconds (*/sec) (glob)
151 transferred 1.65 KB in * seconds (* */sec) (glob)
152 bundle2-input-part: total payload size 1840
152 bundle2-input-part: total payload size 1840
153 bundle2-input-bundle: 1 parts total
153 bundle2-input-bundle: 1 parts total
154 updating the branch cache
154 updating the branch cache
General Comments 0
You need to be logged in to leave comments. Login now