Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uploader: Use text before the first diff line as a description #8

Open
sjl opened this issue Feb 13, 2010 · 0 comments
Open

uploader: Use text before the first diff line as a description #8

sjl opened this issue Feb 13, 2010 · 0 comments

Comments

@sjl
Copy link
Contributor

sjl commented Feb 13, 2010

Imagine uploading a patch that looks like this:

This patch does X.

diff a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py

It would be great if the uploader script would look for the first diff line and treat everything before that as the description. This would be especially nice because you could run hg export . | patchbin and it would upload the patch while using the commit message and other metadata as the description.

I've been working on patch-parsing in Mercurial's MQ extension over the past week or so, so I know exactly how this can be done. I'll add it this weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant