MCPcopy Create free account
hub / github.com/carbonengine/trinity / pre_build

Method pre_build

shadercompiler/pythonBuildScript/build.py:247–257  ·  view source on GitHub ↗
(self, paths)

Source from the content-addressed store, hash-verified

245 self._cl = None
246
247 def pre_build(self, paths):
248 if self._action == 'none':
249 return
250 logging.info(f'Checking out {len(paths)} files in Perforce')
251 self._p4('edit', paths)
252
253 logging.debug('Creating new change list')
254 self._cl = self._create_cl()
255 logging.info(f'Created CL {self._cl}')
256 logging.debug(f'Moving files to CL {self._cl}')
257 self._p4('reopen', ['-c', self._cl] + paths)
258
259 def submit(self, paths, success):
260 if self._action == 'none':

Callers 1

buildFunction · 0.80

Calls 2

_p4Method · 0.95
_create_clMethod · 0.95

Tested by

no test coverage detected