Plugins/VcsPlugins/vcsPySvn/SvnStatusMonitorThread.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 13
1af94a91f439
equal deleted inserted replaced
11:b0996e4a289e 12:1d8dd9706f46
97 try: 97 try:
98 if self.reportedStates[file.path] != status: 98 if self.reportedStates[file.path] != status:
99 self.statusList.append("%s %s" % (status, file.path)) 99 self.statusList.append("%s %s" % (status, file.path))
100 except KeyError: 100 except KeyError:
101 self.statusList.append("%s %s" % (status, file.path)) 101 self.statusList.append("%s %s" % (status, file.path))
102 for name in self.reportedStates.keys(): 102 for name in list(self.reportedStates.keys()):
103 if name not in states: 103 if name not in states:
104 self.statusList.append(" %s" % name) 104 self.statusList.append(" %s" % name)
105 self.reportedStates = states 105 self.reportedStates = states
106 res = True 106 res = True
107 statusStr = \ 107 statusStr = \
108 self.trUtf8("Subversion status checked successfully (using pysvn)") 108 self.trUtf8("Subversion status checked successfully (using pysvn)")
109 except pysvn.ClientError, e: 109 except pysvn.ClientError as e:
110 res = False 110 res = False
111 statusStr = e.args[0] 111 statusStr = e.args[0]
112 os.chdir(cwd) 112 os.chdir(cwd)
113 return res, statusStr 113 return res, statusStr
114 114

eric ide

mercurial