Am Wed, 16 Nov 2016 17:41:03 -0500
schrieb Augie Fackler <r...@durin42.com>:

> > On Nov 16, 2016, at 15:41, Henning Schild <henn...@hennsch.de>
> > wrote:
> > 
> > # HG changeset patch
> > # User Henning Schild <henn...@hennsch.de>
> > # Date 1479327376 -3600
> > #      Wed Nov 16 21:16:16 2016 +0100
> > # Node ID 181aaf02c1542387651e66c22063bb276271ced2
> > # Parent  db8637a8a7464aca668e5aaa2fb9610edaf6f286
> > patchbomb: make --git imply --plain  
> 
> No thanks. --git here is about using the git-diff format, which is
> still extremely valuable for hg users.

Ok. I guess that consequently also means no to the diffstat patch (2 of
2 out of this thread)?

Let me see how to fit that change into hg-git. I did not have a look at
how that hooks into hg, but i can imagine a similar patch would be much
harder there - like parsing the mbox. I need that change working with
hg-git for contributing code back to upstream mailing lists.
I can imagine that similar patches would be required for the reverse
operation (hg mimport), but i did not try that way yet.

How about a new option --git-format that implies --git and --plain and
takes care of the diffstat?

> > 
> > Not using --plain would generate mails with the hg header in the
> > git commit message. Since --git already caters for git, might as
> > well make sure users do not forget --plain.
> > 
> > diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py
> > --- a/hgext/patchbomb.py
> > +++ b/hgext/patchbomb.py
> > @@ -524,6 +524,10 @@
> >     # internal option used by pbranches
> >     patches = opts.get('patches')
> > 
> > +    if (opts.get('git') and not opts.get('plain')):
> > +        repo.ui.debug('--git implies --plain, setting --plain')
> > +        opts['plain'] = True
> > +
> >     if not (opts.get('test') or mbox):
> >         # really sending
> >         mail.validateconfig(ui)
> > diff --git a/tests/test-patchbomb.t b/tests/test-patchbomb.t
> > --- a/tests/test-patchbomb.t
> > +++ b/tests/test-patchbomb.t
> > @@ -755,13 +755,6 @@
> >   To: foo
> >   Cc: bar
> > 
> > -  # HG changeset patch
> > -  # User test
> > -  # Date 3 0
> > -  #      Thu Jan 01 00:00:03 1970 +0000
> > -  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
> > -  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
> > -  c
> >   ---
> >    c |  1 +
> >    1 files changed, 1 insertions(+), 0 deletions(-)
> > @@ -953,13 +946,6 @@
> >   To: foo
> >   Cc: bar
> > 
> > -  # HG changeset patch
> > -  # User test
> > -  # Date 1 0
> > -  #      Thu Jan 01 00:00:01 1970 +0000
> > -  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
> > -  # Parent  0000000000000000000000000000000000000000
> > -  a
> >   ---
> >    a |  1 +
> >    1 files changed, 1 insertions(+), 0 deletions(-)
> > @@ -989,13 +975,6 @@
> >   To: foo
> >   Cc: bar
> > 
> > -  # HG changeset patch
> > -  # User test
> > -  # Date 2 0
> > -  #      Thu Jan 01 00:00:02 1970 +0000
> > -  # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
> > -  # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
> > -  b
> >   ---
> >    b |  1 +
> >    1 files changed, 1 insertions(+), 0 deletions(-)
> > _______________________________________________
> > Mercurial-devel mailing list
> > Mercurial-devel@mercurial-scm.org
> > https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel  
> 
> 

_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to