Mercurial > public > mercurial-scm > hg
diff hgext/patchbomb.py @ 50246:a6b497872b97 stable
patchbomb: respect the `--git` option
I *think* this is the only diffopt exposed on the command line. TortoiseHg had
a similar issue creating diffopts, and this was caught by type hints in the next
commit.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 28 Feb 2023 18:14:11 -0500 |
parents | 48f1b314056b |
children | 493034cc3265 |
line wrap: on
line diff
--- a/hgext/patchbomb.py Wed Mar 01 16:48:09 2023 +0100 +++ b/hgext/patchbomb.py Tue Feb 28 18:14:11 2023 -0500 @@ -361,7 +361,12 @@ ui.warn(_(b'warning: working directory has uncommitted changes\n')) output = stringio() cmdutil.exportfile( - repo, [r], output, opts=patch.difffeatureopts(ui, opts, git=True) + repo, + [r], + output, + opts=patch.difffeatureopts( + ui, pycompat.byteskwargs(opts), git=True + ), ) yield output.getvalue().split(b'\n')