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

Function getP4OpenedType

git-p4.py:700–708  ·  view source on GitHub ↗

Returns the perforce file type for the given file.

(file)

Source from the content-addressed store, hash-verified

698
699
700def getP4OpenedType(file):
701 """Returns the perforce file type for the given file."""
702
703 result = p4_read_pipe(["opened", wildcard_encode(file)])
704 match = re.match(r".*\((.+)\)( \*exclusive\*)?\r?$", result)
705 if match:
706 return match.group(1)
707 else:
708 die("Could not determine file type for %s (result: '%s')" % (file, result))
709
710
711def getP4Labels(depotPaths):

Callers 1

setP4ExecBitFunction · 0.85

Calls 3

p4_read_pipeFunction · 0.85
wildcard_encodeFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected