[PATCH 1 of 2] tests: allow bz2 archives in test-hgweb-json.t

Anton Shestakov av6 at dwimlabs.net
Fri Jul 1 02:35:05 EDT 2016


# HG changeset patch
# User Anton Shestakov <av6 at dwimlabs.net>
# Date 1467351419 -28800
#      Fri Jul 01 13:36:59 2016 +0800
# Node ID 320ebd166cd77ccd74aa0038a2a342888dbd4670
# Parent  5b71a8d7f7ffc2662ceb58ad8eec806e147ae13d
tests: allow bz2 archives in test-hgweb-json.t

Only testing a specific type because list items seem to be in arbitrary order.

diff --git a/tests/test-hgweb-json.t b/tests/test-hgweb-json.t
--- a/tests/test-hgweb-json.t
+++ b/tests/test-hgweb-json.t
@@ -100,6 +100,8 @@
      summary:     initial
   
 
+  $ echo '[web]' >> .hg/hgrc
+  $ echo 'allow_archive = bz2' >> .hg/hgrc
   $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E error.log
   $ cat hg.pid >> $DAEMON_PIDS
 
@@ -800,7 +802,13 @@ summary/ shows a summary of repository s
   200 Script output follows
   
   {
-    "archives": [],
+    "archives": [
+      {
+        "extension": ".tar.bz2",
+        "node": "tip",
+        "type": "bz2"
+      }
+    ],
     "bookmarks": [
       {
         "bookmark": "bookmark2",


More information about the Mercurial-devel mailing list