Mercurial > public > mercurial-scm > hg-stable
diff hgext/fix.py @ 41129:d8f5c615e811
tests: use more portable flags in test-fix.t
`head --lines N` is known to not exist on OSX.
Differential Revision: https://phab.mercurial-scm.org/D5517
author | Danny Hooper <hooper@google.com> |
---|---|
date | Mon, 07 Jan 2019 15:25:41 -0800 |
parents | ad71c792a8d8 |
children | c3a249c2b6b3 |
line wrap: on
line diff
--- a/hgext/fix.py Mon Jan 07 21:43:06 2019 +0900 +++ b/hgext/fix.py Mon Jan 07 15:25:41 2019 -0800 @@ -62,8 +62,8 @@ in a text file by ensuring that 'sort' runs before 'head':: [fix] - sort:command = sort --numeric-sort - head:command = head --lines=10 + sort:command = sort -n + head:command = head -n 10 sort:pattern = numbers.txt head:pattern = numbers.txt sort:priority = 2