def GetBranch(self):
    "Returns the short branch name, e.g. 'master'."
    if (not self.branch):
        branchref = GetCurrentBranchRef()
        if (not branchref):
            return None
        self.branchref = branchref
        self.branch = ShortBranchName(self.branchref)
    return self.branch
Returns the short branch name, e.g. 'master'.
def GetBranch(self):
    
    if (not self.branch):
        branchref = GetCurrentBranchRef()
        if (not branchref):
            return None
        self.branchref = branchref
        self.branch = ShortBranchName(self.branchref)
    return self.branch