Show More
@@ -1328,7 +1328,7 b' class revlog(object):' | |||||
1328 | self._chunkclear() |
|
1328 | self._chunkclear() | |
1329 |
|
1329 | |||
1330 | def addrevision(self, text, transaction, link, p1, p2, cachedelta=None, |
|
1330 | def addrevision(self, text, transaction, link, p1, p2, cachedelta=None, | |
1331 | node=None): |
|
1331 | node=None, flags=REVIDX_DEFAULT_FLAGS): | |
1332 | """add a revision to the log |
|
1332 | """add a revision to the log | |
1333 |
|
1333 | |||
1334 | text - the revision data to add |
|
1334 | text - the revision data to add | |
@@ -1339,6 +1339,7 b' class revlog(object):' | |||||
1339 | node - nodeid of revision; typically node is not specified, and it is |
|
1339 | node - nodeid of revision; typically node is not specified, and it is | |
1340 | computed by default as hash(text, p1, p2), however subclasses might |
|
1340 | computed by default as hash(text, p1, p2), however subclasses might | |
1341 | use different hashing method (and override checkhash() in such case) |
|
1341 | use different hashing method (and override checkhash() in such case) | |
|
1342 | flags - the known flags to set on the revision | |||
1342 | """ |
|
1343 | """ | |
1343 | if link == nullrev: |
|
1344 | if link == nullrev: | |
1344 | raise RevlogError(_("attempted to add linkrev -1 to %s") |
|
1345 | raise RevlogError(_("attempted to add linkrev -1 to %s") | |
@@ -1359,7 +1360,7 b' class revlog(object):' | |||||
1359 | ifh = self.opener(self.indexfile, "a+", checkambig=self._checkambig) |
|
1360 | ifh = self.opener(self.indexfile, "a+", checkambig=self._checkambig) | |
1360 | try: |
|
1361 | try: | |
1361 | return self._addrevision(node, text, transaction, link, p1, p2, |
|
1362 | return self._addrevision(node, text, transaction, link, p1, p2, | |
1362 |
|
|
1363 | flags, cachedelta, ifh, dfh) | |
1363 | finally: |
|
1364 | finally: | |
1364 | if dfh: |
|
1365 | if dfh: | |
1365 | dfh.close() |
|
1366 | dfh.close() |
General Comments 0
You need to be logged in to leave comments.
Login now