Show More
@@ -2145,7 +2145,7 b' class revlog(object):' | |||||
2145 | dfh = self._datafp(b"a+") |
|
2145 | dfh = self._datafp(b"a+") | |
2146 | ifh = self._indexfp(b"a+") |
|
2146 | ifh = self._indexfp(b"a+") | |
2147 | try: |
|
2147 | try: | |
2148 |
|
|
2148 | self._addrevision( | |
2149 | node, |
|
2149 | node, | |
2150 | rawtext, |
|
2150 | rawtext, | |
2151 | transaction, |
|
2151 | transaction, | |
@@ -2158,6 +2158,7 b' class revlog(object):' | |||||
2158 | dfh, |
|
2158 | dfh, | |
2159 | deltacomputer=deltacomputer, |
|
2159 | deltacomputer=deltacomputer, | |
2160 | ) |
|
2160 | ) | |
|
2161 | return node | |||
2161 | finally: |
|
2162 | finally: | |
2162 | if dfh: |
|
2163 | if dfh: | |
2163 | dfh.close() |
|
2164 | dfh.close() | |
@@ -2329,7 +2330,7 b' class revlog(object):' | |||||
2329 | if type(rawtext) == bytes: # only accept immutable objects |
|
2330 | if type(rawtext) == bytes: # only accept immutable objects | |
2330 | self._revisioncache = (node, curr, rawtext) |
|
2331 | self._revisioncache = (node, curr, rawtext) | |
2331 | self._chainbasecache[curr] = deltainfo.chainbase |
|
2332 | self._chainbasecache[curr] = deltainfo.chainbase | |
2332 |
return |
|
2333 | return curr | |
2333 |
|
2334 | |||
2334 | def _writeentry(self, transaction, ifh, dfh, entry, data, link, offset): |
|
2335 | def _writeentry(self, transaction, ifh, dfh, entry, data, link, offset): | |
2335 | # Files opened in a+ mode have inconsistent behavior on various |
|
2336 | # Files opened in a+ mode have inconsistent behavior on various |
General Comments 0
You need to be logged in to leave comments.
Login now