diff tests/test-fastimport-nonascii @ 47:7ff36dc9f0b1

Massive rework to use infrastructure provided by convert extension. fastimport no longer stages changes in the repository's working copy; instead, it now works like any other convert source: the imported history is kept in memory (except for file contents) and then processed by the 'convert' extension.
author Greg Ward <greg-hg@gerg.ca>
date Sat, 16 May 2009 12:57:22 -0400
parents 3048a2dcf68a
children
line wrap: on
line diff
--- a/tests/test-fastimport-nonascii	Sun May 10 14:16:02 2009 -0400
+++ b/tests/test-fastimport-nonascii	Sat May 16 12:57:22 2009 -0400
@@ -17,13 +17,18 @@
 
 __EOF__
 
+# N.B. it's import to run fastimport without overriding HGENCODING,
+# because we need to be sure that UTF-8 metadata is correctly converted
+# even when the default encoding is ASCII.  The catch is that the
+# converted commit messages will be mangled as they are printed to
+# stdout.  That's OK.  The real test is when we run hg log, and there we
+# set HGENCODING to ensure that hg accurately prints what's in the
+# repository.
+
 hg init committer
 cd committer
 hg --traceback fastimport ../committer.dump
 echo "% log with non-ASCII committer"
-
-# Overide HGENCODING (it is set to 'ascii' by run-tests.py) to ensure
-# log is accurately printed.
 HGENCODING=utf-8 hg log
 cd ..
 
@@ -62,7 +67,7 @@
 
 hg init message
 cd message
-hg --traceback fastimport ../message.dump
+hg --traceback fastimport ../message.dump | sed "s|$HGTMP|HGTMP|g"
 echo "% log with non-ASCII message"
 HGENCODING=utf-8 hg log
 echo "% manifest"