Comment 18 for bug 297372

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 297372] Re: TortoiseBzr does not open authentication window

Robert Collins пишет:
> On Thu, 2009-01-01 at 07:20 +0000, Mark Hammond wrote:
>>
>> So the big question is integration with bzr, particularly integration
>> with any existing credentials-gathering it does. Dealing with the
>> hwnd
>> and "am I a console app" question might also be tricky. Hopefully the
>> bzr developers can offer advice on how to move forward on this.
>
> We have a ui module; I'd be inclined to suggest that the win32 bzr
> determine as it starts up if its a gui invocation or a cli, and set an
> appropriate ui factory. Then provide a callback into the ui factory (you
> may well need to extend it, or the interface may be sufficient - I don't
> know). You could use the existing query-for-password method, but I
> suspect that really what you want is to know 'am I CLI' and secondly
> [for GUI's only] gimme the HWnd.

Robert, this is exactly how QBzr working today.