Source

repoman / tests / output / unclone.py

Full commit
import os
import shutil
from tests.pytest import run, Quiet

from tests.support import write_text

with Quiet():
    run('clone ../forest1 -M * -b * -d forest2')
run('unclone forest2')
run('unclone nonexistingforest')

os.mkdir('nonforest')
write_text('nonforest/file.txt', 'foo bar baz')
run('unclone nonforest')
run('unclone --force nonforest')