Staging
v0.5.1
https://foss.heptapod.net/mercurial/hgview
Revision ed1e6de133b9e0efd46e412e1803705724215f17 authored by Mads Kiilerich on 31 March 2020, 21:49:48 UTC, committed by Mads Kiilerich on 31 March 2020, 21:49:48 UTC
pyrcc5 doesn't support py2 code generation and doesn't have the -py3 option.

This will thus effectively drop hgview Python 2 support. No big deal.
1 parent 826e628
Raw File
Tip revision: ed1e6de133b9e0efd46e412e1803705724215f17 authored by Mads Kiilerich on 31 March 2020, 21:49:48 UTC
qt5: drop pyrcc py3 code generation option
Tip revision: ed1e6de
hgview
#!/usr/bin/env python3
# hgview: visual mercurial graphlog browser in PyQt5
#
# Copyright 2008-2010 Logilab
#
# This software may be used and distributed according to the terms
# of the GNU General Public License, incorporated herein by reference.

"""
Hg repository log browser.

This may be used as a standalone application or as a hg extension. See
README file included.
"""

import sys
from os import readlink, lstat
from os.path import join, dirname, abspath, pardir, exists
from imp import load_package
import stat


execpath = abspath(__file__)
#   resolve symbolic links
statinfo = lstat(execpath)
if stat.S_ISLNK(statinfo.st_mode):
    execpath = join(dirname(execpath), readlink(execpath))
    execpath = abspath(execpath)
# if standalone, import manually
setuppath = join(dirname(dirname(execpath)), 'setup.py')
if exists(setuppath): # standalone if setup.py found in src dir
    hgviewlibpath = join(dirname(dirname(execpath)), 'hgviewlib')
    hgviewlibpath = abspath(hgviewlibpath)
    load_package('hgviewlib', hgviewlibpath)

from hgviewlib.application import main

main()
back to top