def read_file(self, filename):
        with open(filename, 'r') as file:
            lines = [line.strip() for line in file]

        for line in lines:
            if line and not line.startswith('#'):
                self.read_line(line)
Returns all the instances to be used in the object's revision.
dataset/ETHPy150Open borntyping/spotter/spotter/watches.py/WatchFile.read_file--crossover with--dataset/ETHPy150Open sshwsfc/xadmin/xadmin/plugins/xversion.py/ReversionPlugin.get_revision_instances