mercurial/branchmap.py
changeset 46794 e2f7b2695ba1
parent 46780 6266d19556ad
parent 46685 799973a44c82
child 46819 d4ba4d51f85f
equal deleted inserted replaced
46782:6b52cffd8d0a 46794:e2f7b2695ba1
    37         Optional,
    37         Optional,
    38         Set,
    38         Set,
    39         Tuple,
    39         Tuple,
    40         Union,
    40         Union,
    41     )
    41     )
       
    42     from . import localrepo
    42 
    43 
    43     assert any(
    44     assert any(
    44         (
    45         (
    45             Any,
    46             Any,
    46             Callable,
    47             Callable,
    49             List,
    50             List,
    50             Optional,
    51             Optional,
    51             Set,
    52             Set,
    52             Tuple,
    53             Tuple,
    53             Union,
    54             Union,
       
    55             localrepo,
    54         )
    56         )
    55     )
    57     )
    56 
    58 
    57 subsettable = repoviewutil.subsettable
    59 subsettable = repoviewutil.subsettable
    58 
    60 
   191         tiprev=nullrev,
   193         tiprev=nullrev,
   192         filteredhash=None,
   194         filteredhash=None,
   193         closednodes=None,
   195         closednodes=None,
   194         hasnode=None,
   196         hasnode=None,
   195     ):
   197     ):
   196         # type: (Union[Dict[bytes, List[bytes]], Iterable[Tuple[bytes, List[bytes]]]], bytes,  int, Optional[bytes], Optional[Set[bytes]], Optional[Callable[[bytes], bool]]) -> None
   198         # type: (localrepo.localrepository, Union[Dict[bytes, List[bytes]], Iterable[Tuple[bytes, List[bytes]]]], bytes,  int, Optional[bytes], Optional[Set[bytes]], Optional[Callable[[bytes], bool]]) -> None
   197         """hasnode is a function which can be used to verify whether changelog
   199         """hasnode is a function which can be used to verify whether changelog
   198         has a given node or not. If it's not provided, we assume that every node
   200         has a given node or not. If it's not provided, we assume that every node
   199         we have exists in changelog"""
   201         we have exists in changelog"""
   200         self._repo = repo
   202         self._repo = repo
   201         self.tipnode = tipnode
   203         self.tipnode = tipnode
   301                 msg = b'invalid %s: %s\n'
   303                 msg = b'invalid %s: %s\n'
   302                 repo.ui.debug(
   304                 repo.ui.debug(
   303                     msg
   305                     msg
   304                     % (
   306                     % (
   305                         _branchcachedesc(repo),
   307                         _branchcachedesc(repo),
   306                         pycompat.bytestr(
   308                         stringutil.forcebytestr(inst),
   307                             inst
       
   308                         ),  # pytype: disable=wrong-arg-types
       
   309                     )
   309                     )
   310                 )
   310                 )
   311             bcache = None
   311             bcache = None
   312 
   312 
   313         finally:
   313         finally: