Show More
@@ -407,6 +407,9 b' class revbranchcache(object):' | |||
|
407 | 407 | try: |
|
408 | 408 | if self._rbcnamescount != 0: |
|
409 | 409 | f = repo.vfs.open(_rbcnames, 'ab') |
|
410 | # The position after open(x, 'a') is implementation defined- | |
|
411 | # see issue3543. SEEK_END was added in 2.5 | |
|
412 | f.seek(0, 2) #os.SEEK_END | |
|
410 | 413 | if f.tell() == self._rbcsnameslen: |
|
411 | 414 | f.write('\0') |
|
412 | 415 | else: |
@@ -431,6 +434,9 b' class revbranchcache(object):' | |||
|
431 | 434 | len(self._rbcrevs) // _rbcrecsize) |
|
432 | 435 | try: |
|
433 | 436 | f = repo.vfs.open(_rbcrevs, 'ab') |
|
437 | # The position after open(x, 'a') is implementation defined- | |
|
438 | # see issue3543. SEEK_END was added in 2.5 | |
|
439 | f.seek(0, 2) #os.SEEK_END | |
|
434 | 440 | if f.tell() != start: |
|
435 | 441 | f.seek(start) |
|
436 | 442 | f.truncate() |
General Comments 0
You need to be logged in to leave comments.
Login now