Source

repoman / tests / output / servepush.py

Full commit
# coding: iso-8859-1
import os

from tests.pytest import Quiet, run

with Quiet():
    run('clone ../forest1 -M * -b * -d servepush')
    os.chdir('servepush')
    proc = run('serve --port 8001 --allow-push', background=True, daemon=True)
    proc.join(1)

    run('clone http://localhost:8001 -M * -b core/dev -d ../servepush2')

    with open('../servepush2/a/foo', 'a') as fh:
        fh.write('fooasdf\n')
    os.system('hg -R ../servepush2/a ci -m foo -d "0 0"')

run('-R ../servepush2 push --noninteractive')