tests/test-revlog-raw.py
changeset 51004 39fa0b948f5a
parent 49679 b670eb3dd6c9
child 51029 498afb627f78
equal deleted inserted replaced
51003:273434748051 51004:39fa0b948f5a
   156             if optimaldelta:
   156             if optimaldelta:
   157                 deltaparent = parentrev
   157                 deltaparent = parentrev
   158             else:
   158             else:
   159                 # suboptimal deltaparent
   159                 # suboptimal deltaparent
   160                 deltaparent = min(0, parentrev)
   160                 deltaparent = min(0, parentrev)
   161             if not rlog.candelta(deltaparent, r):
   161             if not rlog._candelta(deltaparent, r):
   162                 deltaparent = -1
   162                 deltaparent = -1
   163             return {
   163             return {
   164                 b'node': rlog.node(r),
   164                 b'node': rlog.node(r),
   165                 b'p1': pnode,
   165                 b'p1': pnode,
   166                 b'p2': rlog.nullid,
   166                 b'p2': rlog.nullid,