Show More
@@ -54,6 +54,10 b' def _playback(journal, report, opener, v' | |||||
54 | checkambig = checkambigfiles and (f, '') in checkambigfiles |
|
54 | checkambig = checkambigfiles and (f, '') in checkambigfiles | |
55 | try: |
|
55 | try: | |
56 | fp = opener(f, 'a', checkambig=checkambig) |
|
56 | fp = opener(f, 'a', checkambig=checkambig) | |
|
57 | if fp.tell() < o: | |||
|
58 | raise error.Abort(_( | |||
|
59 | "attempted to truncate %s to %d bytes, but it was " | |||
|
60 | "already %d bytes\n") % (f, o, fp.tell())) | |||
57 | fp.truncate(o) |
|
61 | fp.truncate(o) | |
58 | fp.close() |
|
62 | fp.close() | |
59 | except IOError: |
|
63 | except IOError: |
General Comments 0
You need to be logged in to leave comments.
Login now