eric6/Plugins/VcsPlugins/vcsPySvn/SvnStatusDialog.py

branch
without_py2_and_pyqt4
changeset 7192
a22eee00b052
parent 6942
2602857055c5
child 7229
53054eb5b15a
equal deleted inserted replaced
7191:960850ec284c 7192:a22eee00b052
9 """ 9 """
10 10
11 from __future__ import unicode_literals 11 from __future__ import unicode_literals
12 12
13 import os 13 import os
14 import sys
15 14
16 import pysvn 15 import pysvn
17 16
18 from PyQt5.QtCore import QMutexLocker, Qt, pyqtSlot 17 from PyQt5.QtCore import QMutexLocker, Qt, pyqtSlot
19 from PyQt5.QtGui import QCursor 18 from PyQt5.QtGui import QCursor
324 depth = pysvn.depth.infinity 323 depth = pysvn.depth.infinity
325 else: 324 else:
326 depth = pysvn.depth.immediate 325 depth = pysvn.depth.immediate
327 changelists = self.client.get_changelist(name, depth=depth) 326 changelists = self.client.get_changelist(name, depth=depth)
328 for fpath, changelist in changelists: 327 for fpath, changelist in changelists:
329 if sys.version_info[0] == 2:
330 fpath = fpath.decode('utf-8')
331 changelist = changelist.decode('utf-8')
332 fpath = Utilities.normcasepath(fpath) 328 fpath = Utilities.normcasepath(fpath)
333 changelistsDict[fpath] = changelist 329 changelistsDict[fpath] = changelist
334 hideChangelistColumn = hideChangelistColumn and \ 330 hideChangelistColumn = hideChangelistColumn and \
335 len(changelistsDict) == 0 331 len(changelistsDict) == 0
336 332

eric ide

mercurial