Show More
@@ -517,12 +517,12 b' class obsstore(object):' | |||
|
517 | 517 | # parents: (tuple of nodeid) or None, parents of precursors |
|
518 | 518 | # None is used when no data has been recorded |
|
519 | 519 | |
|
520 |
def __init__(self, s |
|
|
520 | def __init__(self, svfs, defaultformat=_fm1version, readonly=False): | |
|
521 | 521 | # caches for various obsolescence related cache |
|
522 | 522 | self.caches = {} |
|
523 | 523 | self._all = [] |
|
524 |
self.s |
|
|
525 |
data = s |
|
|
524 | self.svfs = svfs | |
|
525 | data = svfs.tryread('obsstore') | |
|
526 | 526 | self._version = defaultformat |
|
527 | 527 | self._readonly = readonly |
|
528 | 528 | if data: |
@@ -588,7 +588,7 b' class obsstore(object):' | |||
|
588 | 588 | known.add(m) |
|
589 | 589 | new.append(m) |
|
590 | 590 | if new: |
|
591 |
f = self.s |
|
|
591 | f = self.svfs('obsstore', 'ab') | |
|
592 | 592 | try: |
|
593 | 593 | offset = f.tell() |
|
594 | 594 | transaction.add('obsstore', offset) |
General Comments 0
You need to be logged in to leave comments.
Login now