version control - Mercurial - get revision number if nodeid is known -
I have to return to a special amendment. For this, I am using the following command:
hg revert -r REV
(reference -)
But the problem is that even if Only me know that special amendment (at which I want to return) but I do not know the amendment number .
Is there a way in which i amendment number (REV) that nodeid ?
Please help me - I'm already new to thanks Mercurial.
To answer your question and report back to the local revision ID, -n needs to be used:
Identify hg -n -r & lt; Hash & gt; In order to make it really simple, most of the hg commands take the local ID or global hash as a valid identifier so that you can use it only Hg back- R & lt; Hash & gt; --all
My follow-up question is: Why are you returning for a change? To change your working directory at a particular point in history you use
hg update -r & lt; Hash & gt;
And then make a new (anonymous) branch and continue your development from there.
Comments
Post a Comment