##// END OF EJS Templates
delta-find: move target_rev in the _DeltaSearch.__init__...
marmoute -
r52217:04735841 default
parent child Browse files
Show More
@@ -699,6 +699,8 b' class _DeltaSearch:'
699 self.p2 = p2
699 self.p2 = p2
700 self.cachedelta = cachedelta
700 self.cachedelta = cachedelta
701 self.excluded_bases = excluded_bases
701 self.excluded_bases = excluded_bases
702 if target_rev is None:
703 self.target_rev = len(self.revlog)
702 self.target_rev = target_rev
704 self.target_rev = target_rev
703 if snapshot_cache is None:
705 if snapshot_cache is None:
704 # map: base-rev: [snapshot-revs]
706 # map: base-rev: [snapshot-revs]
@@ -717,9 +719,6 b' class _DeltaSearch:'
717 yield None
719 yield None
718 return
720 return
719
721
720 if self.target_rev is None:
721 self.target_rev = len(self.revlog)
722
723 if not self.revlog.delta_config.general_delta:
722 if not self.revlog.delta_config.general_delta:
724 # before general delta, there is only one possible delta base
723 # before general delta, there is only one possible delta base
725 yield (self.target_rev - 1,)
724 yield (self.target_rev - 1,)
General Comments 0
You need to be logged in to leave comments. Login now