22 |
22 |
23 def __init__(self, interval, project, vcs, parent=None): |
23 def __init__(self, interval, project, vcs, parent=None): |
24 """ |
24 """ |
25 Constructor |
25 Constructor |
26 |
26 |
27 @param interval new interval in seconds (integer) |
27 @param interval new interval in seconds |
28 @param project reference to the project object (Project) |
28 @type int |
|
29 @param project reference to the project object |
|
30 @type Project |
29 @param vcs reference to the version control object |
31 @param vcs reference to the version control object |
30 @param parent reference to the parent object (QObject) |
32 @type Git |
|
33 @param parent reference to the parent object |
|
34 @type QObject |
31 """ |
35 """ |
32 VcsStatusMonitorThread.__init__(self, interval, project, vcs, parent) |
36 VcsStatusMonitorThread.__init__(self, interval, project, vcs, parent) |
33 |
37 |
34 self.__ioEncoding = Preferences.getSystem("IOEncoding") |
38 self.__ioEncoding = Preferences.getSystem("IOEncoding") |
35 |
39 |
54 <li>"?" path is not tracked</li> |
58 <li>"?" path is not tracked</li> |
55 <li>"!" path is missing</li> |
59 <li>"!" path is missing</li> |
56 <li>" " path is back at normal</li> |
60 <li>" " path is back at normal</li> |
57 </ul> |
61 </ul> |
58 |
62 |
59 @return tuple of flag indicating successful operation (boolean) and |
63 @return tuple of flag indicating successful operation and a status message |
60 a status message in case of non successful operation (string) |
64 in case of non successful operation |
|
65 @rtype tuple of (bool, str) |
61 """ |
66 """ |
62 self.shouldUpdate = False |
67 self.shouldUpdate = False |
63 |
68 |
64 # step 1: get overall status |
69 # step 1: get overall status |
65 args = self.vcs.initCommand("status") |
70 args = self.vcs.initCommand("status") |