VCS/VersionControl.py

changeset 2853
0866c3aac79f
parent 2771
281c9b30dd91
child 2911
ce77f0b1ee67
child 2965
d133c7edd88a
equal deleted inserted replaced
2848:15c84f1f745a 2853:0866c3aac79f
28 and the common methods. 28 and the common methods.
29 29
30 @signal vcsStatusMonitorData(list of str) emitted to update the VCS status 30 @signal vcsStatusMonitorData(list of str) emitted to update the VCS status
31 @signal vcsStatusMonitorStatus(str, str) emitted to signal the status of the 31 @signal vcsStatusMonitorStatus(str, str) emitted to signal the status of the
32 monitoring thread (ok, nok, op, off) and a status message 32 monitoring thread (ok, nok, op, off) and a status message
33 @signal vcsStatusChanged() emitted to indicate a change of the overall VCS status
33 """ 34 """
34 vcsStatusMonitorData = pyqtSignal(list) 35 vcsStatusMonitorData = pyqtSignal(list)
35 vcsStatusMonitorStatus = pyqtSignal(str, str) 36 vcsStatusMonitorStatus = pyqtSignal(str, str)
37 vcsStatusChanged = pyqtSignal()
36 38
37 canBeCommitted = 1 # Indicates that a file/directory is in the vcs. 39 canBeCommitted = 1 # Indicates that a file/directory is in the vcs.
38 canBeAdded = 2 # Indicates that a file/directory is not in vcs. 40 canBeAdded = 2 # Indicates that a file/directory is not in vcs.
39 41
40 def __init__(self, parent=None, name=None): 42 def __init__(self, parent=None, name=None):
721 723
722 def checkVCSStatus(self): 724 def checkVCSStatus(self):
723 """ 725 """
724 Public method to wake up the VCS status monitor thread. 726 Public method to wake up the VCS status monitor thread.
725 """ 727 """
728 self.vcsStatusChanged.emit()
729
726 if self.statusMonitorThread is not None: 730 if self.statusMonitorThread is not None:
727 self.statusMonitorThread.checkStatus() 731 self.statusMonitorThread.checkStatus()
728 732
729 def clearStatusMonitorCachedState(self, name): 733 def clearStatusMonitorCachedState(self, name):
730 """ 734 """

eric ide

mercurial