I am working on some bugs in our code base and I have created separate branches for each bug. I have rebased one of the branches on top of default
. I generally use the Mercurial plugin for Eclipse and do a push (when I am in the default branch). This pushes my changes on the default branch.
I tried to do the same thing with TortoiseHg. When I press push, the client complains that I am about to create remote heads/create new branches on the server. Is there some way to push only changes on one branch using TortoiseHg?
Thanks for your answers!
The easiest way to do this is via the command-line using hg push -r .
from the branch with the change you want to push. See hg nudge
for details.
That being said, it is also possible via TortoiseHG:
This should only push the changeset you specified (along with any parents of that changeset which may be required). If you limit the changesets that are pushed to those on your default branch, there should be no warning about creating additional heads.
More information (well, not that much) can be found in the Section 4.9 of the TortoiseHg documentation.