tests/test-clone-uncompressed.t
changeset 46874 84a93fa7ecfd
parent 46672 7015b0232c5e
child 46884 cc3ad5c3af3b
equal deleted inserted replaced
46873:0abf5eba0042 46874:84a93fa7ecfd
   176 Basic clone
   176 Basic clone
   177 
   177 
   178 #if stream-legacy
   178 #if stream-legacy
   179   $ hg clone --stream -U http://localhost:$HGPORT clone1
   179   $ hg clone --stream -U http://localhost:$HGPORT clone1
   180   streaming all changes
   180   streaming all changes
   181   1027 files to transfer, 96.3 KB of data
   181   1027 files to transfer, 96.3 KB of data (no-zstd !)
   182   transferred 96.3 KB in * seconds (*/sec) (glob)
   182   transferred 96.3 KB in * seconds (*/sec) (glob) (no-zstd !)
       
   183   1027 files to transfer, 93.5 KB of data (zstd !)
       
   184   transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !)
   183   searching for changes
   185   searching for changes
   184   no changes found
   186   no changes found
   185 #endif
   187 #endif
   186 #if stream-bundle2
   188 #if stream-bundle2
   187   $ hg clone --stream -U http://localhost:$HGPORT clone1
   189   $ hg clone --stream -U http://localhost:$HGPORT clone1
   188   streaming all changes
   190   streaming all changes
   189   1030 files to transfer, 96.5 KB of data
   191   1030 files to transfer, 96.5 KB of data (no-zstd !)
   190   transferred 96.5 KB in * seconds (* */sec) (glob)
   192   transferred 96.5 KB in * seconds (*/sec) (glob) (no-zstd !)
       
   193   1030 files to transfer, 93.6 KB of data (zstd !)
       
   194   transferred 93.6 KB in * seconds (* */sec) (glob) (zstd !)
   191 
   195 
   192   $ ls -1 clone1/.hg/cache
   196   $ ls -1 clone1/.hg/cache
   193   branch2-base
   197   branch2-base
   194   branch2-immutable
   198   branch2-immutable
   195   branch2-served
   199   branch2-served
   209   200 Script output follows
   213   200 Script output follows
   210   content-type: application/mercurial-0.2
   214   content-type: application/mercurial-0.2
   211   
   215   
   212 
   216 
   213   $ f --size --hex --bytes 256 body
   217   $ f --size --hex --bytes 256 body
   214   body: size=112262
   218   body: size=112262 (no-zstd !)
       
   219   body: size=109410 (zstd !)
   215   0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
   220   0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
   216   0010: 7f 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......|
   221   0010: 7f 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......| (no-zstd !)
   217   0020: 05 09 04 0c 44 62 79 74 65 63 6f 75 6e 74 39 38 |....Dbytecount98|
   222   0020: 05 09 04 0c 44 62 79 74 65 63 6f 75 6e 74 39 38 |....Dbytecount98| (no-zstd !)
   218   0030: 37 37 35 66 69 6c 65 63 6f 75 6e 74 31 30 33 30 |775filecount1030|
   223   0030: 37 37 35 66 69 6c 65 63 6f 75 6e 74 31 30 33 30 |775filecount1030| (no-zstd !)
       
   224   0010: 99 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......| (zstd !)
       
   225   0020: 05 09 04 0c 5e 62 79 74 65 63 6f 75 6e 74 39 35 |....^bytecount95| (zstd !)
       
   226   0030: 38 39 37 66 69 6c 65 63 6f 75 6e 74 31 30 33 30 |897filecount1030| (zstd !)
   219   0040: 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 65 |requirementsdote|
   227   0040: 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 65 |requirementsdote|
   220   0050: 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 25 |ncode%2Cfncache%|
   228   0050: 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 25 |ncode%2Cfncache%|
   221   0060: 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 32 |2Cgeneraldelta%2|
   229   0060: 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 32 |2Cgeneraldelta%2|
   222   0070: 43 72 65 76 6c 6f 67 76 31 25 32 43 73 70 61 72 |Crevlogv1%2Cspar|
   230   0070: 43 72 65 76 6c 6f 67 76 31 25 32 43 73 70 61 72 |Crevlogv1%2Cspar| (no-zstd !)
   223   0080: 73 65 72 65 76 6c 6f 67 25 32 43 73 74 6f 72 65 |serevlog%2Cstore|
   231   0080: 73 65 72 65 76 6c 6f 67 25 32 43 73 74 6f 72 65 |serevlog%2Cstore| (no-zstd !)
   224   0090: 00 00 80 00 73 08 42 64 61 74 61 2f 30 2e 69 00 |....s.Bdata/0.i.|
   232   0090: 00 00 80 00 73 08 42 64 61 74 61 2f 30 2e 69 00 |....s.Bdata/0.i.| (no-zstd !)
   225   00a0: 03 00 01 00 00 00 00 00 00 00 02 00 00 00 01 00 |................|
   233   00a0: 03 00 01 00 00 00 00 00 00 00 02 00 00 00 01 00 |................| (no-zstd !)
   226   00b0: 00 00 00 00 00 00 01 ff ff ff ff ff ff ff ff 80 |................|
   234   00b0: 00 00 00 00 00 00 01 ff ff ff ff ff ff ff ff 80 |................| (no-zstd !)
   227   00c0: 29 63 a0 49 d3 23 87 bf ce fe 56 67 92 67 2c 69 |)c.I.#....Vg.g,i|
   235   00c0: 29 63 a0 49 d3 23 87 bf ce fe 56 67 92 67 2c 69 |)c.I.#....Vg.g,i| (no-zstd !)
   228   00d0: d1 ec 39 00 00 00 00 00 00 00 00 00 00 00 00 75 |..9............u|
   236   00d0: d1 ec 39 00 00 00 00 00 00 00 00 00 00 00 00 75 |..9............u| (no-zstd !)
   229   00e0: 30 73 08 42 64 61 74 61 2f 31 2e 69 00 03 00 01 |0s.Bdata/1.i....|
   237   00e0: 30 73 08 42 64 61 74 61 2f 31 2e 69 00 03 00 01 |0s.Bdata/1.i....| (no-zstd !)
   230   00f0: 00 00 00 00 00 00 00 02 00 00 00 01 00 00 00 00 |................|
   238   00f0: 00 00 00 00 00 00 00 02 00 00 00 01 00 00 00 00 |................| (no-zstd !)
       
   239   0070: 43 72 65 76 6c 6f 67 2d 63 6f 6d 70 72 65 73 73 |Crevlog-compress| (zstd !)
       
   240   0080: 69 6f 6e 2d 7a 73 74 64 25 32 43 72 65 76 6c 6f |ion-zstd%2Crevlo| (zstd !)
       
   241   0090: 67 76 31 25 32 43 73 70 61 72 73 65 72 65 76 6c |gv1%2Csparserevl| (zstd !)
       
   242   00a0: 6f 67 25 32 43 73 74 6f 72 65 00 00 80 00 73 08 |og%2Cstore....s.| (zstd !)
       
   243   00b0: 42 64 61 74 61 2f 30 2e 69 00 03 00 01 00 00 00 |Bdata/0.i.......| (zstd !)
       
   244   00c0: 00 00 00 00 02 00 00 00 01 00 00 00 00 00 00 00 |................| (zstd !)
       
   245   00d0: 01 ff ff ff ff ff ff ff ff 80 29 63 a0 49 d3 23 |..........)c.I.#| (zstd !)
       
   246   00e0: 87 bf ce fe 56 67 92 67 2c 69 d1 ec 39 00 00 00 |....Vg.g,i..9...| (zstd !)
       
   247   00f0: 00 00 00 00 00 00 00 00 00 75 30 73 08 42 64 61 |.........u0s.Bda| (zstd !)
   231 
   248 
   232 --uncompressed is an alias to --stream
   249 --uncompressed is an alias to --stream
   233 
   250 
   234 #if stream-legacy
   251 #if stream-legacy
   235   $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed
   252   $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed
   236   streaming all changes
   253   streaming all changes
   237   1027 files to transfer, 96.3 KB of data
   254   1027 files to transfer, 96.3 KB of data (no-zstd !)
   238   transferred 96.3 KB in * seconds (*/sec) (glob)
   255   transferred 96.3 KB in * seconds (*/sec) (glob) (no-zstd !)
       
   256   1027 files to transfer, 93.5 KB of data (zstd !)
       
   257   transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !)
   239   searching for changes
   258   searching for changes
   240   no changes found
   259   no changes found
   241 #endif
   260 #endif
   242 #if stream-bundle2
   261 #if stream-bundle2
   243   $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed
   262   $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed
   244   streaming all changes
   263   streaming all changes
   245   1030 files to transfer, 96.5 KB of data
   264   1030 files to transfer, 96.5 KB of data (no-zstd !)
   246   transferred 96.5 KB in * seconds (* */sec) (glob)
   265   transferred 96.5 KB in * seconds (* */sec) (glob) (no-zstd !)
       
   266   1030 files to transfer, 93.6 KB of data (zstd !)
       
   267   transferred 93.6 KB in * seconds (* */sec) (glob) (zstd !)
   247 #endif
   268 #endif
   248 
   269 
   249 Clone with background file closing enabled
   270 Clone with background file closing enabled
   250 
   271 
   251 #if stream-legacy
   272 #if stream-legacy
   253   using http://localhost:$HGPORT/
   274   using http://localhost:$HGPORT/
   254   sending capabilities command
   275   sending capabilities command
   255   sending branchmap command
   276   sending branchmap command
   256   streaming all changes
   277   streaming all changes
   257   sending stream_out command
   278   sending stream_out command
   258   1027 files to transfer, 96.3 KB of data
   279   1027 files to transfer, 96.3 KB of data (no-zstd !)
       
   280   1027 files to transfer, 93.5 KB of data (zstd !)
   259   starting 4 threads for background file closing
   281   starting 4 threads for background file closing
   260   updating the branch cache
   282   updating the branch cache
   261   transferred 96.3 KB in * seconds (*/sec) (glob)
   283   transferred 96.3 KB in * seconds (*/sec) (glob) (no-zstd !)
       
   284   transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !)
   262   query 1; heads
   285   query 1; heads
   263   sending batch command
   286   sending batch command
   264   searching for changes
   287   searching for changes
   265   all remote heads known locally
   288   all remote heads known locally
   266   no changes found
   289   no changes found
   283   streaming all changes
   306   streaming all changes
   284   sending getbundle command
   307   sending getbundle command
   285   bundle2-input-bundle: with-transaction
   308   bundle2-input-bundle: with-transaction
   286   bundle2-input-part: "stream2" (params: 3 mandatory) supported
   309   bundle2-input-part: "stream2" (params: 3 mandatory) supported
   287   applying stream bundle
   310   applying stream bundle
   288   1030 files to transfer, 96.5 KB of data
   311   1030 files to transfer, 96.5 KB of data (no-zstd !)
       
   312   1030 files to transfer, 93.6 KB of data (zstd !)
   289   starting 4 threads for background file closing
   313   starting 4 threads for background file closing
   290   starting 4 threads for background file closing
   314   starting 4 threads for background file closing
   291   updating the branch cache
   315   updating the branch cache
   292   transferred 96.5 KB in * seconds (* */sec) (glob)
   316   transferred 96.5 KB in * seconds (* */sec) (glob) (no-zstd !)
   293   bundle2-input-part: total payload size 112094
   317   bundle2-input-part: total payload size 112094 (no-zstd !)
       
   318   transferred 93.6 KB in * seconds (* */sec) (glob) (zstd !)
       
   319   bundle2-input-part: total payload size 109216 (zstd !)
   294   bundle2-input-part: "listkeys" (params: 1 mandatory) supported
   320   bundle2-input-part: "listkeys" (params: 1 mandatory) supported
   295   bundle2-input-bundle: 2 parts total
   321   bundle2-input-bundle: 2 parts total
   296   checking for updated bookmarks
   322   checking for updated bookmarks
   297   updating the branch cache
   323   updating the branch cache
   298   (sent 3 HTTP requests and * bytes; received * bytes in responses) (glob)
   324   (sent 3 HTTP requests and * bytes; received * bytes in responses) (glob)
   320   $ cd ..
   346   $ cd ..
   321 
   347 
   322 #if stream-legacy
   348 #if stream-legacy
   323   $ hg clone --stream -U http://localhost:$HGPORT secret-allowed
   349   $ hg clone --stream -U http://localhost:$HGPORT secret-allowed
   324   streaming all changes
   350   streaming all changes
   325   1027 files to transfer, 96.3 KB of data
   351   1027 files to transfer, 96.3 KB of data (no-zstd !)
   326   transferred 96.3 KB in * seconds (*/sec) (glob)
   352   transferred 96.3 KB in * seconds (*/sec) (glob) (no-zstd !)
       
   353   1027 files to transfer, 93.5 KB of data (zstd !)
       
   354   transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !)
   327   searching for changes
   355   searching for changes
   328   no changes found
   356   no changes found
   329 #endif
   357 #endif
   330 #if stream-bundle2
   358 #if stream-bundle2
   331   $ hg clone --stream -U http://localhost:$HGPORT secret-allowed
   359   $ hg clone --stream -U http://localhost:$HGPORT secret-allowed
   332   streaming all changes
   360   streaming all changes
   333   1030 files to transfer, 96.5 KB of data
   361   1030 files to transfer, 96.5 KB of data (no-zstd !)
   334   transferred 96.5 KB in * seconds (* */sec) (glob)
   362   transferred 96.5 KB in * seconds (* */sec) (glob) (no-zstd !)
       
   363   1030 files to transfer, 93.6 KB of data (zstd !)
       
   364   transferred 93.6 KB in * seconds (* */sec) (glob) (zstd !)
   335 #endif
   365 #endif
   336 
   366 
   337   $ killdaemons.py
   367   $ killdaemons.py
   338 
   368 
   339 Verify interaction between preferuncompressed and secret presence
   369 Verify interaction between preferuncompressed and secret presence
   435 clone it
   465 clone it
   436 
   466 
   437 #if stream-legacy
   467 #if stream-legacy
   438   $ hg clone --stream http://localhost:$HGPORT with-bookmarks
   468   $ hg clone --stream http://localhost:$HGPORT with-bookmarks
   439   streaming all changes
   469   streaming all changes
   440   1027 files to transfer, 96.3 KB of data
   470   1027 files to transfer, 96.3 KB of data (no-zstd !)
   441   transferred 96.3 KB in * seconds (*) (glob)
   471   transferred 96.3 KB in * seconds (*) (glob) (no-zstd !)
       
   472   1027 files to transfer, 93.5 KB of data (zstd !)
       
   473   transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !)
   442   searching for changes
   474   searching for changes
   443   no changes found
   475   no changes found
   444   updating to branch default
   476   updating to branch default
   445   1025 files updated, 0 files merged, 0 files removed, 0 files unresolved
   477   1025 files updated, 0 files merged, 0 files removed, 0 files unresolved
   446 #endif
   478 #endif
   447 #if stream-bundle2
   479 #if stream-bundle2
   448   $ hg clone --stream http://localhost:$HGPORT with-bookmarks
   480   $ hg clone --stream http://localhost:$HGPORT with-bookmarks
   449   streaming all changes
   481   streaming all changes
   450   1033 files to transfer, 96.6 KB of data
   482   1033 files to transfer, 96.6 KB of data (no-zstd !)
   451   transferred 96.6 KB in * seconds (* */sec) (glob)
   483   transferred 96.6 KB in * seconds (* */sec) (glob) (no-zstd !)
       
   484   1033 files to transfer, 93.8 KB of data (zstd !)
       
   485   transferred 93.8 KB in * seconds (* */sec) (glob) (zstd !)
   452   updating to branch default
   486   updating to branch default
   453   1025 files updated, 0 files merged, 0 files removed, 0 files unresolved
   487   1025 files updated, 0 files merged, 0 files removed, 0 files unresolved
   454 #endif
   488 #endif
   455   $ hg -R with-bookmarks bookmarks
   489   $ hg -R with-bookmarks bookmarks
   456      some-bookmark             1:c17445101a72
   490      some-bookmark             1:c17445101a72
   465   1: draft
   499   1: draft
   466 
   500 
   467 #if stream-legacy
   501 #if stream-legacy
   468   $ hg clone --stream http://localhost:$HGPORT phase-publish
   502   $ hg clone --stream http://localhost:$HGPORT phase-publish
   469   streaming all changes
   503   streaming all changes
   470   1027 files to transfer, 96.3 KB of data
   504   1027 files to transfer, 96.3 KB of data (no-zstd !)
   471   transferred 96.3 KB in * seconds (*) (glob)
   505   transferred 96.3 KB in * seconds (*) (glob) (no-zstd !)
       
   506   1027 files to transfer, 93.5 KB of data (zstd !)
       
   507   transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !)
   472   searching for changes
   508   searching for changes
   473   no changes found
   509   no changes found
   474   updating to branch default
   510   updating to branch default
   475   1025 files updated, 0 files merged, 0 files removed, 0 files unresolved
   511   1025 files updated, 0 files merged, 0 files removed, 0 files unresolved
   476 #endif
   512 #endif
   477 #if stream-bundle2
   513 #if stream-bundle2
   478   $ hg clone --stream http://localhost:$HGPORT phase-publish
   514   $ hg clone --stream http://localhost:$HGPORT phase-publish
   479   streaming all changes
   515   streaming all changes
   480   1033 files to transfer, 96.6 KB of data
   516   1033 files to transfer, 96.6 KB of data (no-zstd !)
   481   transferred 96.6 KB in * seconds (* */sec) (glob)
   517   transferred 96.6 KB in * seconds (* */sec) (glob) (no-zstd !)
       
   518   1033 files to transfer, 93.8 KB of data (zstd !)
       
   519   transferred 93.8 KB in * seconds (* */sec) (glob) (zstd !)
   482   updating to branch default
   520   updating to branch default
   483   1025 files updated, 0 files merged, 0 files removed, 0 files unresolved
   521   1025 files updated, 0 files merged, 0 files removed, 0 files unresolved
   484 #endif
   522 #endif
   485   $ hg -R phase-publish phase -r 'all()'
   523   $ hg -R phase-publish phase -r 'all()'
   486   0: public
   524   0: public
   501 With v1 of the stream protocol, changeset are always cloned as public. It make
   539 With v1 of the stream protocol, changeset are always cloned as public. It make
   502 stream v1 unsuitable for non-publishing repository.
   540 stream v1 unsuitable for non-publishing repository.
   503 
   541 
   504   $ hg clone --stream http://localhost:$HGPORT phase-no-publish
   542   $ hg clone --stream http://localhost:$HGPORT phase-no-publish
   505   streaming all changes
   543   streaming all changes
   506   1027 files to transfer, 96.3 KB of data
   544   1027 files to transfer, 96.3 KB of data (no-zstd !)
   507   transferred 96.3 KB in * seconds (*) (glob)
   545   transferred 96.3 KB in * seconds (* */sec) (glob) (no-zstd !)
       
   546   1027 files to transfer, 93.5 KB of data (zstd !)
       
   547   transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !)
   508   searching for changes
   548   searching for changes
   509   no changes found
   549   no changes found
   510   updating to branch default
   550   updating to branch default
   511   1025 files updated, 0 files merged, 0 files removed, 0 files unresolved
   551   1025 files updated, 0 files merged, 0 files removed, 0 files unresolved
   512   $ hg -R phase-no-publish phase -r 'all()'
   552   $ hg -R phase-no-publish phase -r 'all()'
   514   1: public
   554   1: public
   515 #endif
   555 #endif
   516 #if stream-bundle2
   556 #if stream-bundle2
   517   $ hg clone --stream http://localhost:$HGPORT phase-no-publish
   557   $ hg clone --stream http://localhost:$HGPORT phase-no-publish
   518   streaming all changes
   558   streaming all changes
   519   1034 files to transfer, 96.7 KB of data
   559   1034 files to transfer, 96.7 KB of data (no-zstd !)
   520   transferred 96.7 KB in * seconds (* */sec) (glob)
   560   transferred 96.7 KB in * seconds (* */sec) (glob) (no-zstd !)
       
   561   1034 files to transfer, 93.9 KB of data (zstd !)
       
   562   transferred 93.9 KB in * seconds (* */sec) (glob) (zstd !)
   521   updating to branch default
   563   updating to branch default
   522   1025 files updated, 0 files merged, 0 files removed, 0 files unresolved
   564   1025 files updated, 0 files merged, 0 files removed, 0 files unresolved
   523   $ hg -R phase-no-publish phase -r 'all()'
   565   $ hg -R phase-no-publish phase -r 'all()'
   524   0: draft
   566   0: draft
   525   1: draft
   567   1: draft
   559   $ cat hg.pid > $DAEMON_PIDS
   601   $ cat hg.pid > $DAEMON_PIDS
   560   $ cd ..
   602   $ cd ..
   561 
   603 
   562   $ hg clone -U --stream http://localhost:$HGPORT with-obsolescence
   604   $ hg clone -U --stream http://localhost:$HGPORT with-obsolescence
   563   streaming all changes
   605   streaming all changes
   564   1035 files to transfer, 97.1 KB of data
   606   1035 files to transfer, 97.1 KB of data (no-zstd !)
   565   transferred 97.1 KB in * seconds (* */sec) (glob)
   607   transferred 97.1 KB in * seconds (* */sec) (glob) (no-zstd !)
       
   608   1035 files to transfer, 94.3 KB of data (zstd !)
       
   609   transferred 94.3 KB in * seconds (* */sec) (glob) (zstd !)
   566   $ hg -R with-obsolescence log -T '{rev}: {phase}\n'
   610   $ hg -R with-obsolescence log -T '{rev}: {phase}\n'
   567   1: draft
   611   1: draft
   568   0: draft
   612   0: draft
   569   $ hg debugobsolete -R with-obsolescence
   613   $ hg debugobsolete -R with-obsolescence
   570   50382b884f66690b7045cac93a540cba4d4c906f 0 {c17445101a72edac06facd130d14808dfbd5c7c2} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
   614   50382b884f66690b7045cac93a540cba4d4c906f 0 {c17445101a72edac06facd130d14808dfbd5c7c2} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}