hgkw/keyword.py
branchsolo-extension
changeset 53 b0db8ec7ac78
parent 52 7783eb22de30
child 54 ac67adabce13
equal deleted inserted replaced
52:7783eb22de30 53:b0db8ec7ac78
    51     their expansion if matchobj is equal to string representation.'''
    51     their expansion if matchobj is equal to string representation.'''
    52 
    52 
    53     RCSFile = os.path.basename(f)+',v'
    53     RCSFile = os.path.basename(f)+',v'
    54     Source = os.path.join(repo.root, f)+',v'
    54     Source = os.path.join(repo.root, f)+',v'
    55     Date = util.datestr(date=date)
    55     Date = util.datestr(date=date)
    56     revdateauth = '%s %s %s' % (Revision,       # %Y-%m-%d %H:%M:%S
    56     revdateauth = '%s %s %s' % (Revision,
    57             util.datestr(date=date, format=util.defaultdateformats[0]),
    57             util.datestr(date=date, format=util.defaultdateformats[0]),
    58             util.shortuser(Author))
    58             util.shortuser(Author))             # %Y-%m-%d %H:%M:%S
    59     Header = '%s %s' % (Source, revdateauth)
    59     Header = '%s %s' % (Source, revdateauth)
    60     Id = '%s %s' % (RCSFile, revdateauth)
    60     Id = '%s %s' % (RCSFile, revdateauth)
    61 
    61 
    62     return '$%s: %s $' % (matchobj.group(1), eval(matchobj.group(1)))
    62     return '$%s: %s $' % (matchobj.group(1), eval(matchobj.group(1)))
    63 
    63