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

Method checkValidP4Users

git-p4.py:1939–1948  ·  view source on GitHub ↗

Check if any git authors cannot be mapped to p4 users.

(self, commits)

Source from the content-addressed store, hash-verified

1937 return (self.emails[gitEmail], gitEmail)
1938
1939 def checkValidP4Users(self, commits):
1940 """Check if any git authors cannot be mapped to p4 users."""
1941 for id in commits:
1942 user, email = self.p4UserForCommit(id)
1943 if not user:
1944 msg = "Cannot find p4 user for email %s in commit %s." % (email, id)
1945 if gitConfigBool("git-p4.allowMissingP4Users"):
1946 print("%s" % msg)
1947 else:
1948 die("Error: %s\nSet git-p4.allowMissingP4Users to true to allow this." % msg)
1949
1950 def lastP4Changelist(self):
1951 """Get back the last changelist number submitted in this client spec.

Callers 1

runMethod · 0.95

Calls 3

p4UserForCommitMethod · 0.95
gitConfigBoolFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected