I assume that the devs are annoyed when uploading a intermediate result of their work, ...
14 years, 4 months ago
(2012-01-29 08:50:33 UTC)
#2
I assume that the devs are annoyed when uploading a intermediate result of their
work, but not when publishing a changeset for review.
Therefore I would keep the "empty title" check but broaden it to something like
"if title is empty and send_mail flag is set (or issue is new)". Otherwise when
the title is empty we send mails with " (issue 123)" as subject.
http://codereview.appspot.com/5577063/diff/1/upload.py
File upload.py (right):
http://codereview.appspot.com/5577063/diff/1/upload.py#newcode2251
upload.py:2251: title = title or ' '
What about parenthesis?
title = (title or message...
or raw_input...
or ' ')
That'd reduce it to a single assignment.
On 2012/01/27 19:46:01, M-A wrote:
> It's a more redundant written this way but a bit more readable. I'm open to
> other format.
Issue 5577063: If no title is provided, use ' ' by default instead of erroring out
(Closed)
Created 14 years, 4 months ago by M-A
Modified 14 years, 4 months ago
Reviewers: Andi Albrecht
Base URL:
Comments: 2