diff tests/test-export @ 7319:eae1767cc6a8

export: fixed silent output file overwriting hg export -o outfile 1 2 3 4 had the same effect as hg -o outfile 4 This was caused by opening with 'w' instead of 'a'. This only occurs when the filename pattern resulted in ambiguous patch filenames.
author Ronny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>
date Thu, 06 Nov 2008 11:17:38 +0100
parents 504dee0abeac
children f711b8e0d2b3
line wrap: on
line diff
--- a/tests/test-export	Thu Nov 06 10:39:52 2008 +0100
+++ b/tests/test-export	Thu Nov 06 11:17:38 2008 +0100
@@ -13,3 +13,9 @@
     echo "# foo-$out.patch"
     hg export -v -o "foo-$out.patch" 2:tip
 done
+
+echo "# exporting 4 changesets to a file"
+hg export -o export_internal 1 2 3 4
+grep HG export_internal | wc -l
+echo "# exporting 4 changesets to a file"
+hg export 1 2 3 4 | grep HG | wc -l