Show More
@@ -202,6 +202,11 b' class changelog(revlog.revlog):' | |||
|
202 | 202 | user=None, date=None, extra={}): |
|
203 | 203 | |
|
204 | 204 | user = user.strip() |
|
205 | # An empty username or a username with a "\n" will make the | |
|
206 | # revision text contain two "\n\n" sequences -> corrupt | |
|
207 | # repository since read cannot unpack the revision. | |
|
208 | if not user: | |
|
209 | raise error.RevlogError(_("empty username")) | |
|
205 | 210 | if "\n" in user: |
|
206 | 211 | raise error.RevlogError(_("username %s contains a newline") |
|
207 | 212 | % repr(user)) |
General Comments 0
You need to be logged in to leave comments.
Login now