Patchwork D6849: tests: move a config write to top of file since it applies to all tests

login
register
mail settings
Submitter phabricator
Date Sept. 14, 2019, 3:34 p.m.
Message ID <0278f998a9eba66af6899fd8f728943c@localhost.localdomain>
Download mbox | patch
Permalink /patch/41667/
State Not Applicable
Headers show

Comments

phabricator - Sept. 14, 2019, 3:34 p.m.
Closed by commit rHG0b81fd0aa2a1: tests: move a config write to top of file since it applies to all tests (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6849?vs=16535&id=16540

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6849/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D6849

AFFECTED FILES
  tests/test-narrow.t

CHANGE DETAILS




To: martinvonz, durin42, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/tests/test-narrow.t b/tests/test-narrow.t
--- a/tests/test-narrow.t
+++ b/tests/test-narrow.t
@@ -1,6 +1,11 @@ 
 #testcases flat tree
 #testcases lfs-on lfs-off
 
+  $ cat >> $HGRCPATH << EOF
+  > [experimental]
+  > evolution=createmarkers
+  > EOF
+
 #if lfs-on
   $ cat >> $HGRCPATH <<EOF
   > [extensions]
@@ -77,10 +82,6 @@ 
   updating to branch default
   3 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd narrow-local-changes
-  $ cat >> $HGRCPATH << EOF
-  > [experimental]
-  > evolution=createmarkers
-  > EOF
   $ echo local change >> d0/f
   $ hg ci -m 'local change to d0'
   $ hg co '.^'