Reputation: 52533
I have a large codebase that I have been working on for a while. It is not ready to push live, even experimentally. However, my client is requiring a minor change that I cannot fix without pushing my whole new update (which is not ready). I would like to do the following:
I don't want to screw anything up though. Can anyone offer some advice on how to do this?
Thanks
Upvotes: 1
Views: 791
Reputation: 249404
Sure.
hg clone
then hg update <rev>
to the stable changesethg commit
hg push
to the server (your new patch)hg pull
in your main development clone when you don't have any uncommitted changes, then do hg rebase
to make Mercurial adjust your main development changesets to come after the patch we made above. The history will then be as if the "hotfix" had been done before you started working on your new development.Upvotes: 1