Check if any git authors cannot be mapped to p4 users.
(self, commits)
| 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. |
no test coverage detected