On Mon, 01 Oct 2012 16:15:34 -0700, Colin Caughie wrote:
> On 9/30/2012 8:55 AM, Yuya Nishihara wrote:
> > On Thu, 27 Sep 2012 14:04:55 -0700, Colin Caughie wrote:
> >> On 9/22/2012 2:08 AM, Yuya Nishihara wrote:
> >>> On Thu, 20 Sep 2012 12:26:00 -0700, Colin Caughie wrote:
> >>>> I'm running TortoiseHg 2.5 on a Debian system, installed from source as
> >>>> described here: https://bitbucket.org/tortoisehg/thg/wiki/thg
> >>>>
> >>>> It runs fine except for the annoying fact that the revision graph is not
> >>>> visible, it's just a blank column. See attached screenshot.
> >>> Hi,
> >>>
> >>> It looks similar to the following case:
> >>> https://groups.google.com/forum/?fromgroups=#!topic/thg-dev/gQ8qy9oJCHg
> >>>
> >>> Do you use Mercurial 2.2.x or 2.3.x ?
> >>> What happens if you disable all extensions?
> >>>
> >>> Regards,
> >> Apologies for the delay in replying. I'm using 2.3.1. "thg vers" outputs:
> >>
> >> TortoiseHg Dialogs (version 2.5+13-c4b87ec7a201), Mercurial (version 2.3.1)
> >>
> >> Copyright (C) 2008-2012 Steve Borho <[email protected]> and others.
> >> This is free software; see the source for copying conditions. There is NO
> >> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> >>
> >> Disabling all extensions makes no difference. It does look similar to
> >> the case you mention only that was on Windows, and appears to be down to
> >> a mismatch in TortoiseHg and Mercurial whereas I'm using the latest
> >> versions of both.
> >>
> >> I'm wondering if there's some Python package (or Debian package) that I
> >> need to install for the graph display to work?
> > To my knowledge, you only need to install python-qt4 and python-qscintilla2
> > (plus python-qt4-dev for source install.)
> >
> > Could you try the following change?
> > It will show the exception dialog if there is an error during rendering
> > graph.
> >
> > --- a/tortoisehg/hgqt/repomodel.py
> > +++ b/tortoisehg/hgqt/repomodel.py
> > @@ -458,6 +459,7 @@ class HgRepoListModel(QAbstractTableMode
> > try:
> > return self.safedata(index, role)
> > except Exception, e:
> > + raise
> > if role == Qt.DisplayRole:
> > return QVariant(hglib.tounicode(str(e)))
> > else:
> >
> No, the exception dialog doesn't appear when I make that change, still
> just a blank graph column. (I tried forcing an exception in that try
> block to make sure the exception dialog did appear when one was thrown
> there, and it did).
Hmm, I don't have further hopeful idea, but just to be sure, can you test
the following change?
>From the screenshot you posted before, your graphic system is configured to
disable anti-aliasing/alpha-blending.
--- a/tortoisehg/hgqt/repomodel.py
+++ b/tortoisehg/hgqt/repomodel.py
@@ -352,7 +352,7 @@ class HgRepoListModel(QAbstractTableMode
h = pix.height()
dot_y = h / 2
- painter.setRenderHint(QPainter.Antialiasing)
+ #painter.setRenderHint(QPainter.Antialiasing)
pen = QPen(Qt.blue)
pen.setWidth(2)
Regards,
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Tortoisehg-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss