hgext/remotefilelog/remotefilelog.py
changeset 41365 876494fd967d
parent 41251 beb0d944a99b
child 42095 864f9f63d3ed
equal deleted inserted replaced
41364:0132221c25cd 41365:876494fd967d
    59             return t
    59             return t
    60         s = t.index('\1\n', 2)
    60         s = t.index('\1\n', 2)
    61         return t[s + 2:]
    61         return t[s + 2:]
    62 
    62 
    63     def add(self, text, meta, transaction, linknode, p1=None, p2=None):
    63     def add(self, text, meta, transaction, linknode, p1=None, p2=None):
    64         hashtext = text
       
    65 
       
    66         # hash with the metadata, like in vanilla filelogs
    64         # hash with the metadata, like in vanilla filelogs
    67         hashtext = shallowutil.createrevlogtext(text, meta.get('copy'),
    65         hashtext = shallowutil.createrevlogtext(text, meta.get('copy'),
    68                                                 meta.get('copyrev'))
    66                                                 meta.get('copyrev'))
    69         node = storageutil.hashrevisionsha1(hashtext, p1, p2)
    67         node = storageutil.hashrevisionsha1(hashtext, p1, p2)
    70         return self.addrevision(hashtext, transaction, linknode, p1, p2,
    68         return self.addrevision(hashtext, transaction, linknode, p1, p2,