Source

repoman / tests / output / heads.py

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

myforest = 'heads'

with Quiet():
    run('clone ../forest1 -M * -b * -d %s' % myforest)
os.chdir(myforest)

try:
    run('heads')
    run('heads -a')
    run('up core/dev')
    run('heads')
    run('heads -a')
finally:
    os.chdir('..')

try:
    shutil.rmtree(myforest)
except:
    pass