Tool for importing webrev patches?
Jorn Vernee
jbvernee at xs4all.nl
Wed Jul 3 12:19:30 UTC 2019
Hi all,
I'm working together with someone who is using mercurial, while I'm
using git, and they've sent in a webrev for review.
When using mercurial I would:
1. download the attached .patch file
2. use `hg qimport the_patch.patch` to import the patch in mq
3. use `hg qpush` to apply the changes
4. run the tests and/or play with the code before submitting a review.
5. use `hg qdelete the_patch.patch` to remove the patch from mq
I'm looking to replace steps 2, 3 and 5 with a git equivalent.
The git workflow I've figured out so far is to:
1. download the attached .patch file
2. create a new local branch based on the one the patch is targeting
3. switch to newly created branch
4. use `git apply the_patch.patch` to apply the changes
5. make a commit for the applied changes
6. run the tests and/or play with the code before submitting a review.
7. delete the local branch.
I think steps 2-5 could be merged into 1 using some tool (maybe even
step 1. as well). Then, after reviewing, I just have to delete the newly
created local branch.
Does such a tool exist in Skara already? (couldn't find it on the wiki
[1]) Or, is there another recommended way for doing this? Is there
interest in adding such a tool to Skara?
Thanks,
Jorn
[1] : https://wiki.openjdk.java.net/display/skara
More information about the skara-dev
mailing list