tests/test-hardlinks.t
changeset 16918 b112e265b78a
parent 16913 f2719b387380
child 16971 8aeb2f1ae94c
--- 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