tests/test-convert-darcs
branchstable
changeset 12252 4481f8a93c7a
parent 10119 bb5ea66789e3
child 12393 84ceedcfeb6a
--- a/tests/test-convert-darcs	Sat Sep 11 00:39:34 2010 +0200
+++ b/tests/test-convert-darcs	Fri Sep 10 09:30:50 2010 -0500
@@ -56,13 +56,18 @@
 rm dir/d2
 darcs mv dir dir2
 darcs record -a -l -m p3
-cd ..
+
+echo % test utf-8 commit message and author
+echo g > g
+# darcs is encoding agnostic, so it takes whatever bytes it's given
+darcs record -a -l -m 'p4: desc ñ' -A 'author ñ'
 
 glog()
 {
-    hg glog --template '{rev} "{desc|firstline}" files: {files}\n' "$@"
+    HGENCODING=utf-8 hg glog --template '{rev} "{desc|firstline}" ({author}) files: {files}\n' "$@"
 }
 
+cd ..
 hg convert darcs-repo darcs-repo-hg
 # The converter does not currently handle patch conflicts very well.
 # When they occur, it reverts *all* changes and moves forward,