Fwd: Python DVCS PEP question

Brendan Cully brendan at kublai.com
Tue Nov 18 07:20:12 UTC 2008


On Tuesday, 18 November 2008 at 07:43, Peter Arrenbrecht wrote:
> >[snip]
> > Do you know if there is standard way to generate a patch containing
> > all changes not found in the parent repository? I noticed `hg email`
> > has the --outgoing option, but this is of no use for us since
> > python-dev don't like receiving patches as emails. I guess running `hg
> > outgoing` and then `hg export <revision>:` is good enough.
> 
> Anyone know a good option for multiple csets? Like `hg export --outgoing`?
> 
> (I don't. Seems to be another case for having a single, central log
> walker that supports all the options like --outgoing --only-branch
> used in commands like log, glog, export, email, etc.)

You can almost do it with the attached style file, but
changeset_printer's show_parents function doesn't quite match up. It's
tempting to make show_parents always give the first parent if -v is
passed:

hg out --style hgpatch -p -v /path/to/other

Of course, you could always do something like:

hg exp `hg out -q --template '{rev}\n' /path/to/other`
-------------- next part --------------
changeset = '# HG changset patch\n# User {author}\n# Date {date|hgdate}\n{branches}# Node ID {node}\n{parents}{desc}\n\n'
parent = '# Parent  {node}\n'
branch = '# Branch {branch}\n'


More information about the Mercurial mailing list