Repo based version numbering

Benoit Boissinot bboissin at gmail.com
Mon Nov 10 09:21:56 CST 2008


On Mon, Nov 10, 2008 at 4:01 PM, Alpár Jüttner <alpar at cs.elte.hu> wrote:
>>       * I haven't dig into the Mercurial API deeply enough. :) As you
>>         can see in the history, I've just changed the code to use the
>>         API instead of just executing 'hg log --template{}' and parsing
>>         the result.
>
> BTW, how much can I rely on the stability of the Mercurial API? Is there
> any official statement on this?
>
> For example, I noticed that repo.changectx(changeid).parents() always
> returns a list of length two in version 1.0.2, while in the current crew
> version, the returned lists is of variable length, it consists of only
> the parents (except for revision 0, which has no parent, still the
> length of the parent list is one).

We try not to break the API, especially the high-level API (commands, context).

I couldn't find any official statement on the wiki, so I guess we
don't make any guarantee
(on the other hand if it's use by an extension from hgext, and this
extension provides some
tests, we will fix the extension if we change the API).

regards,

Benoit



More information about the Mercurial mailing list