test-clone: load extensions before doing anything
authorBryan O'Sullivan <bryano@fb.com>
Wed, 11 Jul 2012 15:34:32 -0700
changeset 17135 06733dfe1a43
parent 17134 e7167007c083
child 17138 528cb91a90ee
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.
tests/test-clone.t
--- a/tests/test-clone.t	Wed Jul 11 12:38:42 2012 +0200
+++ b/tests/test-clone.t	Wed Jul 11 15:34:32 2012 -0700
@@ -449,8 +449,9 @@
   $ 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