src/eric7/Plugins/VcsPlugins/vcsGit/GitFetchDialog.py

branch
eric7
changeset 10438
4cd7e5a8b3cf
parent 10373
093dcebe5ecb
child 10439
21c28b0f9e41
equal deleted inserted replaced
10437:2f70ca07f0af 10438:4cd7e5a8b3cf
21 def __init__(self, vcs, repodir, parent=None): 21 def __init__(self, vcs, repodir, parent=None):
22 """ 22 """
23 Constructor 23 Constructor
24 24
25 @param vcs reference to the git object 25 @param vcs reference to the git object
26 @param repodir directory name of the local repository (string) 26 @type Git
27 @param parent reference to the parent widget (QWidget) 27 @param repodir directory name of the local repository
28 @type str
29 @param parent reference to the parent widget
30 @type QWidget
28 """ 31 """
29 super().__init__(parent) 32 super().__init__(parent)
30 self.setupUi(self) 33 self.setupUi(self)
31 34
32 self.__vcs = vcs 35 self.__vcs = vcs
76 @pyqtSlot(str) 79 @pyqtSlot(str)
77 def on_remotesComboBox_currentTextChanged(self, txt): 80 def on_remotesComboBox_currentTextChanged(self, txt):
78 """ 81 """
79 Private slot to handle changes of the selected repository. 82 Private slot to handle changes of the selected repository.
80 83
81 @param txt current text of the combo box (string) 84 @param txt current text of the combo box
85 @type str
82 """ 86 """
83 self.remoteEdit.setReadOnly(txt != self.__custom) 87 self.remoteEdit.setReadOnly(txt != self.__custom)
84 self.remoteBranchesList.setEnabled(txt != self.__all) 88 self.remoteBranchesList.setEnabled(txt != self.__all)
85 self.remoteEdit.clear() 89 self.remoteEdit.clear()
86 self.remoteBranchesList.clear() 90 self.remoteBranchesList.clear()
97 @pyqtSlot(str) 101 @pyqtSlot(str)
98 def on_remoteEdit_textChanged(self, txt): 102 def on_remoteEdit_textChanged(self, txt):
99 """ 103 """
100 Private slot to handle changes of the URL edit. 104 Private slot to handle changes of the URL edit.
101 105
102 @param txt current text of the URL edit (string) 106 @param txt current text of the URL edit
107 @type str
103 """ 108 """
104 self.__updateButtonEnable() 109 self.__updateButtonEnable()
105 110
106 if self.remotesComboBox.currentText() == self.__custom and txt != "": 111 if self.remotesComboBox.currentText() == self.__custom and txt != "":
107 remoteBranches = self.__vcs.gitGetRemoteBranchesList(self.__repodir, txt) 112 remoteBranches = self.__vcs.gitGetRemoteBranchesList(self.__repodir, txt)
154 159
155 @return tuple of remote name, remote url (for custom remotes), 160 @return tuple of remote name, remote url (for custom remotes),
156 remote branches, local branch, a flag indicating to fetch from 161 remote branches, local branch, a flag indicating to fetch from
157 all repositories, a flag indicating to remove obsolete tracking 162 all repositories, a flag indicating to remove obsolete tracking
158 references and a flag indicating to fetch tags as well 163 references and a flag indicating to fetch tags as well
159 (string, string, list of strings, string, boolean, boolean, 164 @rtype tuple of (str, str, list of str, str, bool, bool, bool)
160 boolean)
161 """ 165 """
162 remote = "" 166 remote = ""
163 url = "" 167 url = ""
164 remoteBranches = [] 168 remoteBranches = []
165 allRepos = False 169 allRepos = False

eric ide

mercurial