So the Maven Patch Tracker plugin is for you !
You will be able with a maven plugin to do all of this in one command line !
Without any configuration you have to write :
If you find that boring or too long no problem, there is a solution for that (yes good developer are lasy developers they use tool to automate tasks :-) ).
So configure you pom, with the issue tracker id
Add a server entry in you settings.xml
<password>very complicated password for paranoiac security folks</password>
Reference this jira server in your pom:
Et voilà, just run and save fingers:
mvn patch-tracker:create -Dpatch.summary="foo summary" -B
NOTE: without -B the plugin will use a prompt mode to ask you confirmation on the values
An other mojo called update can add/update an issue with an other patch:
mvn patch-tracker:update -Dpatch.description="update of the issue with an other patch" -Dpatch.patchId=MNG-5203 -B
This command will update the issue MNG-5203 with an other patch.
NOTE: currently only jira is supported
The plugin will use the configured scm client configured tru your scm url to generate the patch/diff file.
So your project is configured with svn but for some reasons you use git svn.
No problem add the parameter: -Dscm.providerType=git
Other improvement I think: load the patch to review board.
Something else ?
Ideas and patches are welcome :-)
You can test it using the snapshot repo: https://repository.apache.org/content/groups/snapshots-group/ or build it yourself: http://svn.apache.org/repos/asf/maven/sandbox/trunk/plugins/maven-patch-tracker-plugin/
Have Fun and good hacking!