Assuming that the extension is listed in the extensions section of the hgrc file containing the hook I am running, how can I call the extension, similar to say, commands.update(...) from the hook. The extension in question is 'purge'. Thanks Mick