Locks and transactions for dummies

Dirkjan Ochtman dirkjan at ochtman.nl
Tue Jul 21 02:14:55 CDT 2009


On Tue, Jul 21, 2009 at 02:27, Greg Ward<greg-hg at gerg.ca> wrote:
> 1) How do you commit a transaction?  I've copied the "finally: del tr"
> pattern from localrepository.addchangegroup(), so every transaction is
> successfully aborted.  Great.  Now what if there was no error and I
> want to commit it?

Aren't you using the memctx/commitctx routines for committing? If not,
any reason why?

Cheers,

Dirkjan



More information about the Mercurial-devel mailing list