Thu, 14 Feb 2008 18:08:16 -0200 revert: only call dirstate.normal when we know the file is clean
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Thu, 14 Feb 2008 18:08:16 -0200] rev 6108
revert: only call dirstate.normal when we know the file is clean
Thu, 14 Feb 2008 18:08:16 -0200 commands.revert: don't call hg.revert
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Thu, 14 Feb 2008 18:08:16 -0200] rev 6107
commands.revert: don't call hg.revert commands.revert calculates everything that has to be done and then calls hg.revert to checkout and remove files. Unfortunately, hg.revert has to recalculate everything and that can take a long while, since it always operates on the whole working dir. Changing commands.revert to manually checkout and remove files makes things considerably faster, especially if we're reverting a single file in a repo with a huge number of files. This should be enough to close issue857.
(0) -3000 -1000 -300 -100 -30 -10 -2 +2 +10 +30 +100 +300 +1000 +3000 +10000 +30000 tip