problem writing custom python client
Gabriel
gabriel at opensuse.org
Fri Aug 14 12:59:36 CDT 2009
On Thu, Aug 13, 2009 at 11:28 PM, Benoit Boissinot<bboissin at gmail.com> wrote:
> On Thu, Aug 13, 2009 at 9:52 PM, Gabriel<gabriel at opensuse.org> wrote:
>> Hello all,
>>
>> I'm writing a python client and I wrote a custom ui to manage the
>> user/password prompts:
>>
>> The authentication failed. It seems push is using it's own ui instance.
>>
> Did you verify this? (there are only 3 places where a new ui object is created)
I added some prints to the overwritten methods, they are invoked
though the attributes are undefined.
>
>> Is there a better way to do this? Or maybe someone could point me to a
>> good API documentation (the one here
>> http://mercurial.selenic.com/wiki/MercurialApi is not helpful)
>
> not sure if it helps, but it might be easier to subclass and monkeypatch the
> passwordmgr from mercurial.url
Will check that. Though I prefer to use another approach rather than
patching mercurial files.
--
Kind Regards
More information about the Mercurial
mailing list