From 74c47ee78883aa086ae8977f9a30fd1ca461d9cf Mon Sep 17 00:00:00 2001 From: mhagger Date: Tue, 1 Jul 2014 09:48:56 +0000 Subject: [PATCH] InitializeChangesetsPass: We are looking for the *biggest* gap. The old code looked for the smallest gap among split points that break the same number of dependencies. This was backwards. Fix the comparison. Reported-by: Matwey V. Kornilov git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@5458 be7e6eca-30d4-0310-a8e5-ac0d63af7087 --- cvs2svn_lib/passes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cvs2svn_lib/passes.py b/cvs2svn_lib/passes.py index 8dfbd101..cba729fe 100644 --- a/cvs2svn_lib/passes.py +++ b/cvs2svn_lib/passes.py @@ -708,7 +708,7 @@ class InitializeChangesetsPass(Pass): gap = changeset_items[i + 1].timestamp - changeset_items[i].timestamp if ( breaks[i] > best_count - or breaks[i] == best_count and gap < best_gap + or breaks[i] == best_count and gap > best_gap ): best_i = i best_count = breaks[i] -- 2.11.4.GIT