hgext/keyword.py
changeset 13592 ad2ee188f4a5
parent 13299 f24ea9356e7d
child 13633 20d13244f192
equal deleted inserted replaced
13591:264f292a0c6f 13592:ad2ee188f4a5
   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):