Source

repoman / tests / output / branchcreateonnewbranch.py

Full commit
import os

from tests.pytest import run, Quiet

with Quiet() as _:
    run('clone ../forest1 sol1 -b core/dev -d branchcreateonnewbranchtest')

try:
    os.chdir('branchcreateonnewbranchtest')

    run('info')
    run('branch -c core/fancy')
    run('info')
finally:
    os.chdir('..')