hgext/git/manifest.py
changeset 52620 2b65c9228dc0
parent 52619 b9f47b685e90
child 52644 e627cc25b6f3
equal deleted inserted replaced
52619:b9f47b685e90 52620:2b65c9228dc0
     7     Collection,
     7     Collection,
     8     Iterable,
     8     Iterable,
     9     Iterator,
     9     Iterator,
    10     Set,
    10     Set,
    11 )
    11 )
       
    12 
       
    13 from mercurial.node import sha1nodeconstants
    12 
    14 
    13 from mercurial import (
    15 from mercurial import (
    14     match as matchmod,
    16     match as matchmod,
    15     pathutil,
    17     pathutil,
    16     pycompat,
    18     pycompat,
    17     util,
    19     util,
    18 )
    20 )
    19 from mercurial.interfaces import (
    21 from mercurial.interfaces import (
    20     repository,
    22     repository,
    21 )
    23 )
       
    24 
    22 from . import gitutil
    25 from . import gitutil
    23 
    26 
    24 if typing.TYPE_CHECKING:
    27 if typing.TYPE_CHECKING:
    25     from typing import (
    28     from typing import (
    26         ByteString,  # TODO: change to Buffer for 3.14
    29         ByteString,  # TODO: change to Buffer for 3.14
   327     def read_delta_parents(self, *, shallow: bool = False, exact: bool = True):
   330     def read_delta_parents(self, *, shallow: bool = False, exact: bool = True):
   328         raise NotImplementedError
   331         raise NotImplementedError
   329 
   332 
   330     def read_delta_new_entries(self, *, shallow: bool = False):
   333     def read_delta_new_entries(self, *, shallow: bool = False):
   331         raise NotImplementedError
   334         raise NotImplementedError
       
   335 
       
   336     @property
       
   337     def parents(self):
       
   338         # FIXME: the 2 parent nodes
       
   339         return sha1nodeconstants.nullid, sha1nodeconstants.nullid
   332 
   340 
   333 
   341 
   334 class memgittreemanifestctx(repository.imanifestrevisionwritable):
   342 class memgittreemanifestctx(repository.imanifestrevisionwritable):
   335     def __init__(self, repo, tree):
   343     def __init__(self, repo, tree):
   336         self._repo = repo
   344         self._repo = repo