obsolet: fix extension help code about extension wrapping
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Mon, 20 Aug 2012 22:18:10 +0200
changeset 462 d38e02332c2c
parent 461 cd43fd9f923f
child 463 3f91654713dd
obsolet: fix extension help code about extension wrapping
hgext/obsolete.py
--- 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: