On Fri, Nov 02, 2007 at 01:17:00PM +0100, Vincent Danjean wrote:
> Index: mercurial-0.9.5/mercurial/extensions.py
> ===================================================================
> --- mercurial-0.9.5.orig/mercurial/extensions.py      2007-11-02 
> 11:49:43.000000000 +0100
> +++ mercurial-0.9.5/mercurial/extensions.py   2007-11-02 11:58:15.000000000 
> +0100
> @@ -29,6 +29,8 @@
>          raise KeyError(name)
>  
>  def load(ui, name, path):
> +    if name.startswith('hgext/'):
> +        name = 'hgext.' + name[6:]

Would this be faster?

  +        name[5] = '.'

>      if name.startswith('hgext.'):
>          shortname = name[6:]
>      else:

Attachment: signature.asc
Description: Digital signature

Reply via email to