Mercurial - revert the uncommitted changes after did "hg update -C" -


i'm new mercurial. did hg status , saw files changed since last commit have m in front. tried hg update -c. there way can version of files m before did hg update -c? or pretty screwed? :( since hg update -c discards changes since last commit

unfortunately, it's right there in hg update:

options:  -c --clean     discard uncommitted changes (no backup) 

the proper workflow have been commit outstanding changes (which presumably create new head) , merge commit revisions wanted import.

if don't having commit half-baked set of changes, check out shelve extension, designed this: temporarily puts aside or of uncommitted changes, allowing run hg operations before bring them again. (shelve not distributed mercurial, think tortoisehg may include it).


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -