Bug 900013 - Record attachment filename in upload; r=sfink
authorGregory Szorc <gps@mozilla.com>
Thu, 14 Nov 2013 11:06:16 -0800
changeset 130 c604ded99c594740ed3ab3b3aee53abf328da9d7
parent 129 f4fff01960156c2b77351e8b9554dfdc25477b69
child 131 3420668a4f371e7d48c43ed310a05d5fec1a7f6c
push id61
push usergszorc@mozilla.com
push dateThu, 14 Nov 2013 19:06:42 +0000
reviewerssfink
bugs900013
Bug 900013 - Record attachment filename in upload; r=sfink
__init__.py
--- a/__init__.py
+++ b/__init__.py
@@ -908,16 +908,18 @@ def bzexport(ui, repo, *args, **opts):
         if 'CC' in values:         # Only when opts['new']
             cc = select_users(users, values['CC'])
         if 'BLOCKS' in values:     # Only when opts['new']
             blocks = values['BLOCKS']
         if 'DEPENDS' in values:    # Only when opts['new'] 
            depends = values['DEPENDS']
         if 'FEEDBACK' in values:   # Always true
             feedback = select_users(users, values['FEEDBACK'])
+        if 'ATTACHMENT_FILENAME' in values:
+            filename = values['ATTACHMENT_FILENAME']
 
     values = fill_values(values, ui, api_server, finalize=True)
 
     if opts["new"]:
         if bug is not None:
             raise util.Abort("Bug %s given but creation of new bug requested!" % bug)
 
         if opts['interactive'] and ui.prompt(_("Create bug in '%s'/'%s' (y/n)?") % (values['PRODUCT'], values['COMPONENT'])) != 'y':