Mercurial > hg-stable
comparison tests/test-clone.t @ 17135:06733dfe1a43
test-clone: load extensions before doing anything
This makes it possible to run this test using
"--extra-config-opt=extensions.myext=" and have the extension be
loaded as intended.
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Wed, 11 Jul 2012 15:34:32 -0700 |
parents | 8aeb2f1ae94c |
children | 36a3016811d1 |
comparison
equal
deleted
inserted
replaced
17134:e7167007c083 | 17135:06733dfe1a43 |
---|---|
447 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | 447 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
448 | 448 |
449 $ rm -r ua | 449 $ rm -r ua |
450 | 450 |
451 $ cat <<EOF > branchclone.py | 451 $ cat <<EOF > branchclone.py |
452 > from mercurial import ui, hg | 452 > from mercurial import ui, hg, extensions |
453 > myui = ui.ui() | 453 > myui = ui.ui() |
454 > extensions.loadall(myui) | |
454 > repo = hg.repository(myui, 'a') | 455 > repo = hg.repository(myui, 'a') |
455 > hg.clone(myui, {}, repo, dest="ua", branch=["stable",]) | 456 > hg.clone(myui, {}, repo, dest="ua", branch=["stable",]) |
456 > EOF | 457 > EOF |
457 | 458 |
458 $ python branchclone.py | 459 $ python branchclone.py |