Hi Thomas,
The best way to exchange about hgview is through the mailing list (python-
[email protected], I've just sent you an invitation to join. If it
gets eaten by your spam filter, please look at
http://lists.logilab.org/mailman/listinfo/python-projects)
---------- Forwarded Message ----------
Subject: hgview: dates missing in window list
Date: Thursday 14 January 2010
From: Tomas Psika <[email protected]>
To: David Douard <[email protected]>, Alexandre Fayolle
<[email protected]>, Aurelien Campeas <[email protected]>
Hi all,
I couldnt find any way to create ticket on logilab website. And
anonymous users cannot push changes to the source repository. So I
choose email communication to send a bugfix.
Problem:
Dates of changes are missing in main application window (table).
Version: 1.1.3 (compiled on gentoo ~x86).
Locale: 'cs_CZ.UTF-8'
Python 2.6.4
PyQt 3.18.1
Solution:
<<patch against current 'tip' which fixes this problem is in email
attachment>>
Regards.
Tomas Psika
Czech Republic
-------------------------------------------------------
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Informatique scientifique: http://www.logilab.fr/science
lavois...@ghomer ~/tmp/hgviewgit/hgview/hgviewlib/qt4 $ hg diff -r 573 -r 572
diff -r b42ad085c889 -r 483e4e4ca292 hgviewlib/qt4/hgrepomodel.py
--- a/hgviewlib/qt4/hgrepomodel.py Thu Jan 14 19:03:32 2010 +0100
+++ b/hgviewlib/qt4/hgrepomodel.py Wed Jan 13 19:47:57 2010 +0100
@@ -62,7 +62,7 @@
formatted QString
"""
date, tzdelay = date
- return
QtCore.QDateTime.fromTime_t(int(date)).toString(QtCore.Qt.DefaultLocaleShortDate)
+ return
QtCore.QDateTime.fromTime_t(int(date)).toString(QtCore.Qt.LocaleDate)
def gettags(model, ctx, gnode):
mqtags = ['qbase', 'qtip', 'qparent']
@@ -85,7 +85,7 @@
_columnmap = {'ID': lambda model, ctx, gnode: str(ctx.rev()),
'Log': getlog,
'Author': lambda model, ctx, gnode: tounicode(ctx.user()),
- 'Date': lambda model, ctx, gnode:
tounicode(cvrt_date(ctx.date())),
+ 'Date': lambda model, ctx, gnode: cvrt_date(ctx.date()),
'Tags': gettags,
'Branch': lambda model, ctx, gnode: ctx.branch(),
'Filename': lambda model, ctx, gnode: gnode.extra[0],
lavois...@ghomer ~/tmp/hgviewgit/hgview/hgviewlib/qt4 $ hg -v log -r 573
changeset: 573:b42ad085c889
tag: tip
user: Tomas Psika <[email protected]>
date: Thu Jan 14 19:03:32 2010 +0100
files: hgviewlib/qt4/hgrepomodel.py
description:
Show dates in main window list.
Obsolete date format replaced.
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects