Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.1, 2.0.2, and 2.0.3

stable qtlib: enforce minimum Qt and PyQt versions (refs #258)

If the minimum requirements are not met, it will crash later in messier ways

Changeset f1bbb745c63b

Parent cba36ce4320f

by Steve Borho

Changes to one file · Browse files at f1bbb745c63b Showing diff from parent cba36ce4320f Diff from another changeset...

 
13
14
15
16
17
18
19
20
21
22
 
 
 
 
 
 
 
 
 
 
23
24
25
 
13
14
15
 
 
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@@ -13,13 +13,21 @@
 import tempfile  import re   -from PyQt4.QtCore import * -from PyQt4.QtGui import *  from mercurial import extensions    from tortoisehg.util import hglib, paths, wconfig  from hgext.color import _styles   +from PyQt4.QtCore import * +from PyQt4.QtGui import * + +if PYQT_VERSION_STR.split('.') < ['4', '7'] or \ + QT_VERSION_STR.split('.') < ['4', '6']: + sys.stderr.write('TortoiseHg requires Qt 4.6 and PyQt 4.7\n') + sys.stderr.write('You have Qt %s and PyQt %s\n' % + (QT_VERSION_STR, PYQT_VERSION_STR)) + sys.exit() +  tmproot = None  def gettempdir():   global tmproot