eric6/Plugins/VcsPlugins/vcsPySvn/SvnPropListDialog.py

branch
maintenance
changeset 8273
698ae46f40a4
parent 8222
5994b80b8760
equal deleted inserted replaced
8190:fb0ef164f536 8273:698ae46f40a4
33 Constructor 33 Constructor
34 34
35 @param vcs reference to the vcs object 35 @param vcs reference to the vcs object
36 @param parent parent widget (QWidget) 36 @param parent parent widget (QWidget)
37 """ 37 """
38 super(SvnPropListDialog, self).__init__(parent) 38 super().__init__(parent)
39 self.setupUi(self) 39 self.setupUi(self)
40 SvnDialogMixin.__init__(self) 40 SvnDialogMixin.__init__(self)
41 41
42 self.refreshButton = self.buttonBox.addButton( 42 self.refreshButton = self.buttonBox.addButton(
43 self.tr("Refresh"), QDialogButtonBox.ButtonRole.ActionRole) 43 self.tr("Refresh"), QDialogButtonBox.ButtonRole.ActionRole)
122 os.chdir(dname) 122 os.chdir(dname)
123 with E5MutexLocker(self.vcs.vcsExecutionMutex): 123 with E5MutexLocker(self.vcs.vcsExecutionMutex):
124 try: 124 try:
125 for name in fnames: 125 for name in fnames:
126 proplist = self.client.proplist(name, recurse=recursive) 126 proplist = self.client.proplist(name, recurse=recursive)
127 counter = 0 127 for counter, (path, prop) in enumerate(proplist):
128 for path, prop in proplist:
129 for propName, propVal in list(prop.items()): 128 for propName, propVal in list(prop.items()):
130 self.__generateItem(path, propName, propVal) 129 self.__generateItem(path, propName, propVal)
131 self.propsFound = True 130 self.propsFound = True
132 counter += 1 131 if (
133 if counter == 30: 132 counter % 30 == 0 and
133 self._clientCancelCallback()
134 ):
134 # check for cancel every 30 items 135 # check for cancel every 30 items
135 counter = 0 136 break
136 if self._clientCancelCallback():
137 break
138 if self._clientCancelCallback(): 137 if self._clientCancelCallback():
139 break 138 break
140 except pysvn.ClientError as e: 139 except pysvn.ClientError as e:
141 self.__showError(e.args[0]) 140 self.__showError(e.args[0])
142 141

eric ide

mercurial