Wednesday, September 12, 2012

How to remove the revision in Mercurial?

It often happens that in the process of development is required to remove some of the specific revisions. This may be necessary if accidental committing and great confusion in the revisions. To do this, activate the mq-extension, by writing the following to the hgrc-file:

[extensions]
mq =

Then you can go to the console and type the command:

hg strip n

Here n — the revision number, which must be removed by. All revisions to the number above this will be removed, so you need to be careful with the choice of numbers.

0 comments:

Post a Comment