[PATCH] test-clone: load extensions before doing anything

Mads Kiilerich mads at kiilerich.com
Tue Jun 26 05:52:47 CDT 2012


On 25/06/12 23:58, Bryan O'Sullivan wrote:
> # HG changeset patch
> # User Bryan O'Sullivan <bryano at fb.com>
> # Date 1340657769 25200
> # Node ID 7847fe0f5e1312c42d0ba26e0b92facec10c68c1
> # Parent  e63655c2851ad731b29cc9c6c259e81352e7a36f
> test-clone: load extensions before doing anything

This will probably not do any harm but it is also not obvious what good 
it will do. Why do we want to do this? A little story in the commit 
description would make it less puzzling.

/Mads

> 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
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel




More information about the Mercurial-devel mailing list