hgext/obsolete.py
changeset 462 d38e02332c2c
parent 461 cd43fd9f923f
child 467 869ddfb98c7e
--- a/hgext/obsolete.py	Tue Aug 21 02:37:53 2012 +0200
+++ b/hgext/obsolete.py	Mon Aug 20 22:18:10 2012 +0200
@@ -141,9 +141,9 @@
             templatekw.keywords[name] = kw
         for ext, command, wrapper in self._extcommandwrappers:
             if ext not in knownexts:
-                e = extensions.find('rebase')
+                e = extensions.find(ext)
                 if e is None:
-                    raise util.Abort('extension %s not found' %e)
+                    raise util.Abort('extension %s not found' % ext)
                 knownexts[ext] = e.cmdtable
             extensions.wrapcommand(knownexts[ext], commands, wrapper)
         for c in self._extcallables: