Ok, I have tried searching for something concrete, but haven't come up with anything.
If I am working away on new features in my default branch and a bug report comes in from previous work, what is the best way to handle the fix and pushing? I was trying Bookmarks, but then I saw that it also pushes ancestors. This is what I was doing...
And that's when I noticed that 76 also went up.
Since I don't want new unfinished work going up, just the bug fix, what would be the best way to approach this? Clones for bugs?
Thanks.
You were setting your fix1 bookmark on the same changeset as the main bookmark instead of first updating to the desired changeset where to fix the bug. And when pushing, you can define the revisions to be pushed with the -r parameter. This will only push the branch and ancestors of the specified revision (the branch with your fixes in this case).
Try something like:
hg bookmark main
hg update -r 50
hg bookmark fix1
hg commit -m 'bug fix part 1'
hg commit -m 'bug fix part 2'
hg push -rfix1
hg update main
hg merge fix1
hg bookmark -d fix1