Patchwork D5517: tests: use more portable flags in test-fix.t

login
register
mail settings
Submitter phabricator
Date Jan. 7, 2019, 11:59 p.m.
Message ID <bcc93c58633926c377983e606d43ae83@localhost.localdomain>
Download mbox | patch
Permalink /patch/37553/
State Not Applicable
Headers show

Comments

phabricator - Jan. 7, 2019, 11:59 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd8f5c615e811: tests: use more portable flags in test-fix.t (authored by hooper, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5517?vs=13064&id=13072

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

AFFECTED FILES
  hgext/fix.py
  tests/test-fix.t

CHANGE DETAILS




To: hooper, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-fix.t b/tests/test-fix.t
--- a/tests/test-fix.t
+++ b/tests/test-fix.t
@@ -173,8 +173,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
@@ -1159,10 +1159,10 @@ 
 
   $ cat >> .hg/hgrc <<EOF
   > [fix]
-  > head:command = head --lines=5
+  > head:command = head -n 5
   > head:pattern = numbers.txt
   > head:priority = 1
-  > sort:command = sort --numeric-sort
+  > sort:command = sort -n
   > sort:pattern = numbers.txt
   > sort:priority = 2
   > EOF
diff --git a/hgext/fix.py b/hgext/fix.py
--- a/hgext/fix.py
+++ b/hgext/fix.py
@@ -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