def get_alt_textfile(f, func):
    while 1:
        line = f.readline()
        if not line:
            print '(Unexpected EOF from server)'
            break
        if line[-2:] == CRLF:
            line = line[:-2]
        elif line[-1:] in CRLF:
            line = line[:-1]
        if line == '.':
            break
        if line[:2] == '..':
            line = line[1:]
        func(line)
Returns the repository branch name of the current directory.
dataset/ETHPy150Open babble/babble/include/jython/Lib/gopherlib.py/get_alt_textfile--crossover with--dataset/ETHPy150Open reviewboard/rbtools/rbtools/clients/__init__.py/SCMClient.get_current_branch