equal
deleted
inserted
replaced
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, |