Staging
v0.4.2
https://foss.heptapod.net/mercurial/hgview

sort by:
Revision Author Date Message Commit Date
80723a5 [pkg] version 1.11.0 23 August 2019, 15:12:28 UTC
c34a4d2 Avoid iterator.repeat warning - just drop python2.5 support Addresss 2to3 warnings while refactoring: RefactoringTool: ### In file ./hgviewlib/curses/graphlog.py ### RefactoringTool: Line 36: You should use 'operator.mul(fillvalue)' here. 08 August 2019, 23:58:28 UTC
167756c Invoke pyrcc4 with -py3 to generate resource files that works for Python >= 2.6 - including 3 https://www.riverbankcomputing.com/static/Docs/PyQt4/resources.html 09 August 2019, 00:27:50 UTC
29958b0 Fail loud and clear if pyuic4 fails 14 August 2019, 10:00:55 UTC
0e15ed1 Resource files should usually not be rebuild with pyuic4 at runtime ... but be verbose when we do Like 964b75047ba2. For some reason this isn't directly built from setup.py ... 14 August 2019, 09:59:28 UTC
8476201 Show revision tool tips black - they showed up unreadable as white on bright yellow I don't know the root cause of this, and there must be way better ways to do it. But this works for me and is the best I could come up with. 14 August 2019, 00:45:21 UTC
3fa2434 Load Mercurial configuration when starting repos Mercurial d83ca854fa21 4.1 introduced ui.load which should be used to actually read the repo config. The configuration might enable important extensions or configure username. 13 August 2019, 21:59:59 UTC
543d2ec Fix annotation crash Mercurial 2e32c6a31cc7 introduced annotateline in 4.4 . 13 August 2019, 21:08:13 UTC
306aab0 On reload, use hgviewlib.util.build_repo - not the non-existent mercurial.util.build_repo 13 August 2019, 21:04:19 UTC
8ea243e Fix "AttributeError: 'QString' object has no attribute 'encode'" crash on startup Evidently a problem that only is seen in some setups, and not in others. But for example on Fedora Linux, we see "AttributeError: 'QString' object has no attribute 'encode'" evidently from the hgviewlib/qt4/hgrepoviewer.py "compose" with to_utf8 = methodcaller('encode', 'utf-8') The root cause of the problem seems to be that Qt for some reason sometimes in some setups in some places will return QStrings in some places instead of plain unicode strings. (On Fedora, I see QString when using Python 2, and plain unicode str when using Python 3, so I assume that problem has been fixed now.) It seems quite reasonable that a Qt callback must be able to handle Qt strings. So let's just handle the problem when we see it, without wrapping the event handlers with confusing "compose". The old behaviour of always encoding unicode strings as utf-8 (which be different than the encoding of the Mercurial repo) also seems questionable, but don't change that. 13 August 2019, 20:05:00 UTC
54fb1b9 Improve pyrcc4 error reporting pyrcc4 might be run at runtime if resources seem out of date. That is a bit of hack, hopefully only used during development. pyrcc4 might not be available if development isn't installed. Make it explicit that something is outdated and we "have" to run it. Also when running it properly from setup.py, the error message could disappear in the long log. Make sure to report failures loud and clear, and make a brutal exit. setup.py will now fail like: Resource files are outdated, ran: ['pyrcc4', 'hgviewlib/qt4/hgqv.qrc', '-o', 'build/lib/hgviewlib/qt4/hgqv_rc.py'] pyrcc4 failed: [Errno 2] No such file or directory Failure at runtime will look like: Resource files are outdated, running: pyrcc4 /home/mk/hgview/hgviewlib/qt4/hgqv.qrc -o /home/mk/hgview/hgviewlib/qt4/hgqv_rc.py sh: pyrcc4: command not found ERROR: Cannot convert the resource file '/home/mk/hgview/hgviewlib/qt4/hgqv.qrc' into a python module. Please check the PyQt 'pyrcc4' tool is installed, or do it by hand running 13 August 2019, 10:51:39 UTC
101447d Replace file() with future proof open() 10 August 2019, 12:54:00 UTC
547272f Don't use None as modified date if repo is locked - that doesn't have a natural ordering with previous check time 11 August 2019, 10:39:10 UTC
60a3791 Proper implementation of updateRowCount Python2 allows comparing integers with None, and it thus worked. But the proper thing is evidently to set it to 0. 10 August 2019, 12:21:31 UTC
cd36f70 Drop odd unused import of "nonexistent" os.path.glob 09 August 2019, 22:35:33 UTC
e0f61d2 Report relevant values in assert failures This would have helped me debug some failures ... 10 August 2019, 12:25:35 UTC
8d8eb3a Cleanup: more clean handling of status that may be a QVariant Redo e73ef9c7f733 in a more elegant way. 30 July 2019, 14:03:40 UTC
d06c1ae Fix curses UI crash when hitting TAB and other undefined keys There is no NoneType.startswith . 12 August 2019, 15:22:46 UTC
f4908c6 Drop old hack and use linkrev when finding revision from filelog Fix AttributeError: 'filelog' object has no attribute 'index' on double clicking filename. 11 August 2019, 09:16:01 UTC
b45de60 Mercurial no longer support revision numbers as strings - they must be integers Passing it as integer has always been supported. Fix crash when clicking parent revision hash: mercurial.error.ProgrammingError: unsupported changeid '1152' of type <type 'str'> 10 August 2019, 14:11:22 UTC
back to top