Mercurial > hg
changeset 16918:b112e265b78a
test-hardlinks: enable for Windows
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Mon, 11 Jun 2012 19:57:25 +0200 |
parents | bebe376b938f |
children | 4dd036977463 |
files | tests/test-hardlinks.t |
diffstat | 1 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-hardlinks.t Mon Jun 11 19:18:36 2012 +0200 +++ b/tests/test-hardlinks.t Mon Jun 11 19:57:25 2012 +0200 @@ -1,10 +1,9 @@ - $ "$TESTDIR/hghave" no-windows || exit 80 - $ cat > nlinks.py <<EOF - > import os, sys + > import sys + > from mercurial import util > for f in sorted(sys.stdin.readlines()): > f = f[:-1] - > print os.lstat(f).st_nlink, f + > print util.nlinks(f), f > EOF $ nlinksdir() @@ -104,7 +103,10 @@ Create a non-inlined filelog in r3: $ cd r3/d1 - $ python -c 'for x in range(10000): print x' >> data1 + >>> f = open('data1', 'wb') + >>> for x in range(10000): + ... f.write("%s\n" % str(x)) + >>> f.close() $ for j in 0 1 2 3 4 5 6 7 8 9; do > cat data1 >> f2 > hg commit -m$j @@ -133,7 +135,7 @@ $ cd r3 $ hg push - pushing to $TESTTMP/r1 + pushing to $TESTTMP/r1 (glob) searching for changes adding changesets adding manifests