equal
deleted
inserted
replaced
89 # not when reading filelog, and unexpand when reading from working dir |
89 # not when reading filelog, and unexpand when reading from working dir |
90 restricted = 'merge record qrecord resolve transplant' |
90 restricted = 'merge record qrecord resolve transplant' |
91 |
91 |
92 # commands using dorecord |
92 # commands using dorecord |
93 recordcommands = 'record qrecord' |
93 recordcommands = 'record qrecord' |
|
94 # names of extensions using dorecord |
|
95 recordextensions = 'record' |
94 |
96 |
95 # provide cvs-like UTC date filter |
97 # provide cvs-like UTC date filter |
96 utcdate = lambda x: util.datestr((x[0], 0), '%Y/%m/%d %H:%M:%S') |
98 utcdate = lambda x: util.datestr((x[0], 0), '%Y/%m/%d %H:%M:%S') |
97 |
99 |
98 # make keyword tools accessible |
100 # make keyword tools accessible |
513 extensions.wrapfunction(patch.patchfile, '__init__', kwpatchfile_init) |
515 extensions.wrapfunction(patch.patchfile, '__init__', kwpatchfile_init) |
514 if not kwt.restrict: |
516 if not kwt.restrict: |
515 extensions.wrapfunction(patch, 'diff', kw_diff) |
517 extensions.wrapfunction(patch, 'diff', kw_diff) |
516 for c in 'annotate changeset rev filediff diff'.split(): |
518 for c in 'annotate changeset rev filediff diff'.split(): |
517 extensions.wrapfunction(webcommands, c, kwweb_skip) |
519 extensions.wrapfunction(webcommands, c, kwweb_skip) |
518 try: |
520 for name in recordextensions.split(): |
519 record = extensions.find('record') |
521 try: |
520 extensions.wrapfunction(record, 'dorecord', kw_dorecord) |
522 record = extensions.find(name) |
521 except KeyError: |
523 extensions.wrapfunction(record, 'dorecord', kw_dorecord) |
522 pass |
524 except KeyError: |
|
525 pass |
523 |
526 |
524 cmdtable = { |
527 cmdtable = { |
525 'kwdemo': |
528 'kwdemo': |
526 (demo, |
529 (demo, |
527 [('d', 'default', None, _('show default keyword template maps')), |
530 [('d', 'default', None, _('show default keyword template maps')), |