Staging
v0.5.1
https://foss.heptapod.net/mercurial/hgview
Revision c54eb2cb4e3092e5e3280b94fe0f676d5cd4be2d authored by David Douard on 04 December 2009, 21:22:51 UTC, committed by David Douard on 04 December 2009, 21:22:51 UTC
- identidy changesets that are MQ patches in the graph using icons,
- identify them also in the revision metadata textview
1 parent 7d77327
Raw File
Tip revision: c54eb2cb4e3092e5e3280b94fe0f676d5cd4be2d authored by David Douard on 04 December 2009, 21:22:51 UTC
Add simple support for mq
Tip revision: c54eb2c
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.qt4.hgrepoviewer import main 
main()

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