log windows closes instantly when calling from a virtual repository
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Explorer |
Confirmed
|
Medium
|
Unassigned | ||
QBzr |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Bazaar 2.3.3-3 on Win7 32 Bit:
1. I open a virtual repository in my Bazaar Explorer.
2. I click on 'Log'.
3. The log windows closes itself instantly.
If i look in my .bzr.log, I see the reason - it's not a branch (of course):
=======
Fri 2011-05-27 12:16:37 +0200
0.073 bazaar version: 2.3.3
0.073 bzr arguments: [u'qlog', u'C:/BZR-Repos']
0.102 looking for plugins in C:/Users/
0.103 looking for plugins in C:/Program Files/Bazaar/
0.285 encoding stdout as osutils.
0.493 Traceback (most recent call last):
File "C:/Program Files/Bazaar/
File "C:/Program Files/Bazaar/
File "C:/Program Files/Bazaar/
File "bzrlib\
File "bzrlib\
File "bzrlib\
NotBranchError: Not a branch: "C:/BZR-Repos/".
0.506 return code 0
=======
An error message or simply a deactivated Log button while in a virtual repository would be very helpful to avoid confusion. Only an opening and instantly closing window isn't very helpful.
IThat's because bzr-explorer calls qlog and qlog got NotBranchError, prints it to the stdout and exit. And because stdout with explorer may not exists at all, we have this issue.
I think we can add --ui-mode or something similar to qlog and other browse commands to make sure qbzr don't print error messages to stdout but shows GUI error dialog instead.