changeset 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 e7167007c083
children 528cb91a90ee
files tests/test-clone.t
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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