# HG changeset patch # User Christian Ebert # Date 1273827407 -7200 # Node ID 0214eb052686f676656a02aa4d78610c8bf60312 # Parent 1124280b445c8c163d20f9eff72717e81eb00304# Parent 9f46c562c4b5dd35a612162b027174d8c3384ac5 (stable) merge diff -r 1124280b445c -r 0214eb052686 hgkw/keyword.py --- a/hgkw/keyword.py Thu May 13 17:24:21 2010 -0500 +++ b/hgkw/keyword.py Fri May 14 10:56:47 2010 +0200 @@ -91,6 +91,8 @@ # commands using dorecord recordcommands = 'record qrecord' +# names of extensions using dorecord +recordextensions = 'record' # provide cvs-like UTC date filter utcdate = lambda x: util.datestr((x[0], 0), '%Y/%m/%d %H:%M:%S') @@ -515,11 +517,12 @@ extensions.wrapfunction(patch, 'diff', kw_diff) for c in 'annotate changeset rev filediff diff'.split(): extensions.wrapfunction(webcommands, c, kwweb_skip) - try: - record = extensions.find('record') - extensions.wrapfunction(record, 'dorecord', kw_dorecord) - except KeyError: - pass + for name in recordextensions.split(): + try: + record = extensions.find(name) + extensions.wrapfunction(record, 'dorecord', kw_dorecord) + except KeyError: + pass cmdtable = { 'kwdemo':