Returns the perforce file type for the given file.
(file)
| 698 | |
| 699 | |
| 700 | def 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 | |
| 711 | def getP4Labels(depotPaths): |
no test coverage detected