MCPcopy Index your code
hub / github.com/PyQt5/PyQtClient / start

Method start

Utils/GitThread.py:170–180  ·  view source on GitHub ↗

启动Clone线程 :param cls:

(cls, parent=None)

Source from the content-addressed store, hash-verified

168
169 @classmethod
170 def start(cls, parent=None):
171 """启动Clone线程
172 :param cls:
173 """
174 cls._thread = QThread(parent)
175 cls._worker = CloneThread()
176 cls._worker.moveToThread(cls._thread)
177 cls._thread.started.connect(cls._worker.run)
178 cls._thread.finished.connect(cls._worker.deleteLater)
179 cls._thread.start()
180 AppLog.info('clone thread started')
181
182 def pull(self, repo, remote_name='origin', branch='master'):
183 """ pull changes for the specified remote (defaults to origin).

Callers

nothing calls this directly

Calls 2

CloneThreadClass · 0.85
startMethod · 0.45

Tested by

no test coverage detected