[PATCH] test-clone: load extensions before doing anything
Bryan O'Sullivan
bos at serpentine.com
Wed Jun 27 12:55:10 CDT 2012
# HG changeset patch
# User Bryan O'Sullivan <bryano at fb.com>
# Date 1340819700 25200
# Node ID d4d3c27423b909adf825954807822b3020b3739f
# Parent cd7db8e05c657fb08b51903fa2ef8c2246de1c4b
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.
diff --git a/tests/test-clone.t b/tests/test-clone.t
--- a/tests/test-clone.t
+++ b/tests/test-clone.t
@@ -449,8 +449,9 @@ iterable in addbranchrevs()
$ rm -r ua
$ cat <<EOF > branchclone.py
- > from mercurial import ui, hg
+ > from mercurial import ui, hg, extensions
> myui = ui.ui()
+ > extensions.loadall(myui)
> repo = hg.repository(myui, 'a')
> hg.clone(myui, {}, repo, dest="ua", branch=["stable",])
> EOF
More information about the Mercurial-devel
mailing list