Show More
@@ -315,18 +315,8 b' class revlog(object):' | |||||
315 |
|
315 | |||
316 | self.radix = radix |
|
316 | self.radix = radix | |
317 |
|
317 | |||
318 | if postfix is None: |
|
318 | self._indexfile = None | |
319 | indexfile = b'%s.i' % self.radix |
|
319 | self._datafile = None | |
320 | datafile = b'%s.d' % self.radix |
|
|||
321 | elif postfix == b'a': |
|
|||
322 | indexfile = b'%s.i.a' % self.radix |
|
|||
323 | datafile = b'%s.d' % self.radix |
|
|||
324 | else: |
|
|||
325 | indexfile = b'%s.i.%s' % (self.radix, postfix) |
|
|||
326 | datafile = b'%s.d.%s' % (self.radix, postfix) |
|
|||
327 |
|
||||
328 | self._indexfile = indexfile |
|
|||
329 | self._datafile = datafile |
|
|||
330 | self._nodemap_file = None |
|
320 | self._nodemap_file = None | |
331 | self.postfix = postfix |
|
321 | self.postfix = postfix | |
332 | self.opener = opener |
|
322 | self.opener = opener | |
@@ -459,6 +449,20 b' class revlog(object):' | |||||
459 | def _loadindex(self): |
|
449 | def _loadindex(self): | |
460 |
|
450 | |||
461 | newversionflags, mmapindexthreshold, force_nodemap = self._init_opts() |
|
451 | newversionflags, mmapindexthreshold, force_nodemap = self._init_opts() | |
|
452 | ||||
|
453 | if self.postfix is None: | |||
|
454 | index_file = b'%s.i' % self.radix | |||
|
455 | data_file = b'%s.d' % self.radix | |||
|
456 | elif self.postfix == b'a': | |||
|
457 | index_file = b'%s.i.a' % self.radix | |||
|
458 | data_file = b'%s.d' % self.radix | |||
|
459 | else: | |||
|
460 | index_file = b'%s.i.%s' % (self.radix, self.postfix) | |||
|
461 | data_file = b'%s.d.%s' % (self.radix, self.postfix) | |||
|
462 | ||||
|
463 | self._indexfile = index_file | |||
|
464 | self._datafile = data_file | |||
|
465 | ||||
462 | indexdata = b'' |
|
466 | indexdata = b'' | |
463 | self._initempty = True |
|
467 | self._initempty = True | |
464 | try: |
|
468 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now