Show More
@@ -51,7 +51,7 b' The header is followed by the markers. E' | |||||
51 | additional encoding. Keys cannot contain '\0' or ':' and values |
|
51 | additional encoding. Keys cannot contain '\0' or ':' and values | |
52 | cannot contain '\0'. |
|
52 | cannot contain '\0'. | |
53 | """ |
|
53 | """ | |
54 |
import |
|
54 | import struct | |
55 | from mercurial import util, base85 |
|
55 | from mercurial import util, base85 | |
56 | from i18n import _ |
|
56 | from i18n import _ | |
57 |
|
57 | |||
@@ -200,7 +200,7 b' class obsstore(object):' | |||||
200 | # defined. So we must seek to the end before calling tell(), |
|
200 | # defined. So we must seek to the end before calling tell(), | |
201 | # or we may get a zero offset for non-zero sized files on |
|
201 | # or we may get a zero offset for non-zero sized files on | |
202 | # some platforms (issue3543). |
|
202 | # some platforms (issue3543). | |
203 |
f.seek(0, |
|
203 | f.seek(0, 2) # os.SEEK_END | |
204 | offset = f.tell() |
|
204 | offset = f.tell() | |
205 | transaction.add('obsstore', offset) |
|
205 | transaction.add('obsstore', offset) | |
206 | if offset == 0: |
|
206 | if offset == 0: |
General Comments 0
You need to be logged in to leave comments.
Login now