| priority | important |
|---|---|
| type | bug |
| appeared in | 0.9.0 |
| done in | 1.7.1 |
| load | 0.250 |
| load left | 0.000 |
| debian bug number | 630692 |
| closed by | #917:32d191e8504d |
| Logilab.org | anonymous [register] [login]
|
hgview #113034 hgview should not manipulated sys.path [validation pending]
|
Comments
The current code now does not work out of the box as cloned repo anymore.
To fix both issues, sys.path manipulations can be used only when the regular import fails (try-except).
After this change was introduced, the README instructions how to use it as a mercurial extension are not valid any more and results in:
*** failed to import extension hgview from /home/wujek/mercurial/ext/hgview/hgext/hgview.py: No module named hgviewlib
hg: unknown command 'qv'
One has to set PYTHONPATH to include hgviewlib module oneself. I would consider it a step back actually, it used to work out of the box.