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