What's the best way to execute a Mercurial command from an extension?
Paul Moore
p.f.moore at gmail.com
Mon Apr 7 21:21:32 UTC 2008
On 07/04/2008, Paul Moore <p.f.moore at gmail.com> wrote:
> Hmm, OK. I was going to say "but some commands are a bit complicated,
> so all I'd be doing is copying the code" - but as I looked, I found
> that this probably isn't the case.
I found the one that scared me before... revert. I want to do a "hg
revert -r tip --all". I have no idea how I would implement that, short
of copying the code wholesale.
Is there a lower-level way of executing a "hg revert"? (I suspect not,
as otherwise why not use it in commands.revert?)
If not, I'll probably use commands.revert and fix up the other ones I'm using.
Regards,
Paul.
More information about the Mercurial
mailing list