Compare Revisions

Creating a patch

Revision 37814:

Revision 37814 by Wtchang on

Revision 37815:

Revision 37815 by sirusimi on

Title:
Creating a patch
Creating a patch
Slug:
Creating_a_patch
Creating_a_patch
Tags:
NeedsTechnicalReview, "Developing Mozilla"
NeedsTechnicalReview, "Developing Mozilla"
Content:

Revision 37814
Revision 37815
n7    <p>n7    <h1>
8      After you have <a class="external" href="/En/Developer_Guid8      SIRU After you have <a class="external" href="/En/Developer
>e/Source_Code/Mercurial" title="https://developer.mozilla.org/edi>_Guide/Source_Code/Mercurial" title="https://developer.mozilla.or
>tor/fckeditor/core/editor/en/Mozilla_Source_Code_(Mercurial)">obt>g/editor/fckeditor/core/editor/en/Mozilla_Source_Code_(Mercurial)
>ained the source code</a>, made changes to it, <a href="/en/Build>">obtained the source code</a>, made changes to it, <a href="/en/
>_and_Install" title="en/Build_and_Install">built</a> and <a href=>Build_and_Install" title="en/Build_and_Install">built</a> and <a 
>"/en/Mozilla_automated_testing" title="en/Mozilla_automated_testi>href="/en/Mozilla_automated_testing" title="en/Mozilla_automated_
>ng">tested</a> it (and included your tests in your patch, if poss>testing">tested</a> it (and included your tests in your patch, if
>ible), you'll want to get your changes <a href="/En/Developer_Gui> possible), you'll want to get your changes <a href="/En/Develope
>de/How_to_Submit_a_Patch" title="en/Getting_your_patch_in_the_tre>r_Guide/How_to_Submit_a_Patch" title="en/Getting_your_patch_in_th
>e">reviewed and checked in</a>. In order to do that, you need to >e_tree">reviewed and checked in</a>. In order to do that, you nee
>create a file listing the changes you made, called a <em>patch</e>d to create a file listing the changes you made, called a <em>pat
>m> or a <em>diff file</em>. You can generate it using <span style>ch</em> or a <em>diff file</em>. You can generate it using <span 
>="font-weight: bold;">hg</span> <strong>diff</strong> or <strong>>style="font-weight: bold;">hg</span> <strong>diff</strong> or <st
>cvs diff</strong> command.>rong>cvs diff</strong> command.
9    </p>9    </h1>
t49$ hg diff -p -8 mozilla/&lt;restOfPath&gt;/ &gt; OUT_FILEt49$ hg diff -p-u8p mozilla/&lt;restOfPath&gt;/ &gt; OUT_FILE
50</pre>
51    <pre class="eval">
52$ cvs diff -u8p mozilla/&lt;restOfPath&gt;/ &gt; OUT_FILE

Back to History