eric6/Plugins/VcsPlugins/vcsPySvn/SvnChangeListsDialog.py

branch
without_py2_and_pyqt4
changeset 7192
a22eee00b052
parent 6942
2602857055c5
child 7229
53054eb5b15a
equal deleted inserted replaced
7191:960850ec284c 7192:a22eee00b052
8 """ 8 """
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 import os 12 import os
13 import sys
14 13
15 import pysvn 14 import pysvn
16 15
17 from PyQt5.QtCore import pyqtSlot, Qt, QMutexLocker 16 from PyQt5.QtCore import pyqtSlot, Qt, QMutexLocker
18 from PyQt5.QtGui import QCursor 17 from PyQt5.QtGui import QCursor
88 entries = self.client.get_changelist( 87 entries = self.client.get_changelist(
89 path, depth=pysvn.depth.infinity) 88 path, depth=pysvn.depth.infinity)
90 for entry in entries: 89 for entry in entries:
91 file = entry[0] 90 file = entry[0]
92 changelist = entry[1] 91 changelist = entry[1]
93 if sys.version_info[0] == 2:
94 file = file.decode('utf-8')
95 changelist = changelist.decode('utf-8')
96 if changelist not in self.changeListsDict: 92 if changelist not in self.changeListsDict:
97 self.changeListsDict[changelist] = [] 93 self.changeListsDict[changelist] = []
98 filename = file.replace(path + os.sep, "") 94 filename = file.replace(path + os.sep, "")
99 if filename not in self.changeListsDict[changelist]: 95 if filename not in self.changeListsDict[changelist]:
100 self.changeListsDict[changelist].append(filename) 96 self.changeListsDict[changelist].append(filename)

eric ide

mercurial