Closed Bug 730200 Opened 12 years ago Closed 12 years ago

bzexport crashes on patches with no description

Categories

(Developer Services :: Mercurial: bzexport, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sfink, Assigned: sfink)

Details

Attachments

(1 file)

It's a bad sign when nearly every time I run bzexport, I run into another problem. I should figure out how to set up a test suite. (I have one for part of the functionality, but it's too ugly to land.)
Attachment #600312 - Flags: review?(josh)
Comment on attachment 600312 [details] [diff] [review]
imported patch empty-desc

Review of attachment 600312 [details] [diff] [review]:
-----------------------------------------------------------------

::: bzexport.py
@@ +952,5 @@
>      if update_patch:
>          # Add "Bug nnnn - " to the beginning of the description
>          ph = mq.patchheader(q.join(rev), q.plainmode)
>          msg = ph.message
> +        if len(msg) == 0:

Make this |if not msg|.
Attachment #600312 - Flags: review?(josh) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Product: Other Applications → Developer Services
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: