comparison mercurial/subrepo.py @ 47012:d55b71393907

node: replace nullid and friends with nodeconstants class The introduction of 256bit hashes require changes to nullid and other constant magic values. Start pushing them down from repository and revlog where sensible. Differential Revision: https://phab.mercurial-scm.org/D9465
author Joerg Sonnenberger <joerg@bec.de>
date Mon, 29 Mar 2021 01:52:06 +0200
parents 279df499511e
children a125cbbc5782
comparison
equal deleted inserted replaced
46992:5fa019ceb499 47012:d55b71393907
19 19
20 from .i18n import _ 20 from .i18n import _
21 from .node import ( 21 from .node import (
22 bin, 22 bin,
23 hex, 23 hex,
24 nullid,
25 short, 24 short,
26 ) 25 )
27 from . import ( 26 from . import (
28 cmdutil, 27 cmdutil,
29 encoding, 28 encoding,
684 @annotatesubrepoerror 683 @annotatesubrepoerror
685 def remove(self): 684 def remove(self):
686 # we can't fully delete the repository as it may contain 685 # we can't fully delete the repository as it may contain
687 # local-only history 686 # local-only history
688 self.ui.note(_(b'removing subrepo %s\n') % subrelpath(self)) 687 self.ui.note(_(b'removing subrepo %s\n') % subrelpath(self))
689 hg.clean(self._repo, nullid, False) 688 hg.clean(self._repo, self._repo.nullid, False)
690 689
691 def _get(self, state): 690 def _get(self, state):
692 source, revision, kind = state 691 source, revision, kind = state
693 parentrepo = self._repo._subparent 692 parentrepo = self._repo._subparent
694 693