hgkw/pretxnkw.py
branchextension
changeset 41 e1c539e1282b
parent 40 38ee735886d2
child 42 ba000e29ecf3
equal deleted inserted replaced
40:38ee735886d2 41:e1c539e1282b
    41     user, date = repo.changelog.read(repo.changelog.tip())[1:3]
    41     user, date = repo.changelog.read(repo.changelog.tip())[1:3]
    42     user = util.shortuser(user)
    42     user = util.shortuser(user)
    43     date = util.datestr(date=date, format=util.defaultdateformats[0])
    43     date = util.datestr(date=date, format=util.defaultdateformats[0])
    44                                                # %Y-%m-%d %H:%M:%S
    44                                                # %Y-%m-%d %H:%M:%S
    45 
    45 
    46     re_kw = re.compile(r'\$Hg[^$]*?\$')
    46     re_kw = re.compile(r'\$Hg(: [^$]+?,v [a-z0-9]{12} [^$]+? )?\$')
    47 
    47 
    48     for f in files:
    48     for f in files:
    49         data = repo.wfile(f).read()
    49         data = repo.wfile(f).read()
    50         if not util.binary(data):
    50         if not util.binary(data):
    51             kw = '$Hg: %s,v %s %s %s $' % (
    51             kw = '$Hg: %s,v %s %s %s $' % (