I deleted a project in my solution, committed many times and now found out that I still need that deleted project. Is there a way to restore it with keeping it’s history?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming what was deleted was actually tracked in the repository:
By doing this, you are simply telling mercurial to bring back those files, as they were when you deleted them. No other files will be reverted, just take care to specify their previous locations correctly. You can find that just going through your history.
From the output of
hg --help revert:And for reference (the options) [-r is what you want here]: