howto suspend work

Peter Hosey boredzo at gmail.com
Wed Jun 3 13:40:13 CDT 2009


On Jun 03, 2009, at 11:03:52, Neal Becker wrote:
> OK, great.  Now I have 2 heads.  Now what?

When you push, you can specify the head you want to push, and it will  
push only that line of history.

foo% hg out ../bar
comparing with ../bar
searching for changes
changeset:   2:7dcfd1fafced
user:        Peter Hosey
date:        Wed Jun 03 11:37:38 2009 -0700
summary:     baz

changeset:   3:b5ea1be88de3
tag:         tip
parent:      0:8f1a695193d5
user:        Peter Hosey
date:        Wed Jun 03 11:37:48 2009 -0700
summary:     This is the new head.

foo% hg push ../bar
pushing to ../bar
searching for changes
abort: push creates new remote heads!
(did you forget to merge? use push -f to force)

foo% hg push -r7dcfd1fafced ../bar
pushing to ../bar
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files



More information about the Mercurial mailing list