[PATCH 06 of 10] tests: update test-hardlinks to pass our import checker
Augie Fackler
raf at durin42.com
Mon Aug 28 10:41:59 EDT 2017
# HG changeset patch
# User Augie Fackler <raf at durin42.com>
# Date 1503431484 14400
# Tue Aug 22 15:51:24 2017 -0400
# Node ID 31aa4a34ea4eb6578c7dd7bf3628909f415d3b4a
# Parent d628faa82545e767f56850398b77500a7d576d12
tests: update test-hardlinks to pass our import checker
diff --git a/tests/test-hardlinks.t b/tests/test-hardlinks.t
--- a/tests/test-hardlinks.t
+++ b/tests/test-hardlinks.t
@@ -17,8 +17,9 @@
Some implementations of cp can't create hardlinks (replaces 'cp -al' on Linux):
$ cat > linkcp.py <<EOF
+ > from __future__ import absolute_import
+ > import sys
> from mercurial import util
- > import sys
> util.copyfiles(sys.argv[1], sys.argv[2], hardlink=True)
> EOF
More information about the Mercurial-devel
mailing list