mercurial/revlogutils/deltas.py
changeset 49675 0fca63953810
parent 49674 5af4a0a73e4c
child 49677 05db41701ece
equal deleted inserted replaced
49674:5af4a0a73e4c 49675:0fca63953810
  1069             p1, p2 = revlog.rev(revinfo.p1), revlog.rev(revinfo.p2)
  1069             p1, p2 = revlog.rev(revinfo.p1), revlog.rev(revinfo.p2)
  1070             if deltabase not in (p1, p2) and revlog.issnapshot(deltabase):
  1070             if deltabase not in (p1, p2) and revlog.issnapshot(deltabase):
  1071                 snapshotdepth = len(revlog._deltachain(deltabase)[0])
  1071                 snapshotdepth = len(revlog._deltachain(deltabase)[0])
  1072         delta = None
  1072         delta = None
  1073         if revinfo.cachedelta:
  1073         if revinfo.cachedelta:
  1074             cachebase, cachediff = revinfo.cachedelta
  1074             cachebase = revinfo.cachedelta[0]
  1075             # check if the diff still apply
  1075             # check if the diff still apply
  1076             currentbase = cachebase
  1076             currentbase = cachebase
  1077             while (
  1077             while (
  1078                 currentbase != nullrev
  1078                 currentbase != nullrev
  1079                 and currentbase != base
  1079                 and currentbase != base