mercurial/changegroup.py
changeset 33030 3e102a8dd52c
parent 32931 b08431e1b062
child 33036 52c7060b707a
equal deleted inserted replaced
33029:b482d80e041b 33030:3e102a8dd52c
   424                                 lambda tr: repo._afterlock(runhooks))
   424                                 lambda tr: repo._afterlock(runhooks))
   425         finally:
   425         finally:
   426             repo.ui.flush()
   426             repo.ui.flush()
   427         # never return 0 here:
   427         # never return 0 here:
   428         if deltaheads < 0:
   428         if deltaheads < 0:
   429             return deltaheads - 1
   429             ret = deltaheads - 1
   430         else:
   430         else:
   431             return deltaheads + 1
   431             ret = deltaheads + 1
       
   432         return ret, added
   432 
   433 
   433 class cg2unpacker(cg1unpacker):
   434 class cg2unpacker(cg1unpacker):
   434     """Unpacker for cg2 streams.
   435     """Unpacker for cg2 streams.
   435 
   436 
   436     cg2 streams add support for generaldelta, so the delta header
   437     cg2 streams add support for generaldelta, so the delta header