hgkw/keyword.py
changeset 345 af2da5e499f2
parent 344 1346cc5a6461
child 346 2c2b49def9d8
equal deleted inserted replaced
344:1346cc5a6461 345:af2da5e499f2
    94 
    94 
    95 def _kwrestrict(cmd):
    95 def _kwrestrict(cmd):
    96     '''Returns True if cmd should trigger restricted expansion.
    96     '''Returns True if cmd should trigger restricted expansion.
    97     Keywords will only expanded when writing to working dir.
    97     Keywords will only expanded when writing to working dir.
    98     Crucial for mq as expanded keywords should not make it into patches.'''
    98     Crucial for mq as expanded keywords should not make it into patches.'''
    99     return cmd in ('diff1', 
    99     return cmd in ('diff1', 'record',
   100                    'qimport', 'qnew', 'qpush', 'qrefresh', 'record', 'qrecord')
   100                    'qfold', 'qimport', 'qnew', 'qpush', 'qrefresh', 'qrecord')
   101 
   101 
   102 
   102 
   103 _kwtemplater = None
   103 _kwtemplater = None
   104 
   104 
   105 class kwtemplater(object):
   105 class kwtemplater(object):