[PATCH 5 of 9 remotefilelog-ext getfile-http] test-push-pull: while it's convenient, verify remotefilelog capability

Augie Fackler raf at durin42.com
Wed Jul 1 15:05:42 CDT 2015


# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1435615800 14400
#      Mon Jun 29 18:10:00 2015 -0400
# Node ID 9527b11d57224af70ffa4569db04e8d93bde4555
# Parent  c0c90f99906f1ae583b1c717228f6d3235af072d
test-push-pull: while it's convenient, verify remotefilelog capability

Since this test is operating over "ssh", we should see the
remotefilelog capability here.

diff --git a/tests/test-push-pull.t b/tests/test-push-pull.t
--- a/tests/test-push-pull.t
+++ b/tests/test-push-pull.t
@@ -15,9 +15,19 @@
   1 files fetched over 1 fetches - (1 misses, 0.00% hit ratio) over *s (glob)
   $ hgcloneshallow ssh://user@dummy/master shallow2 -q
 
+We should see the remotefilelog capability here, which advertises that
+the server supports our custom getfiles method.
+
+  $ cd master
+  $ echo 'hello' | hg serve --stdio
+  * (glob)
+  capabilities: * remotefilelog (glob)
+  $ echo 'capabilities' | hg serve --stdio ; echo
+  * (glob)
+  * remotefilelog (glob)
+
 # pull to shallow from full
 
-  $ cd master
   $ echo y > y
   $ hg commit -qAm y
 


More information about the Mercurial-devel mailing list