equal
deleted
inserted
replaced
1814 def _nodeduplicatecallback(self, transaction, node): |
1814 def _nodeduplicatecallback(self, transaction, node): |
1815 """called when trying to add a node already stored. |
1815 """called when trying to add a node already stored. |
1816 """ |
1816 """ |
1817 |
1817 |
1818 def addrevision(self, text, transaction, link, p1, p2, cachedelta=None, |
1818 def addrevision(self, text, transaction, link, p1, p2, cachedelta=None, |
1819 node=None, flags=REVIDX_DEFAULT_FLAGS, deltacomputer=None): |
1819 node=None, flags=REVIDX_DEFAULT_FLAGS, deltacomputer=None, |
|
1820 sidedata=None): |
1820 """add a revision to the log |
1821 """add a revision to the log |
1821 |
1822 |
1822 text - the revision data to add |
1823 text - the revision data to add |
1823 transaction - the transaction object used for rollback |
1824 transaction - the transaction object used for rollback |
1824 link - the linkrev data to add |
1825 link - the linkrev data to add |
1832 multiple calls |
1833 multiple calls |
1833 """ |
1834 """ |
1834 if link == nullrev: |
1835 if link == nullrev: |
1835 raise error.RevlogError(_("attempted to add linkrev -1 to %s") |
1836 raise error.RevlogError(_("attempted to add linkrev -1 to %s") |
1836 % self.indexfile) |
1837 % self.indexfile) |
|
1838 |
|
1839 if sidedata is None: |
|
1840 sidedata = {} |
1837 |
1841 |
1838 if flags: |
1842 if flags: |
1839 node = node or self.hash(text, p1, p2) |
1843 node = node or self.hash(text, p1, p2) |
1840 |
1844 |
1841 rawtext, validatehash = self._processflagswrite(text, flags) |
1845 rawtext, validatehash = self._processflagswrite(text, flags) |