diff hgext/keyword.py @ 24272:26a1c617e047

record: move dorecord from record to cmdutil Part of a serie of patches to move record from hgext to core
author Laurent Charignon <lcharignon@fb.com>
date Tue, 10 Mar 2015 17:14:33 -0700
parents b88278a308c6
children 6ddc86eedc3b
line wrap: on
line diff
--- a/hgext/keyword.py	Tue Mar 10 17:09:07 2015 -0700
+++ b/hgext/keyword.py	Tue Mar 10 17:14:33 2015 -0700
@@ -737,13 +737,7 @@
     extensions.wrapfunction(patch, 'diff', kw_diff)
     extensions.wrapfunction(cmdutil, 'amend', kw_amend)
     extensions.wrapfunction(cmdutil, 'copy', kw_copy)
+    extensions.wrapfunction(cmdutil, 'dorecord', kw_dorecord)
     for c in 'annotate changeset rev filediff diff'.split():
         extensions.wrapfunction(webcommands, c, kwweb_skip)
-    for name in recordextensions.split():
-        try:
-            record = extensions.find(name)
-            extensions.wrapfunction(record, 'dorecord', kw_dorecord)
-        except KeyError:
-            pass
-
     repo.__class__ = kwrepo