Rollback performance

Greg Ward greg-hg at gerg.ca
Fri Nov 13 08:54:53 CST 2009


On Fri, Nov 13, 2009 at 9:43 AM, Greg Ward <greg-hg at gerg.ca> wrote:
> I'm debugging a 'changegroup' hook right now, so am repeatedly running
> 'hg rollback' to undo a push in a large repository.  And it's slow!  I
> wondered why, so I profiled it:

Oops, my mistake.  I have an extension that wraps
localrepository.destroy() to do some stuff.  Looks like it's
accidentally at fault.  When I disabled that extension, rollback time
dropped from 29 sec to 0.2 sec.

Greg


More information about the Mercurial-devel mailing list