Mercurial+TortoiseHG revision back out

Here is the problem. Say, I have revision 1 and 5 (quite a lot of files and lines of code were added in the later). Now I need to return the project to the state of the 1st revision and that's what I understand the back out is for. But I always end up with all the files and lines of code I don't need anymore.

Answers


What you want is update, in your case hg update -r 1 (select revision 1 in hg workspace, right click on it and select update).

Backout has a very different meaning: it reverses the changes of one particular revision, so that afterwards it seems, that this revision did not happen (of course it is visible in the project history, but the changes to the working copy are gone.)

Files, which are not in version control can be removed with hg purge (I don't know if this command is available in tortoiseHg).

When you even don't want the revisions 2-5 anymore (and are really sure about that), you can enable the mq extension, and strip the unwanted revisions.


Need Your Help

Execute tests based on Xunit filtered by traits in Teamcity

msbuild teamcity xunit xunit.net

I'm moving my projects from NUnit to xUnit test framework. We are executing tests in TeamCity via MSBuild task. I would like to exclude tests by categories. In NUnit and Teamcity this is simple.

regular expression ruby phone number

ruby regex rubular

I'm trying to figure out how to write my own regex.