tests/simplestorerepo.py
changeset 42730 92ac6b1697a7
parent 42724 2177133724ab
child 42813 268662aac075
equal deleted inserted replaced
42729:05c80f9ef100 42730:92ac6b1697a7
    40 from mercurial.utils import (
    40 from mercurial.utils import (
    41     cborutil,
    41     cborutil,
    42     interfaceutil,
    42     interfaceutil,
    43     storageutil,
    43     storageutil,
    44 )
    44 )
       
    45 from mercurial.revlogutils import (
       
    46     flagutil,
       
    47 )
    45 
    48 
    46 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
    49 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
    47 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
    50 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
    48 # be specifying the version(s) of Mercurial they are tested with, or
    51 # be specifying the version(s) of Mercurial they are tested with, or
    49 # leave the attribute unspecified.
    52 # leave the attribute unspecified.
   260 
   263 
   261     def _processflags(self, text, flags, operation, raw=False):
   264     def _processflags(self, text, flags, operation, raw=False):
   262         if flags == 0:
   265         if flags == 0:
   263             return text, True
   266             return text, True
   264 
   267 
   265         if flags & ~revlog.REVIDX_KNOWN_FLAGS:
   268         if flags & ~flagutil.REVIDX_KNOWN_FLAGS:
   266             raise simplestoreerror(_("incompatible revision flag '%#x'") %
   269             raise simplestoreerror(_("incompatible revision flag '%#x'") %
   267                                    (flags & ~revlog.REVIDX_KNOWN_FLAGS))
   270                                    (flags & ~flagutil.REVIDX_KNOWN_FLAGS))
   268 
   271 
   269         validatehash = True
   272         validatehash = True
   270         # Depending on the operation (read or write), the order might be
   273         # Depending on the operation (read or write), the order might be
   271         # reversed due to non-commutative transforms.
   274         # reversed due to non-commutative transforms.
   272         orderedflags = revlog.REVIDX_FLAGS_ORDER
   275         orderedflags = revlog.REVIDX_FLAGS_ORDER