diff tests/test-mq-qnew @ 9733:f16ec85f125c

mq: do not call ui.username unless it is necessary After changeset c63c336ee2f7, ui.username will abort by default if no username is set. It is therefore wrong to call ui.username when a username was provided on the command line.
author Martin Geisler <mg@lazybytes.net>
date Sat, 07 Nov 2009 00:13:05 +0100
parents bd6deb7525f4
children 3e7663b2f3fc
line wrap: on
line diff
--- a/tests/test-mq-qnew	Fri Nov 06 22:54:51 2009 +0100
+++ b/tests/test-mq-qnew	Sat Nov 07 00:13:05 2009 +0100
@@ -54,3 +54,7 @@
 hg st
 hg qnew -g -f p
 cat ../.hg/patches/p
+
+echo '% qnew -u with no username configured'
+HGUSER= hg qnew -u blue red
+cat ../.hg/patches/red