Patchwork [4,of,6,remotenames-ext] tests: write to local hgrc

login
register
mail settings
Submitter Stanislau Hlebik
Date Jan. 30, 2017, 3:56 p.m.
Message ID <25d873eac976b58ac99d.1485791762@devvm1840.lla2.facebook.com>
Download mbox | patch
Permalink /patch/18279/
State Accepted
Headers show

Comments

Stanislau Hlebik - Jan. 30, 2017, 3:56 p.m.
# HG changeset patch
# User Stanislau Hlebik <stash@fb.com>
# Date 1485791649 28800
#      Mon Jan 30 07:54:09 2017 -0800
# Node ID 25d873eac976b58ac99dabb3f0e62814bb2aa2f8
# Parent  3e17b130293b0c65918041ad4e51a32a909e4f48
tests: write to local hgrc

A future test will need to run without selective pull enabled, so let’s not
set the global config

Patch

diff --git a/tests/test-selective-pull.t b/tests/test-selective-pull.t
--- a/tests/test-selective-pull.t
+++ b/tests/test-selective-pull.t
@@ -29,7 +29,7 @@ 
      default/master            0:1449e7934ec1
 
 Set up selective pull
-  $ cat >> $HGRCPATH << EOF
+  $ cat >> .hg/hgrc << EOF
   > [remotenames]
   > selectivepull=True
   > selectivepulldefault=master