<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Mercurial powertip: Move changesets out of the way momentarily</title>
	<atom:link href="http://noehr.org/2009/04/10/mercurial-powertip-move-changesets-out-of-the-way-momentarily/feed/" rel="self" type="application/rss+xml" />
	<link>http://noehr.org/2009/04/10/mercurial-powertip-move-changesets-out-of-the-way-momentarily/</link>
	<description>Pythonista, RESTafarian, Binary Poet &#38; Proud Bucketeer</description>
	<lastBuildDate>Thu, 03 Dec 2009 23:13:18 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: jespern</title>
		<link>http://noehr.org/2009/04/10/mercurial-powertip-move-changesets-out-of-the-way-momentarily/comment-page-1/#comment-731</link>
		<dc:creator>jespern</dc:creator>
		<pubDate>Fri, 10 Apr 2009 14:36:37 +0000</pubDate>
		<guid isPermaLink="false">http://noehr.org/?p=34#comment-731</guid>
		<description>Steve,

You&#039;re right, TIMTOWTDI. Since this is something that can be done without the use of MQ, I figured it&#039;d also serve as a gentle introduction to MQ :-)

Thanks for adding the instructions on how to do this with normal Hg and rebase (I haven&#039;t used it much), I for one found it very informative, and I&#039;m sure other people will too.</description>
		<content:encoded><![CDATA[<p>Steve,</p>
<p>You&#8217;re right, TIMTOWTDI. Since this is something that can be done without the use of MQ, I figured it&#8217;d also serve as a gentle introduction to MQ :-)</p>
<p>Thanks for adding the instructions on how to do this with normal Hg and rebase (I haven&#8217;t used it much), I for one found it very informative, and I&#8217;m sure other people will too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Losh</title>
		<link>http://noehr.org/2009/04/10/mercurial-powertip-move-changesets-out-of-the-way-momentarily/comment-page-1/#comment-729</link>
		<dc:creator>Steve Losh</dc:creator>
		<pubDate>Fri, 10 Apr 2009 14:24:54 +0000</pubDate>
		<guid isPermaLink="false">http://noehr.org/?p=34#comment-729</guid>
		<description>While this definitely works, why use MQ for it?  You could just use branching and merging to avoid destroying history while getting the same effects, or use rebasing to edit the history with less commands to remember.

For example (I hope Markdown works in the comments...):

    $ hg glog
    @  changeset:   2:45ef854eb6aa tip
    &#124;  summary:     add B
    &#124;
    o  changeset:   1:7bcb1d228f55
    &#124;  summary:     add C
    &#124;
    o  changeset:   0:491e35bba6dd
       summary:     add A
    
    $ hg update -C 0
    
    $ touch D
    
    $ hg commit -Am &#039;add D&#039;
    
    $ hg glog
    @  changeset:   3:23207da82cce tip
    &#124;  summary:     add D
    &#124;
    &#124; o  changeset:   2:45ef854eb6aa
    &#124; &#124;  summary:     add B
    &#124; &#124;
    &#124; o  changeset:   1:7bcb1d228f55
    &#124;/   summary:     add C
    &#124;
    o  changeset:   0:491e35bba6dd
       summary:     add A
    
    $ hg update -C 2
    2 files updated, 0 files merged, 1 files removed, 0 files unresolved
    
    $ hg merge tip
    1 files updated, 0 files merged, 0 files removed, 0 files unresolved
    (branch merge, don&#039;t forget to commit)
    
    $ hg commit -m &#039;Pull the bugfix into the experimental branch.&#039;
    
    $ hg glog
    @    changeset:   4:0ddd228568c5 tip
    &#124;\   summary:     Pull the bugfix into the experimental branch.
    &#124; &#124;
    &#124; o  changeset:   3:cd7196bb6bd1
    &#124; &#124;  summary:     add D (this is a bugfix)
    &#124; &#124;
    o &#124;  changeset:   2:45ef854eb6aa
    &#124; &#124;  summary:     add B
    &#124; &#124;
    o &#124;  changeset:   1:7bcb1d228f55
    &#124;/   summary:     add C
    &#124;
    o  changeset:   0:491e35bba6dd
       summary:     add A

or

    $ hg glog
    @  changeset:   3:23207da82cce tip
    &#124;  summary:     add D
    &#124;
    &#124; o  changeset:   2:45ef854eb6aa
    &#124; &#124;  summary:     add B
    &#124; &#124;
    &#124; o  changeset:   1:7bcb1d228f55
    &#124;/   summary:     add C
    &#124;
    o  changeset:   0:491e35bba6dd
       summary:     add A
    
    $ hg rebase --source 3 --dest 2
    saving bundle to ...path here...
    adding branch
    adding changesets
    adding manifests
    adding file changes
    added 1 changesets with 1 changes to 1 files
    rebase completed
    
    $ hg glog
    @  changeset:   3:ca6d9cbfdbef tip
    &#124;  summary:     add D (this is a bugfix)
    &#124;
    o  changeset:   2:45ef854eb6aa
    &#124;  summary:     add B
    &#124;
    o  changeset:   1:7bcb1d228f55
    &#124;  summary:     add C
    &#124;
    o  changeset:   0:491e35bba6dd
       summary:     add A

MQ is extremely powerful and great for stuff like folding together or rearranging commits, but it&#039;s a pretty complex tool to use if all you want to do is move a changeset temporarily.</description>
		<content:encoded><![CDATA[<p>While this definitely works, why use MQ for it?  You could just use branching and merging to avoid destroying history while getting the same effects, or use rebasing to edit the history with less commands to remember.</p>
<p>For example (I hope Markdown works in the comments&#8230;):</p>
<p>    $ hg glog<br />
    @  changeset:   2:45ef854eb6aa tip<br />
    |  summary:     add B<br />
    |<br />
    o  changeset:   1:7bcb1d228f55<br />
    |  summary:     add C<br />
    |<br />
    o  changeset:   0:491e35bba6dd<br />
       summary:     add A</p>
<p>    $ hg update -C 0</p>
<p>    $ touch D</p>
<p>    $ hg commit -Am &#8216;add D&#8217;</p>
<p>    $ hg glog<br />
    @  changeset:   3:23207da82cce tip<br />
    |  summary:     add D<br />
    |<br />
    | o  changeset:   2:45ef854eb6aa<br />
    | |  summary:     add B<br />
    | |<br />
    | o  changeset:   1:7bcb1d228f55<br />
    |/   summary:     add C<br />
    |<br />
    o  changeset:   0:491e35bba6dd<br />
       summary:     add A</p>
<p>    $ hg update -C 2<br />
    2 files updated, 0 files merged, 1 files removed, 0 files unresolved</p>
<p>    $ hg merge tip<br />
    1 files updated, 0 files merged, 0 files removed, 0 files unresolved<br />
    (branch merge, don&#8217;t forget to commit)</p>
<p>    $ hg commit -m &#8216;Pull the bugfix into the experimental branch.&#8217;</p>
<p>    $ hg glog<br />
    @    changeset:   4:0ddd228568c5 tip<br />
    |\   summary:     Pull the bugfix into the experimental branch.<br />
    | |<br />
    | o  changeset:   3:cd7196bb6bd1<br />
    | |  summary:     add D (this is a bugfix)<br />
    | |<br />
    o |  changeset:   2:45ef854eb6aa<br />
    | |  summary:     add B<br />
    | |<br />
    o |  changeset:   1:7bcb1d228f55<br />
    |/   summary:     add C<br />
    |<br />
    o  changeset:   0:491e35bba6dd<br />
       summary:     add A</p>
<p>or</p>
<p>    $ hg glog<br />
    @  changeset:   3:23207da82cce tip<br />
    |  summary:     add D<br />
    |<br />
    | o  changeset:   2:45ef854eb6aa<br />
    | |  summary:     add B<br />
    | |<br />
    | o  changeset:   1:7bcb1d228f55<br />
    |/   summary:     add C<br />
    |<br />
    o  changeset:   0:491e35bba6dd<br />
       summary:     add A</p>
<p>    $ hg rebase &#8211;source 3 &#8211;dest 2<br />
    saving bundle to &#8230;path here&#8230;<br />
    adding branch<br />
    adding changesets<br />
    adding manifests<br />
    adding file changes<br />
    added 1 changesets with 1 changes to 1 files<br />
    rebase completed</p>
<p>    $ hg glog<br />
    @  changeset:   3:ca6d9cbfdbef tip<br />
    |  summary:     add D (this is a bugfix)<br />
    |<br />
    o  changeset:   2:45ef854eb6aa<br />
    |  summary:     add B<br />
    |<br />
    o  changeset:   1:7bcb1d228f55<br />
    |  summary:     add C<br />
    |<br />
    o  changeset:   0:491e35bba6dd<br />
       summary:     add A</p>
<p>MQ is extremely powerful and great for stuff like folding together or rearranging commits, but it&#8217;s a pretty complex tool to use if all you want to do is move a changeset temporarily.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
