'Removes untracked files in an svn repository.'

def _remove_untracked_files(self):

    status = self.svn('status', '--no-ignore', output=str)
    self.svn('status', '--no-ignore')
    for line in status.split('\n'):
        if (not re.match('^[I?]', line)):
            continue
        path = line[8:].strip()
        if os.path.isfile(path):
            os.unlink(path)
        elif os.path.isdir(path):
            shutil.rmtree(path, ignore_errors=True)
