reset opts["review"] to default value, not delete, so can still use as key
authorSteve Fink <sfink@mozilla.com>
Tue, 24 Jan 2012 00:21:04 -0800
changeset 62 b1a0a58c332baefd7bf95bcd3cd1928064c871cb
parent 61 2731063a4c22840457f484b4afad15593d9b6fb9
child 63 307cb61da481e42dc8d5bb292fdb71779423f55a
push id33
push usersfink@mozilla.com
push dateWed, 01 Feb 2012 20:22:14 +0000
reset opts["review"] to default value, not delete, so can still use as key
bzexport.py
--- a/bzexport.py
+++ b/bzexport.py
@@ -925,17 +925,17 @@ def bzexport(ui, repo, *args, **opts):
         # Next strip off review and approval annotations, grabbing the
         # reviewers from the patch comments only if -r auto was given
         def grab_reviewer(m):
             if opts['review'] == 'auto':
                 reviewers.append(m.group(1))
             return ''
         desc = review_re.sub(grab_reviewer, desc).rstrip()
         if len(reviewers) > 0:
-            del opts['review']
+            opts['review'] = ''
 
         # Finally, just take the first line in case. If there is more than one
         # line, use it as a comment.
         m = re.match(r'([^\n]*)\n+(.*)', desc, re.DOTALL)
         if m:
             desc = m.group(1)
             patch_comment = m.group(2)