hgkw/keyword.py
changeset 423 7d1aeda2d0cc
parent 421 439a24d34a13
child 431 4fb8a2e526ff
child 436 ca455dfc5c80
equal deleted inserted replaced
416:b69dca43ef08 423:7d1aeda2d0cc
    81 '''
    81 '''
    82 
    82 
    83 from mercurial import commands, cmdutil, context, dispatch, filelog, revlog
    83 from mercurial import commands, cmdutil, context, dispatch, filelog, revlog
    84 from mercurial import patch, localrepo, templater, templatefilters, util
    84 from mercurial import patch, localrepo, templater, templatefilters, util
    85 from mercurial.hgweb import webcommands
    85 from mercurial.hgweb import webcommands
    86 from mercurial.node import *
    86 from mercurial.node import nullid, hex
    87 from mercurial.i18n import _
    87 from mercurial.i18n import _
    88 import re, shutil, tempfile, time
    88 import re, shutil, tempfile, time
    89 
    89 
    90 commands.optionalrepo += ' kwdemo'
    90 commands.optionalrepo += ' kwdemo'
    91 
    91 
    92 # hg commands that do not act on keywords
    92 # hg commands that do not act on keywords
    93 nokwcommands = ('add addremove bundle copy export grep identify incoming init'
    93 nokwcommands = ('add addremove bundle copy export grep incoming init'
    94                 ' log outgoing push remove rename rollback tip'
    94                 ' log outgoing push rename rollback tip'
    95                 ' convert email glog')
    95                 ' convert email glog')
    96 
    96 
    97 # hg commands that trigger expansion only when writing to working dir,
    97 # hg commands that trigger expansion only when writing to working dir,
    98 # not when reading filelog, and unexpand when reading from working dir
    98 # not when reading filelog, and unexpand when reading from working dir
    99 restricted = 'record qfold qimport qnew qpush qrefresh qrecord'
    99 restricted = 'record qfold qimport qnew qpush qrefresh qrecord'