From c99f14df097f72394a6bb9c8ae9130cd8cb86cf1 Mon Sep 17 00:00:00 2001 From: Raja R Harinath Date: Sun, 20 Jun 2010 19:15:39 +0530 Subject: Track commits per-branch Previously, all the SVN commits were tracked in a linear array, and we searched for nearest commits in that array. However, SVN history is not linear, and the 'next smallest commit' search was picking the wrong commit. I've moved the commit array into the 'Branch' structure. As a minor subtlety, the branch creation revision is also noted in the 'commitMarks' structure, by copying the commit mark of the branch point. We need this to ensure that the commits array is strictly non-decreasing. --- src/repository.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/repository.h') diff --git a/src/repository.h b/src/repository.h index 629616b..3df9d9a 100644 --- a/src/repository.h +++ b/src/repository.h @@ -72,6 +72,7 @@ private: struct Branch { int created; + QVector commits; }; struct AnnotatedTag { @@ -86,7 +87,6 @@ private: QHash branches; QHash annotatedTags; QHash commitMarks; - QVector exportedCommits; QString name; QProcess fastImport; int commitCount; -- cgit v1.2.1