def GetPatchset(self):
    'Returns the patchset number as a int or None if not set.'
    if ((self.patchset is None) and (not self.lookedup_patchset)):
        patchset = RunGit(['config', self._codereview_impl.PatchsetSetting()], error_ok=True).strip()
        self.patchset = ((int(patchset) or None) if patchset else None)
        self.lookedup_patchset = True
    return self.patchset
Returns the patchset number as a int or None if not set.
def GetPatchset(self):
    
    if ((self.patchset is None) and (not self.lookedup_patchset)):
        patchset = RunGit(['config', self._codereview_impl.PatchsetSetting()], error_ok=True).strip()
        self.patchset = ((int(patchset) or None) if patchset else None)
        self.lookedup_patchset = True
    return self.patchset