diff mercurial/extensions.py @ 7011:7da76778dbd7

Do not try to load extensions twice (issue811)
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Tue, 09 Sep 2008 14:43:12 +0200
parents e75aab656f46
children 0ab5f21c390b
line wrap: on
line diff
--- a/mercurial/extensions.py	Mon Sep 08 14:22:14 2008 +0200
+++ b/mercurial/extensions.py	Tue Sep 09 14:43:12 2008 +0200
@@ -29,7 +29,7 @@
         raise KeyError(name)
 
 def load(ui, name, path):
-    if name.startswith('hgext.'):
+    if name.startswith('hgext.') or name.startswith('hgext/'):
         shortname = name[6:]
     else:
         shortname = name