def parse_config(self):

        filename = os.path.join(self.root, 'CVSROOT', 'config')
        if not os.path.isfile(filename):
            return

        f = file(filename, 'r')
        try:
            for line in f.readlines():
                # Skip empty and comment-only lines.
                if re.match('^\s*(#.*)?$', line) != None:
                    continue

                # Remaining lines must be "key=value" pairs.  split() will
                # fail otherwise.
                option, value = line.split('=', 2)
                if option == 'tag':
                    self.localid = value.strip()
        finally:
            f.close()

    # Helper function to check with the statcache and the stat()
    # system call if a file or directory is unmodified.
Extract relevant information from the CVSROOT/config file,
dataset/ETHPy150Open ustuehler/git-cvs/cvsgit/cvs.py/CVS.parse_config