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:
- Take a stable changeset (I know which one) and create a codebase that I can then work from in Visual Studio.
- Make the (very minor) update
- Commit my change
- Upload my change to the server
- Merge/push my changes
- Be able to go on working on my current project with that minor change included
I don’t want to screw anything up though. Can anyone offer some advice on how to do this?
Thanks
Sure.
hg clonethenhg update <rev>to the stable changesethg commithg pushto the server (your new patch)hg pullin your main development clone when you don’t have any uncommitted changes, then dohg rebaseto 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.