MCPcopy Index your code
hub / github.com/git/git / convert_client_path

Method convert_client_path

git-p4.py:2838–2843  ·  view source on GitHub ↗
(self, clientFile)

Source from the content-addressed store, hash-verified

2836 self.mappings.append(depot_side)
2837
2838 def convert_client_path(self, clientFile):
2839 # chop off //client/ part to make it relative
2840 if not decode_path(clientFile).startswith(self.client_prefix):
2841 die("No prefix '%s' on clientFile '%s'" %
2842 (self.client_prefix, clientFile))
2843 return clientFile[len(self.client_prefix):]
2844
2845 def update_client_spec_path_cache(self, files):
2846 """Caching file paths by "p4 where" batch query."""

Callers 1

Calls 2

decode_pathFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected