Staging
v0.5.1
https://foss.heptapod.net/mercurial/hgview
Revision e0ca971d89ab594a59db6a290b5e15654639169b authored by Takumi IINO on 18 June 2012, 14:34:46 UTC, committed by Takumi IINO on 18 June 2012, 14:34:46 UTC
Press ':r[enter]', get a stack trace.

:introduced by: `df0bd07d63bccc087f563cf6e29a4918caa554b5`_
1 parent d1bc043
Raw File
Tip revision: e0ca971d89ab594a59db6a290b5e15654639169b authored by Takumi IINO on 18 June 2012, 14:34:46 UTC
[tui] set attribute '_walker' to RepoViewer (closes #98686)
Tip revision: e0ca971
hgview.bat
@echo off
rem = """-*-Python-*- script
rem -------------------- DOS section --------------------
rem You could set PYTHONPATH
python -x %~f0 %*
goto exit
 
"""
# -------------------- Python section --------------------
from PyQt4 import QtCore, QtGui
import os
import sys
import os.path as pos

try:
    import hgviewlib
except ImportError:
    import stat
    execpath = pos.abspath(__file__)
    # resolve symbolic links
    statinfo = os.lstat(execpath)
    if stat.S_ISLNK(statinfo.st_mode):
        execpath = pos.abspath(pos.join(pos.dirname(execpath),
                                        os.readlink(execpath)))
    sys.path.append(pos.abspath(pos.join(pos.dirname(execpath), "..")))

from hgviewlib.application import main
main()

DosExitLabel = """
:exit
rem """
back to top