MCPcopy Create free account
hub / github.com/git/git / streamOneP4Deletion

Method streamOneP4Deletion

git-p4.py:3225–3233  ·  view source on GitHub ↗
(self, file)

Source from the content-addressed store, hash-verified

3223 self.writeToGitStream(git_mode, relPath, contents)
3224
3225 def streamOneP4Deletion(self, file):
3226 relPath = self.stripRepoPath(decode_path(file['path']), self.branchPrefixes)
3227 if verbose:
3228 sys.stdout.write("delete %s\n" % relPath)
3229 sys.stdout.flush()
3230 self.gitStream.write(encode_text_stream(u'D {}\n'.format(relPath)))
3231
3232 if self.largeFileSystem and self.largeFileSystem.isLargeFile(relPath):
3233 self.largeFileSystem.removeLargeFile(relPath)
3234
3235 def streamP4FilesCb(self, marshalled):
3236 """Handle another chunk of streaming data."""

Callers 1

streamP4FilesMethod · 0.95

Calls 7

stripRepoPathMethod · 0.95
decode_pathFunction · 0.85
encode_text_streamFunction · 0.85
isLargeFileMethod · 0.80
writeMethod · 0.45
flushMethod · 0.45
removeLargeFileMethod · 0.45

Tested by

no test coverage detected