Mercurial > hg-stable
changeset 35567:07769a04bc66
filelog: add the ability to report the user facing name
This will be used by lfs, but is probably generally useful. There are various
bits of code that reverse engineer this from the index or data file names, but
it seems better to just store it. Especially if there's experimenting with
backing storage other than revlog.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 07 Jan 2018 15:01:59 -0500 |
parents | baca93a47992 |
children | ebf14075a5c1 |
files | mercurial/filelog.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/filelog.py Tue Dec 19 20:41:25 2017 +0800 +++ b/mercurial/filelog.py Sun Jan 07 15:01:59 2018 -0500 @@ -43,6 +43,8 @@ def __init__(self, opener, path): super(filelog, self).__init__(opener, "/".join(("data", path + ".i"))) + # full name of the user visible file, relative to the repository root + self.filename = path def read(self, node): t = self.revision(node)