diff tests/test-generaldelta.t @ 26423:c93f91c1db1c

strip: use bundle2 + cg2 by default when repository use general delta The bundle10 format (plain changegroup-01) does not support general delta and result into expensive delta re-computation when stripping. If the repository is general delta, we store backups as bundle20 containing a changegroup-02 payload. We remove the experimental feature related to strip backup bundle format because this achieve the same goal in a leaner way. Removing the experimental option is fine, that is why it experimental in the first place. Compression of these bundles are coming in later changesets.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 29 Sep 2015 13:16:51 -0700
parents 049005de325e
children eb21b6679dc6
line wrap: on
line diff
--- a/tests/test-generaldelta.t	Wed Sep 30 16:01:19 2015 -0400
+++ b/tests/test-generaldelta.t	Tue Sep 29 13:16:51 2015 -0700
@@ -102,4 +102,13 @@
        1        59      59     -1       1 315c023f341d 000000000000 000000000000
        2       118      62      0       2 2ab389a983eb 315c023f341d 8dde941edb6e
 
+Test that strip bundle use bundle2
+  $ hg --config extensions.strip= strip .
+  0 files updated, 0 files merged, 5 files removed, 0 files unresolved
+  saved backup bundle to $TESTTMP/aggressive/.hg/strip-backup/1c5d4dc9a8b8-6c68e60c-backup.hg (glob)
+  $ hg debugbundle .hg/strip-backup/*
+  Stream params: {}
+  changegroup -- "{'version': '02'}"
+      1c5d4dc9a8b8d6e1750966d343e94db665e7a1e9
+
   $ cd ..