Mercurial > hgbook
comparison en/ch11-mq.xml @ 811:a66f6d499afa
Add paragraph IDs
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri, 24 Apr 2009 00:27:21 -0700 |
parents | 1a0a78e197c3 |
children | f3f901cfbfc7 |
comparison
equal
deleted
inserted
replaced
810:1a0a78e197c3 | 811:a66f6d499afa |
---|---|
746 </sect1> | 746 </sect1> |
747 | 747 |
748 <sect1> | 748 <sect1> |
749 <title>More on patch management</title> | 749 <title>More on patch management</title> |
750 | 750 |
751 <para>As you grow familiar with MQ, you will find yourself wanting | 751 <para id="x_6db">As you grow familiar with MQ, you will find yourself wanting |
752 to perform other kinds of patch management operations.</para> | 752 to perform other kinds of patch management operations.</para> |
753 | 753 |
754 <sect2> | 754 <sect2> |
755 <title>Deleting unwanted patches</title> | 755 <title>Deleting unwanted patches</title> |
756 | 756 |
757 <para>If you want to get rid of a patch, use the <command | 757 <para id="x_6dc">If you want to get rid of a patch, use the <command |
758 role="hg-ext-mq">hg qdelete</command> command to delete the | 758 role="hg-ext-mq">hg qdelete</command> command to delete the |
759 patch file and remove its entry from the patch series. If you | 759 patch file and remove its entry from the patch series. If you |
760 try to delete a patch that is still applied, <command | 760 try to delete a patch that is still applied, <command |
761 role="hg-ext-mq">hg qdelete</command> will refuse.</para> | 761 role="hg-ext-mq">hg qdelete</command> will refuse.</para> |
762 | 762 |
764 </sect2> | 764 </sect2> |
765 | 765 |
766 <sect2> | 766 <sect2> |
767 <title>Converting to and from permanent revisions</title> | 767 <title>Converting to and from permanent revisions</title> |
768 | 768 |
769 <para>Once you're done working on a patch and want to turn it | 769 <para id="x_6dd">Once you're done working on a patch and want to turn it |
770 into a permanent changeset, use the <command | 770 into a permanent changeset, use the <command |
771 role="hg-ext-mq">hg qdelete -r</command> command. Pass a | 771 role="hg-ext-mq">hg qdelete -r</command> command. Pass a |
772 revision to the <option>-r</option> option to identify the | 772 revision to the <option>-r</option> option to identify the |
773 patch that you want to turn into a regular changeset; this | 773 patch that you want to turn into a regular changeset; this |
774 patch must already be applied.</para> | 774 patch must already be applied.</para> |
775 | 775 |
776 &interaction.ch11-qdelete.convert; | 776 &interaction.ch11-qdelete.convert; |
777 | 777 |
778 <para>It is also possible to turn an existing changeset into a | 778 <para id="x_6de">It is also possible to turn an existing changeset into a |
779 patch, by passing the <option>-r</option> option to <command | 779 patch, by passing the <option>-r</option> option to <command |
780 role="hg-ext-mq">hg qimport</command>.</para> | 780 role="hg-ext-mq">hg qimport</command>.</para> |
781 | 781 |
782 &interaction.ch11-qdelete.import; | 782 &interaction.ch11-qdelete.import; |
783 | 783 |
784 <para>Note that it only makes sense to convert a changeset into | 784 <para id="x_6df">Note that it only makes sense to convert a changeset into |
785 a patch if you have not propagated that changeset into any | 785 a patch if you have not propagated that changeset into any |
786 other repositories. The imported changeset's ID will change | 786 other repositories. The imported changeset's ID will change |
787 every time you refresh the patch, which will make Mercurial | 787 every time you refresh the patch, which will make Mercurial |
788 treat it as unrelated to the original changeset if you have | 788 treat it as unrelated to the original changeset if you have |
789 pushed it somewhere else.</para> | 789 pushed it somewhere else.</para> |