Supposing I have following scenario: I cloned some open-source project, say from URL X. Now I have local clone of it.
I made some changes to local clone to try things out and commited them locally. Now what I want is following:
I want to get update from the open-source project X. Just get all its latest code, without my changes at all. But I want my changes to live somewhere in tag in history so I can get them later. And I don't want to separate clone for this, want it all in my one repo.
For now I did following:
- Tag my changes with
hg tag
- Pull & merge latest code from URL X
- Revert repository to latest revision of URL X
But I feel this isn't good way and it's roundabout. I think there's better way. Could you please suggest? Thank you