Switch to complete filename in first keyword field
This will hopefully allow to iterate over the stream in hgkwdecode,
and lookup the relatively latest revision of corresponding file.
# $Hg: hgkwdecode.py,v$
from mercurial.demandload import demandload
demandload(globals(), 'hgkw:kwutil mercurial:localrepo re sys')
def kwdecode():
'''Expands keywords into IO stream.'''
lr = localrepo.localrepository(None)
kword = kwutil.mkkw(lr, tip=False, node='')
re_kw = kwutil.rekw()
sys.stdout.write(re_kw.sub(kword, sys.stdin.read()))