Using patchwork with Mercurial

Yann E. MORIN yann.morin.1998 at free.fr
Wed Jan 9 10:37:27 EST 2013


Bryan, All,

On Tuesday 08 January 2013 Bryan O'Sullivan wrote:
> I've set up a patchwork instance for the Mercurial project, to help us
> coordinate patch reviews and contributions: http://patchwork.serpentine.com/
> 
> So far, we've been pleased with patchwork after just a day or so of use.
> I'd like to thank all of you (Jeremy in particular) who have contributed to
> it so far.
> 
> When time permits, I'll rey to send some patches that decouple the code
> from its few git-centric assumptions. The code is actually running fine
> without git in the picture, and it would be great to keep it that way :-)

I have a 'small' shell script that helps me with pathwork handling in
my Hg trees:

$ hg debugconfig alias |grep pw                                                                                                                                                                 
alias.pwlist=!pw-vcs list
alias.pwview=!pw-vcs view
alias.pwqimport=!pw-vcs hgqimport
alias.pwpush=!pw-vcs hgpush

$ hg pwlist
[lists patches in the New state
$ hg pwlist Rejected
[lists patches in the Rejected state]
$ hg pwlist All
[lists all patches]

$ hg pwview XXX
[displays patch XXX]

$ hg pwqimport XXX
[imports patch XXX as a new MQ patch]

$ hg pwpush
[pushes new changests, and updates their patchwork state to Accepted]
[sends a mail to author that the patch was applied]

Of course, this is very centric to my workflow. It can probably be adapted
rather easily, though.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pw-vcs
Type: application/x-shellscript
Size: 23874 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/patchwork/attachments/20130109/dd2dd7a0/attachment-0001.bin>
-------------- next part --------------
[defaults]
xmlrpc = http://patchwork.ozlabs.org/xmlrpc/
login = [patchwork login]
passwd = [patchwork password]
name-from = John E. DOE
smtp-from = "John E. DOE" <john at doe.netr>
smtp-server = smtp.server.net
# smtp-port = 
# smtp-tls = 
# smtp-user = 
# smtp-passwd = 
# Don't send mails for these authors:
smtp-except = john at doe.net
smtp-except = ...

[project1]
upstream = http://project1/hg
smtp-cc = always-cc-ne at foo.net
smtp-bcc = always-bcc-ne at foo.net

[project2]
upstream = http://project2/hg
# No mail for this project
smtp-server = 


More information about the Patchwork mailing list