mercurial/revlogutils/rewrite.py
changeset 51690 493034cc3265
parent 51270 ceeb8fa23cc8
child 51700 7f0cb9ee0534
equal deleted inserted replaced
51689:39e2b2d062c1 51690:493034cc3265
   256             # for its delta. We need a need new deltas
   256             # for its delta. We need a need new deltas
   257             if entry[ENTRY_DATA_UNCOMPRESSED_LENGTH] == 0:
   257             if entry[ENTRY_DATA_UNCOMPRESSED_LENGTH] == 0:
   258                 # this revision is empty, we can delta against nullrev
   258                 # this revision is empty, we can delta against nullrev
   259                 rewritten_entries[rev] = (nullrev, 0, 0, COMP_MODE_PLAIN)
   259                 rewritten_entries[rev] = (nullrev, 0, 0, COMP_MODE_PLAIN)
   260             else:
   260             else:
   261 
       
   262                 text = revlog.rawdata(rev)
   261                 text = revlog.rawdata(rev)
   263                 info = revlogutils.revisioninfo(
   262                 info = revlogutils.revisioninfo(
   264                     node=entry[ENTRY_NODE_ID],
   263                     node=entry[ENTRY_NODE_ID],
   265                     p1=revlog.node(entry[ENTRY_PARENT_1]),
   264                     p1=revlog.node(entry[ENTRY_PARENT_1]),
   266                     p2=revlog.node(entry[ENTRY_PARENT_2]),
   265                     p2=revlog.node(entry[ENTRY_PARENT_2]),