Ticket #8206: trac_8206_developer-doc.patch

File trac_8206_developer-doc.patch, 2.1 KB (added by rbeezer, 3 years ago)
  • doc/en/developer/walk_through.rst

    # 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  
    509509 
    510510    hg qnew <descriptive-name> 
    511511 
    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. 
     512I am always in such a rush, I often forget this step. If you are 
     513like me, then :: 
     514 
     515    hg qnew -f <descriptive-name> 
     516 
     517will capture your changes made so far and give you a patch to 
     518work with.  The "descriptive-name" can be anything you like, 
     519nobody else ever has to see it.  Use a Trac ticket number or 
     520whatever you please. Edit, build, test, create documentation, 
     521knock yourself out.  At any time, run ``hg qdiff`` to see your 
     522changes. 
    519523 
    520524Once satisfied with your work, use ``hg qrefresh`` to save your 
    521525changes into the patch.  Even better is to use the ``-e`` or 
     
    642646``hg log | more``) and see how queues "insert" your applied patches 
    643647near the tip of the repository, all "behind the scenes." 
    644648 
     649The "record" extensions allow you to selectively pick (record) 
     650portions of a patch to group together.  So you can round up 
     651related bits and pieces of a patch if that makes sense in the 
     652context of your work.  For more on record, qrecord and crecord, see 
     653 
     654* http://mercurial.selenic.com/wiki/RecordExtension 
     655 
    645656There are lots more you can do with queues, but you should 
    646657understand enough now to experiment safely. The following URLs 
    647658contain introductory tutorials on using Mercurial queues: