Show More
@@ -1502,6 +1502,15 b' class revlog(object):' | |||||
1502 | if validatehash: |
|
1502 | if validatehash: | |
1503 | self.checkhash(rawtext, node, p1=p1, p2=p2) |
|
1503 | self.checkhash(rawtext, node, p1=p1, p2=p2) | |
1504 |
|
1504 | |||
|
1505 | return self.addrawrevision(rawtext, transaction, link, p1, p2, node, | |||
|
1506 | flags, cachedelta=cachedelta) | |||
|
1507 | ||||
|
1508 | def addrawrevision(self, rawtext, transaction, link, p1, p2, node, flags, | |||
|
1509 | cachedelta=None): | |||
|
1510 | """add a raw revision with known flags, node and parents | |||
|
1511 | useful when reusing a revision not stored in this revlog (ex: received | |||
|
1512 | over wire, or read from an external bundle). | |||
|
1513 | """ | |||
1505 | dfh = None |
|
1514 | dfh = None | |
1506 | if not self._inline: |
|
1515 | if not self._inline: | |
1507 | dfh = self.opener(self.datafile, "a+") |
|
1516 | dfh = self.opener(self.datafile, "a+") |
General Comments 0
You need to be logged in to leave comments.
Login now