[PATCH V2] tests: replace seq with seq.py for OS X support
mpm at selenic.com
Tue Mar 17 15:47:54 CDT 2015
On Tue, 2015-03-17 at 15:14 -0400, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <mharbison at attotech.com>
> # Date 1426618937 14400
> # Tue Mar 17 15:02:17 2015 -0400
> # Node ID 8d21c9f9a051a485878e42185c203383e5688a39
> # Parent b7f936f47f2b104a60840bae571e009742126afc
> tests: replace seq with seq.py for OS X support
> 10.6.8 doesn't have it, while 10.10 does. I'm not sure when it was added.
This isn't all the users of seq?
This is kind of amazing: all these instances of seq have crept in in the
past year, and somehow we'd never tried to use it in the past:
~/hg/tests$ hg grep -a "seq " .
tests/test-censor.t:27130: $ for x in `seq 0 50000`
tests/test-commit-interactive-curses.t:27125: $ seq 1 10 > b
tests/test-tools.t:26482: $ seq 10 > bar
tests/test-setdiscovery.t:26262: $ for i in `seq 101`; do hg -R r1 up -qr null && hg -R r1 branch -q b$i && hg -R r1 ci -qmb$i; done
tests/test-setdiscovery.t:26262: $ for i in `seq 10`; do hg -R r1 up -qr null && hg -R r1 branch -q c$i && hg -R r1 ci -qmc$i; done
tests/test-push-warn.t:26124: $ for i in `seq 3`; do hg -R h up -q 0; echo $i > h/b; hg -R h ci -qAm$i; done
tests/test-ancestor.py:25428: seq = 
Anyway, I don't know that we want to cut-n-paste seq.py into N scripts.
We also need a check-code rule to keep from adding more instances.
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel