ae850cfa701f — Steve Fink 4 years ago
Wrest control of -t (for --to) from --title
1 files changed, 10 insertions(+), 1 deletions(-)

M __init__.py
M __init__.py +10 -1
@@ 1274,6 1274,15 @@ def bzexport(ui, repo, *args, **opts):
             except Exception as e:
                 raise error.Abort(e.message)
 
+newbug_opts_for_phexport = []
+for opt in newbug_opts:
+    if opt[0] != b't':
+        newbug_opts_for_phexport.append(opt)
+    else:
+        opt = list(opt)
+        opt[0] = b''
+        newbug_opts_for_phexport.append(tuple(opt))
+
 @command(b'phexport', [
          (b'm', b'comment', b'', b'Comment to add with updated commit', B'TEXT'),
          (b'e', b'edit', False,

          
@@ 1303,7 1312,7 @@ def bzexport(ui, repo, *args, **opts):
          # The following option is passed through directly to patch.diffopts
          (b'f', b'force', False,
           b'Proceed even if the working directory contains changes'),
-         ] + newbug_opts,
+         ] + newbug_opts_for_phexport,
         _(b'hg phexport [options]'))
 def phexport(ui, repo, *args, **opts):
     """