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

Method p4UserId

git-p4.py:1684–1693  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1682 self.myP4UserId = None
1683
1684 def p4UserId(self):
1685 if self.myP4UserId:
1686 return self.myP4UserId
1687
1688 results = p4CmdList(["user", "-o"])
1689 for r in results:
1690 if 'User' in r:
1691 self.myP4UserId = r['User']
1692 return r['User']
1693 die("Could not find your p4 user id")
1694
1695 def p4UserIsMe(self, p4User):
1696 """Return True if the given p4 user is actually me."""

Callers 2

p4UserIsMeMethod · 0.95
streamTagMethod · 0.80

Calls 2

p4CmdListFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected