Show More
@@ -179,7 +179,7 b' class changelog(revlog):' | |||||
179 |
|
179 | |||
180 | user = user.strip() |
|
180 | user = user.strip() | |
181 | if "\n" in user: |
|
181 | if "\n" in user: | |
182 |
raise RevlogError(_("username %s contains a newline") % |
|
182 | raise RevlogError(_("username %s contains a newline") % repr(user)) | |
183 | user, desc = util.fromlocal(user), util.fromlocal(desc) |
|
183 | user, desc = util.fromlocal(user), util.fromlocal(desc) | |
184 |
|
184 | |||
185 | if date: |
|
185 | if date: |
@@ -350,7 +350,7 b' class ui(object):' | |||||
350 | if not user: |
|
350 | if not user: | |
351 | raise util.Abort(_("Please specify a username.")) |
|
351 | raise util.Abort(_("Please specify a username.")) | |
352 | if "\n" in user: |
|
352 | if "\n" in user: | |
353 |
raise util.Abort(_("username %s contains a newline\n") % |
|
353 | raise util.Abort(_("username %s contains a newline\n") % repr(user)) | |
354 | return user |
|
354 | return user | |
355 |
|
355 | |||
356 | def shortuser(self, user): |
|
356 | def shortuser(self, user): |
General Comments 0
You need to be logged in to leave comments.
Login now