mercurial/revlogutils/deltas.py
changeset 49776 acdb9a15137c
parent 49775 d57b966cdeb1
child 50354 ca1522fe4ec8
equal deleted inserted replaced
49775:d57b966cdeb1 49776:acdb9a15137c
   679     This top level function focus on emitting groups with unique and worthwhile
   679     This top level function focus on emitting groups with unique and worthwhile
   680     content. See _raw_candidate_groups for details about the group order.
   680     content. See _raw_candidate_groups for details about the group order.
   681     """
   681     """
   682     # should we try to build a delta?
   682     # should we try to build a delta?
   683     if not (len(revlog) and revlog._storedeltachains):
   683     if not (len(revlog) and revlog._storedeltachains):
       
   684         yield None
       
   685         return
       
   686 
       
   687     if (
       
   688         cachedelta is not None
       
   689         and nullrev == cachedelta[0]
       
   690         and cachedelta[2] == DELTA_BASE_REUSE_FORCE
       
   691     ):
       
   692         # instruction are to forcibly do a full snapshot
   684         yield None
   693         yield None
   685         return
   694         return
   686 
   695 
   687     deltalength = revlog.length
   696     deltalength = revlog.length
   688     deltaparent = revlog.deltaparent
   697     deltaparent = revlog.deltaparent