Mercurial: Difference between revisions

300 bytes added ,  4 March 2014
Elaborated on the procedure of submitting a patch, since it seems to be such a common question.
m (phrasing)
(Elaborated on the procedure of submitting a patch, since it seems to be such a common question.)
Line 41: Line 41:
* Update to the latest revision.  
* Update to the latest revision.  
<pre> hg up </pre>
<pre> hg up </pre>
* Make your changes and save.  
* Make your changes and save them.  
* Commit your code following the [[commit message guidelines]].  
* Commit your code. Mercurial will ask you for a commit message, which should follow the [[commit message guidelines]].
<pre> hg ci </pre>
<pre> hg ci </pre>
* Export the modifications.  
* Export the modifications. This creates a file (in the case of the example below, it is called mypatch.patch) that contains a description of the changes that you've made. Someone else can then apply the patch and end up with a repository that looks the same as yours.
<pre> hg export -r tip -o mypatch.patch </pre>
<pre> hg export -r tip -o mypatch.patch </pre>
* Save the output to a file and upload it to the patch tracker.
* Save the output to a file and upload it to the patch tracker.
34

edits