comparison hgext/keyword.py @ 6070:5fd126d1adf8

keyword: declare globals in a more compact way
author Christian Ebert <blacktrash@gmx.net>
date Sat, 09 Feb 2008 22:50:53 +0100
parents 212bfb5c50e1
children 127c973e4499
comparison
equal deleted inserted replaced
6069:212bfb5c50e1 6070:5fd126d1adf8
97 def utcdate(date): 97 def utcdate(date):
98 '''Returns hgdate in cvs-like UTC format.''' 98 '''Returns hgdate in cvs-like UTC format.'''
99 return time.strftime('%Y/%m/%d %H:%M:%S', time.gmtime(date[0])) 99 return time.strftime('%Y/%m/%d %H:%M:%S', time.gmtime(date[0]))
100 100
101 101
102 _kwtemplater, _cmd, _cmdoptions = None, None, None 102 _kwtemplater = _cmd = _cmdoptions = None
103 103
104 # store originals of monkeypatches 104 # store originals of monkeypatches
105 _patchfile_init = patch.patchfile.__init__ 105 _patchfile_init = patch.patchfile.__init__
106 _dispatch_parse = dispatch._parse 106 _dispatch_parse = dispatch._parse
107 107