[PATCH 0 of 1 hglib POC] hglib: a Python wrapper around hg's cmdserver

Martin Geisler mg at aragost.com
Mon Jul 4 07:36:07 CDT 2011


Idan Kamara <idankk86 at gmail.com> writes:

> On Mon, Jul 4, 2011 at 1:46 PM, Martin Geisler <mg at aragost.com> wrote:
>>
>> Idan Kamara <idankk86 at gmail.com> writes:
>>
>> > - hgclient.commit() is hacky: it uses hgclient.tip() to return the
>> > committed revision. afaik there's no way to get 'hg commit' to output
>> > the just committed node id, maybe it needs a new option? (import is
>> > also problematic)
>>
>> Use 'hg commit --debug' to make it print the changeset hash.
>
> Nice, didn't know that. But do we have the usual API guarantees on the
> various commands output when using --debug?

In this case yes, since the output is actually triggered by -v too, but
with --debug you get the full changeset ID.

-- 
Martin Geisler

aragost Trifork
Professional Mercurial support
http://mercurial.aragost.com/kick-start/


More information about the Mercurial-devel mailing list