tests/test-import-merge.t
changeset 19628 3193b23eec61
parent 18656 8eb3408bf005
child 20303 3a3731a60354
--- a/tests/test-import-merge.t	Fri Aug 23 16:05:38 2013 -0700
+++ b/tests/test-import-merge.t	Mon Aug 26 15:20:44 2013 -0700
@@ -129,7 +129,9 @@
   $ echo a>>a
   $ hg ci -m3
   $ hg export 2 | head -7 > ../a.patch
-  $ hg export tip | tail -n +8 >> ../a.patch
+  $ hg export tip > out
+  >>> apatch = open("../a.patch", "a")
+  >>> apatch.write("".join(open("out").readlines()[7:]))
 
   $ cd ..
   $ hg clone -qr0 repo3 repo3-clone