[PATCH 3 of 5 mainline] test: use general delta in 'test-hgweb-command.t'

Pierre-Yves David pierre-yves.david at ens-lyon.org
Thu Nov 12 13:29:39 CST 2015


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at fb.com>
# Date 1445336751 -7200
#      Tue Oct 20 12:25:51 2015 +0200
# Node ID 86bb07c82ec6fd5e7db4c0ff556bb56d0007a7fb
# Parent  f994867ca545ad8589297fb2d934e6506c70911a
# EXP-Topic generaldelta
# Available At http://hg.netv6.net/marmoute-wip/mercurial/
#              hg pull http://hg.netv6.net/marmoute-wip/mercurial/ -r 86bb07c82ec6
test: use general delta in 'test-hgweb-command.t'

Using general delta have a meaningless impact on the capabilities string.

diff --git a/tests/test-hgweb-commands.t b/tests/test-hgweb-commands.t
--- a/tests/test-hgweb-commands.t
+++ b/tests/test-hgweb-commands.t
@@ -4,10 +4,15 @@ An attempt at more fully testing the hgw
 The following things are tested elsewhere and are therefore omitted:
 - archive, tested in test-archive
 - unbundle, tested in test-push-http
 - changegroupsubset, tested in test-pull
 
+  $ cat << EOF >> $HGRCPATH
+  > [format]
+  > usegeneraldelta=yes
+  > EOF
+
 Set up the repo
 
   $ hg init test
   $ cd test
   $ mkdir da
@@ -2120,11 +2125,11 @@ capabilities
   known
   getbundle
   unbundlehash
   batch
   stream-preferred
-  stream
+  streamreqs=generaldelta,revlogv1
   bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps
   unbundle=HG10GZ,HG10BZ,HG10UN
   httpheader=1024
 
 heads


More information about the Mercurial-devel mailing list