changeset 6351 | eed0a6a05096 |
parent 6333 | f477afeb3a0f |
child 6762 | f67d1468ac50 |
--- a/mercurial/ui.py Sat Mar 22 13:30:08 2008 -0500 +++ b/mercurial/ui.py Sat Mar 22 13:50:59 2008 -0500 @@ -351,6 +351,8 @@ pass if not user: raise util.Abort(_("Please specify a username.")) + if "\n" in user: + raise util.Abort(_("username %s contains a newline\n") % `user`) return user def shortuser(self, user):