# HG changeset patch
# User Rob Beezer <beezer@ups.edu>
# Date 1265524418 28800
# Node ID e3c980d33999db52ecd730f466d061ced8c7ec6f
# Parent 9e139fab2a26ce7aa060fb6dcd7ca92ca1a35b2c
Trac 8206: hg qnew -f, record extensions, to Developer Walkthrough
diff -r 9e139fab2a26 -r e3c980d33999 doc/en/developer/walk_through.rst
|
a
|
b
|
|
| 509 | 509 | |
| 510 | 510 | hg qnew <descriptive-name> |
| 511 | 511 | |
| 512 | | I am always in such a rush, I often forget this step. I usually |
| 513 | | undo everything in my editor, start the patch, then redo all my |
| 514 | | edits, but maybe there is a better way. The "descriptive-name" can be |
| 515 | | anything you like, nobody else ever has to see it. Use a Trac ticket |
| 516 | | number or whatever you please. Edit, build, test, create |
| 517 | | documentation, knock yourself out. At any time, run ``hg qdiff`` to |
| 518 | | see your changes. |
| | 512 | I am always in such a rush, I often forget this step. If you are |
| | 513 | like me, then :: |
| | 514 | |
| | 515 | hg qnew -f <descriptive-name> |
| | 516 | |
| | 517 | will capture your changes made so far and give you a patch to |
| | 518 | work with. The "descriptive-name" can be anything you like, |
| | 519 | nobody else ever has to see it. Use a Trac ticket number or |
| | 520 | whatever you please. Edit, build, test, create documentation, |
| | 521 | knock yourself out. At any time, run ``hg qdiff`` to see your |
| | 522 | changes. |
| 519 | 523 | |
| 520 | 524 | Once satisfied with your work, use ``hg qrefresh`` to save your |
| 521 | 525 | changes into the patch. Even better is to use the ``-e`` or |
| … |
… |
|
| 642 | 646 | ``hg log | more``) and see how queues "insert" your applied patches |
| 643 | 647 | near the tip of the repository, all "behind the scenes." |
| 644 | 648 | |
| | 649 | The "record" extensions allow you to selectively pick (record) |
| | 650 | portions of a patch to group together. So you can round up |
| | 651 | related bits and pieces of a patch if that makes sense in the |
| | 652 | context of your work. For more on record, qrecord and crecord, see |
| | 653 | |
| | 654 | * http://mercurial.selenic.com/wiki/RecordExtension |
| | 655 | |
| 645 | 656 | There are lots more you can do with queues, but you should |
| 646 | 657 | understand enough now to experiment safely. The following URLs |
| 647 | 658 | contain introductory tutorials on using Mercurial queues: |