Mercurial Hook Question

Benoit Boissinot bboissin at gmail.com
Thu Aug 2 08:34:11 CDT 2007


On 8/1/07, Milen Georgiev Dzhumerov <gamehack at gmail.com> wrote:
> Hi all,
>
> I've got a quickie. I've got a commit hook which is defined to accept
> the following arguments (ui, repo, **kwargs):. Now the question is
> how do I get the local decimal representation of the committed node?
> I can get the SHA-1 hash by looking up kwargs["node"] but not the
> local number (like revision 17, etc).

repo.changelog.rev(node)

regards,

Benoit


More information about the Mercurial mailing list