Patchwork [1,of,2,(minor,debug,output,change)] ssh: test some no-op pull through ssh with --debug

login
register
mail settings
Submitter Pierre-Yves David
Date May 29, 2015, 7:22 a.m.
Message ID <ecb37d01e8e622d29dae.1432884171@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/9354/
State Accepted
Headers show

Comments

Pierre-Yves David - May 29, 2015, 7:22 a.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@fb.com>
# Date 1432883376 25200
#      Fri May 29 00:09:36 2015 -0700
# Node ID ecb37d01e8e622d29daef4df1fccda9d85c521aa
# Parent  a4acf019dd5b72e91a1b1321d80d298033be8111
ssh: test some no-op pull through ssh with --debug

It appears that we are never running any wireprotocol operation with a --debug
flag. So we are adding some basic testing into 'test-ssh.t'

Patch

diff --git a/tests/test-ssh.t b/tests/test-ssh.t
--- a/tests/test-ssh.t
+++ b/tests/test-ssh.t
@@ -443,10 +443,33 @@  stderr from remote commands should be pr
   remote: adding file changes
   remote: added 1 changesets with 1 changes to 1 files
   remote: KABOOM
   local stdout
 
+debug output
+
+  $ hg pull --debug ssh://user@dummy/remote
+  pulling from ssh://user@dummy/remote
+  running python "*/dummyssh" user@dummy 'hg -R remote serve --stdio' (glob)
+  sending hello command
+  sending between command
+  remote: 271
+  remote: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024
+  remote: 1
+  preparing listkeys for "bookmarks"
+  sending listkeys command
+  preparing listkeys for "bookmarks"
+  sending listkeys command
+  query 1; heads
+  sending batch command
+  searching for changes
+  all remote heads known locally
+  no changes found
+  preparing listkeys for "phases"
+  sending listkeys command
+  checking for updated bookmarks
+
   $ cd ..
 
   $ cat dummylog
   Got arguments 1:user@dummy 2:hg -R nonexistent serve --stdio
   Got arguments 1:user@dummy 2:hg -R /$TESTTMP/nonexistent serve --stdio
@@ -476,5 +499,6 @@  stderr from remote commands should be pr
   Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio
   Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio
   Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio
   Got arguments 1:user@dummy 2:hg -R remote serve --stdio
   changegroup-in-remote hook: HG_NODE=65c38f4125f9602c8db4af56530cc221d93b8ef8 HG_SOURCE=serve HG_TXNID=TXN:* HG_URL=remote:ssh:127.0.0.1 (glob)
+  Got arguments 1:user@dummy 2:hg -R remote serve --stdio