diff tests/test-fix.t @ 43227:f02d3c0eed18

fix: match patterns relative to root I was surprised fixer patterns (used to determine which fixers to run) are applies to the parent directory, not the repo root directory. Danny Hooper (the author of the extension) seemed to agree that it's better to apply them to the repo root, so that's what this patch does. Differential Revision: https://phab.mercurial-scm.org/D7101
author Martin von Zweigbergk <martinvonz@google.com>
date Sat, 12 Oct 2019 11:30:25 -0700
parents 5272bd7e7517
children 699d6be3820a 61881b170140
line wrap: on
line diff
--- a/tests/test-fix.t	Sat Oct 12 11:30:20 2019 -0700
+++ b/tests/test-fix.t	Sat Oct 12 11:30:25 2019 -0700
@@ -157,8 +157,10 @@
   :skipclean suboption to false.
   
   The :pattern suboption determines which files will be passed through each
-  configured tool. See 'hg help patterns' for possible values. If there are file
-  arguments to 'hg fix', the intersection of these patterns is used.
+  configured tool. See 'hg help patterns' for possible values. However, all
+  patterns are relative to the repo root, even if that text says they are
+  relative to the current working directory. If there are file arguments to 'hg
+  fix', the intersection of these patterns is used.
   
   There is also a configurable limit for the maximum size of file that will be
   processed by 'hg fix':
@@ -1321,7 +1323,7 @@
   $ echo modified > bar
   $ hg fix -w bar
   $ cat bar
-  modified
+  $TESTTMP/subprocesscwd
 
   $ cd ../..