tests/test-fix.t
changeset 42653 9ed63cd0026c
parent 42363 b02f3aa2fab5
child 42654 22c4bd7d1cbf
equal deleted inserted replaced
42652:684b56ade431 42653:9ed63cd0026c
  1159   FOO1
  1159   FOO1
  1160   FOO2
  1160   FOO2
  1161 
  1161 
  1162   $ cd ..
  1162   $ cd ..
  1163 
  1163 
  1164 The :fileset subconfig was a misnomer, so we renamed it to :pattern. We will
       
  1165 still accept :fileset by itself as if it were :pattern, but this will issue a
       
  1166 warning.
       
  1167 
       
  1168   $ hg init filesetispattern
       
  1169   $ cd filesetispattern
       
  1170 
       
  1171   $ printf "foo\n" > foo.whole
       
  1172   $ printf "first\nsecond\n" > bar.txt
       
  1173   $ hg add -q
       
  1174   $ hg fix -w --config fix.sometool:fileset=bar.txt \
       
  1175   >           --config fix.sometool:command="sort -r"
       
  1176   the fix.tool:fileset config name is deprecated; please rename it to fix.tool:pattern
       
  1177 
       
  1178   $ cat foo.whole
       
  1179   FOO
       
  1180   $ cat bar.txt
       
  1181   second
       
  1182   first
       
  1183 
       
  1184   $ cd ..
       
  1185 
       
  1186 The execution order of tools can be controlled. This example doesn't work if
  1164 The execution order of tools can be controlled. This example doesn't work if
  1187 you sort after truncating, but the config defines the correct order while the
  1165 you sort after truncating, but the config defines the correct order while the
  1188 definitions are out of order (which might imply the incorrect order given the
  1166 definitions are out of order (which might imply the incorrect order given the
  1189 implementation of fix). The goal is to use multiple tools to select the lowest
  1167 implementation of fix). The goal is to use multiple tools to select the lowest
  1190 5 numbers in the file.
  1168 5 numbers in the file.