# HG changeset patch # User Pierre-Yves David # Date 1345493890 -7200 # Node ID d38e02332c2cd96d05e7d8d5fd8c9eb8daea53ea # Parent cd43fd9f923fc844efa5601618224482c77d644d obsolet: fix extension help code about extension wrapping diff -r cd43fd9f923f -r d38e02332c2c 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: