comparison mercurial/revlog.py @ 47324:0a3fa41fa719

revlogv2: use a unique filename for data Having a unique data will allow for ambiguity less rewriting of revlog content, something useful to clarify handling of some operation like censoring or stripping. Differential Revision: https://phab.mercurial-scm.org/D10772
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 19 May 2021 16:55:36 +0200
parents 93a0abe098e7
children 1844a2e3401c
comparison
equal deleted inserted replaced
47323:f612db768c7a 47324:0a3fa41fa719
626 self._generaldelta = True 626 self._generaldelta = True
627 # the logic for persistent nodemap will be dealt with within the 627 # the logic for persistent nodemap will be dealt with within the
628 # main docket, so disable it for now. 628 # main docket, so disable it for now.
629 self._nodemap_file = None 629 self._nodemap_file = None
630 630
631 if self.postfix is None: 631 if self._docket is not None:
632 self._datafile = self._docket.data_filepath()
633 elif self.postfix is None:
632 self._datafile = b'%s.d' % self.radix 634 self._datafile = b'%s.d' % self.radix
633 else: 635 else:
634 self._datafile = b'%s.d.%s' % (self.radix, self.postfix) 636 self._datafile = b'%s.d.%s' % (self.radix, self.postfix)
635 637
636 self.nodeconstants = sha1nodeconstants 638 self.nodeconstants = sha1nodeconstants