mercurial/filelog.py
changeset 35567 07769a04bc66
parent 34023 ba479850c9c7
child 37441 a3202fa83aff
equal deleted inserted replaced
35566:baca93a47992 35567:07769a04bc66
    41 
    41 
    42 class filelog(revlog.revlog):
    42 class filelog(revlog.revlog):
    43     def __init__(self, opener, path):
    43     def __init__(self, opener, path):
    44         super(filelog, self).__init__(opener,
    44         super(filelog, self).__init__(opener,
    45                         "/".join(("data", path + ".i")))
    45                         "/".join(("data", path + ".i")))
       
    46         # full name of the user visible file, relative to the repository root
       
    47         self.filename = path
    46 
    48 
    47     def read(self, node):
    49     def read(self, node):
    48         t = self.revision(node)
    50         t = self.revision(node)
    49         if not t.startswith('\1\n'):
    51         if not t.startswith('\1\n'):
    50             return t
    52             return t