def SetPatchset(self, patchset):
    "Set this branch's patchset.  If patchset=0, clears the patchset."
    patchset_setting = self._codereview_impl.PatchsetSetting()
    if patchset:
        RunGit(['config', patchset_setting, str(patchset)])
        self.patchset = patchset
    else:
        RunGit(['config', '--unset', patchset_setting], stderr=subprocess2.PIPE, error_ok=True)
        self.patchset = None
Set this branch's patchset.  If patchset=0, clears the patchset.
def SetPatchset(self, patchset):
    
    patchset_setting = self._codereview_impl.PatchsetSetting()
    if patchset:
        RunGit(['config', patchset_setting, str(patchset)])
        self.patchset = patchset
    else:
        RunGit(['config', '--unset', patchset_setting], stderr=subprocess2.PIPE, error_ok=True)
        self.patchset = None