changeset 38025:7465b908d305

tests: clone the repo over ssh in tests/test-logexchange.t Cloning a local repo in tests, and normally too does not perform the actual clone, rather it copies the file contents. This makes remotenames information not being transferred. Let's clone over ssh so that we can test remotenames correctly. Differential Revision: https://phab.mercurial-scm.org/D3519
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 29 Apr 2018 22:42:54 +0530
parents bbdc1bc56e58
children b9e6b71dc272
files tests/test-logexchange.t
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-logexchange.t	Sun Apr 29 22:39:45 2018 +0530
+++ b/tests/test-logexchange.t	Sun Apr 29 22:42:54 2018 +0530
@@ -2,6 +2,8 @@
 =============================================
 
   $ cat >> $HGRCPATH << EOF
+  > [ui]
+  > ssh = $PYTHON "$TESTDIR/dummyssh"
   > [alias]
   > glog = log -G -T '{rev}:{node|short}  {desc}'
   > [experimental]
@@ -52,7 +54,13 @@
 
   $ cd ..
 
-  $ hg clone server client
+  $ hg clone ssh://user@dummy/server client
+  requesting all changes
+  adding changesets
+  adding manifests
+  adding file changes
+  added 9 changesets with 9 changes to 9 files (+1 heads)
+  new changesets 18d04c59bb5d:3e1487808078
   updating to branch default
   8 files updated, 0 files merged, 0 files removed, 0 files unresolved