hgkw/keyword.py
branchstable
changeset 890 ddd525b7dd4a
parent 875 e01f1b4a62e9
child 892 d6b24cad9513
equal deleted inserted replaced
888:8c5c3a0aa6d5 890:ddd525b7dd4a
   107     'kwfiles.ignored': 'bold',
   107     'kwfiles.ignored': 'bold',
   108     'kwfiles.ignoredunknown': 'none'
   108     'kwfiles.ignoredunknown': 'none'
   109 }
   109 }
   110 
   110 
   111 # date like in cvs' $Date
   111 # date like in cvs' $Date
   112 utcdate = lambda x: util.datestr((x[0], 0), '%Y/%m/%d %H:%M:%S')
   112 def utcdate(text):
       
   113     return util.datestr((text[0], 0), '%Y/%m/%d %H:%M:%S')
   113 # date like in svn's $Date
   114 # date like in svn's $Date
   114 svnisodate = lambda x: util.datestr(x, '%Y-%m-%d %H:%M:%S %1%2 (%a, %d %b %Y)')
   115 def svnisodate(text):
       
   116     return util.datestr(text, '%Y-%m-%d %H:%M:%S %1%2 (%a, %d %b %Y)')
   115 # date like in svn's $Id
   117 # date like in svn's $Id
   116 svnutcdate = lambda x: util.datestr((x[0], 0), '%Y-%m-%d %H:%M:%SZ')
   118 def svnutcdate(text):
       
   119     return util.datestr((text[0], 0), '%Y-%m-%d %H:%M:%SZ')
   117 
   120 
   118 # make keyword tools accessible
   121 # make keyword tools accessible
   119 kwtools = {'templater': None, 'hgcmd': ''}
   122 kwtools = {'templater': None, 'hgcmd': ''}
   120 
   123 
   121 def _defaultkwmaps(ui):
   124 def _defaultkwmaps(ui):