Show More
@@ -407,6 +407,9 b' class revbranchcache(object):' | |||||
407 | try: |
|
407 | try: | |
408 | if self._rbcnamescount != 0: |
|
408 | if self._rbcnamescount != 0: | |
409 | f = repo.vfs.open(_rbcnames, 'ab') |
|
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 | if f.tell() == self._rbcsnameslen: |
|
413 | if f.tell() == self._rbcsnameslen: | |
411 | f.write('\0') |
|
414 | f.write('\0') | |
412 | else: |
|
415 | else: | |
@@ -431,6 +434,9 b' class revbranchcache(object):' | |||||
431 | len(self._rbcrevs) // _rbcrecsize) |
|
434 | len(self._rbcrevs) // _rbcrecsize) | |
432 | try: |
|
435 | try: | |
433 | f = repo.vfs.open(_rbcrevs, 'ab') |
|
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 | if f.tell() != start: |
|
440 | if f.tell() != start: | |
435 | f.seek(start) |
|
441 | f.seek(start) | |
436 | f.truncate() |
|
442 | f.truncate() |
General Comments 0
You need to be logged in to leave comments.
Login now