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

Method extractFilesFromCommit

git-p4.py:3002–3021  ·  view source on GitHub ↗
(self, commit, shelved=False, shelved_cl=0)

Source from the content-addressed store, hash-verified

3000 return False
3001
3002 def extractFilesFromCommit(self, commit, shelved=False, shelved_cl=0):
3003 files = []
3004 fnum = 0
3005 while "depotFile%s" % fnum in commit:
3006 path = commit["depotFile%s" % fnum]
3007 found = self.isPathWanted(decode_path(path))
3008 if not found:
3009 fnum = fnum + 1
3010 continue
3011
3012 file = {}
3013 file["path"] = path
3014 file["rev"] = commit["rev%s" % fnum]
3015 file["action"] = commit["action%s" % fnum]
3016 file["type"] = commit["type%s" % fnum]
3017 if shelved:
3018 file["shelved_cl"] = int(shelved_cl)
3019 files.append(file)
3020 fnum = fnum + 1
3021 return files
3022
3023 def extractJobsFromCommit(self, commit):
3024 jobs = []

Callers 5

importChangesMethod · 0.95
importHeadRevisionMethod · 0.95
runMethod · 0.95
createShelveParentMethod · 0.80

Calls 3

isPathWantedMethod · 0.95
decode_pathFunction · 0.85
appendMethod · 0.80

Tested by

no test coverage detected