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

login
register
mail settings
Submitter Augie Fackler
Date July 1, 2015, 8:05 p.m.
Message ID <9527b11d57224af70ffa.1435781142@arthedain.pit.corp.google.com>
Download mbox | patch
Permalink /patch/9855/
State Not Applicable
Headers show

Comments

Augie Fackler - July 1, 2015, 8:05 p.m.
# HG changeset patch
# User Augie Fackler <augie@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.

Patch

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