remote-hg: add missing config for basic tests
authorRamkumar Ramachandra <artagnon@gmail.com>
Mon, 12 Nov 2012 17:41:05 +0000 (18:41 +0100)
committerJeff King <peff@peff.net>
Mon, 12 Nov 2012 20:34:53 +0000 (15:34 -0500)
'hg commit' fails otherwise in some versions of mercurial because of
the missing user information. Other versions simply throw a warning and
guess though.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Jeff King <peff@peff.net>
contrib/remote-helpers/test-hg.sh
index 40e6e3c0630f761eb96ed194ccb2dc7648097c7f..5f81dfae6c4a31f11ed766dd467fdd4a542afdf3 100755 (executable)
@@ -29,6 +29,15 @@ check () {
        test_cmp expected actual
 }
 
+setup () {
+       (
+       echo "[ui]"
+       echo "username = H G Wells <wells@example.com>"
+       ) >> "$HOME"/.hgrc
+}
+
+setup
+
 test_expect_success 'cloning' '
   test_when_finished "rm -rf gitrepo*" &&