@@ -29,12 +29,16 @@ public static GitWalkerResult walk(Repository repo) {
29
29
.retentionPolicy ("autogen" )
30
30
.consistency (InfluxDB .ConsistencyLevel .ALL )
31
31
.build ();
32
- createPoints ("2.13.x" , "fc1aea6712" , batchPoints , repo , branchesMap );
33
- createPoints ("2.12.x" , "132a0587ab" , batchPoints , repo , branchesMap );
34
- createPoints ("v2.12.0" , "05016d9035" , batchPoints , repo , branchesMap );
35
- createPoints ("2.11.x" , "7ac15a1210" , batchPoints , repo , branchesMap );
36
- createPoints ("2.10.x" , "cc672b023e" , batchPoints , repo , branchesMap );
37
- createPoints ("2.9.x" , "33e1dac4e4" , batchPoints , repo , branchesMap );
32
+ createPoints ("2.13.x" , null ,"fc1aea6712" , batchPoints , repo , branchesMap );
33
+ createPoints ("2.12.x" , null , "132a0587ab" , batchPoints , repo , branchesMap );
34
+
35
+ // There used to be a release branch v2.12.0. Looks to be deleted now? Use the v2.12.0 tag as the tip of this
36
+ // virtual branch.
37
+ createPoints ("v2.12.0" , "9a6ace1637053c094bfd395de540fe43c658b335" ,"05016d9035" , batchPoints , repo , branchesMap );
38
+
39
+ createPoints ("2.11.x" , null , "7ac15a1210" , batchPoints , repo , branchesMap );
40
+ createPoints ("2.10.x" , null , "cc672b023e" , batchPoints , repo , branchesMap );
41
+ createPoints ("2.9.x" , null , "33e1dac4e4" , batchPoints , repo , branchesMap );
38
42
return new GitWalkerResult (batchPoints , branchesMap , repo );
39
43
}
40
44
@@ -50,14 +54,17 @@ private static int countParentsWithSameCommitTime(RevCommit revCommit) {
50
54
51
55
static long adjustCommitTime (RevCommit revCommit ) {
52
56
int numParentsWithSameCommitTime = countParentsWithSameCommitTime (revCommit );
53
- return (long ) revCommit .getCommitTime () * 1000L + numParentsWithSameCommitTime * 10 ;
57
+ return (long ) revCommit .getCommitTime () * 1000L + numParentsWithSameCommitTime * 10L ;
54
58
}
55
59
56
60
public void upload (BatchPoints batchPoints ) {
57
61
58
62
}
59
63
60
- private static BatchPoints createPoints (String branch , String forkPoint , BatchPoints batchPoints , Repository repo , Map <String , String > branchesMap ) {
64
+ private static BatchPoints createPoints (String branch , String branchRef , String forkPoint , BatchPoints batchPoints , Repository repo , Map <String , String > branchesMap ) {
65
+ if (branchRef != null ) {
66
+ branch = branchRef ;
67
+ }
61
68
try {
62
69
ObjectId resolvedBranch = resolve (branch , repo );
63
70
ObjectId resolvedForkPoint = resolve (forkPoint , repo );
0 commit comments