-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support matching modified comment groups
- Loading branch information
Showing
8 changed files
with
3,099 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/test/resources/mappings/jgit-1b783d037091266b035e1727db6b6ce7a397ef63.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
private searchForDeltas(monitor ProgressMonitor) : void -> private searchForDeltas(monitor ProgressMonitor) : void | ||
line range:882-882==line range:908-908 | ||
line range:883-883==line range:909-909 | ||
line range:884-884==line range:910-910 | ||
line range:885-885==line range:911-911 | ||
line range:896-896==line range:922-922 | ||
line range:897-897==line range:923-923 | ||
line range:898-898==line range:924-924 | ||
line range:899-899==line range:925-925 | ||
line range:905-905==line range:931-931 | ||
line range:906-906==line range:932-932 | ||
line range:907-907==line range:933-933 | ||
line range:908-908==line range:934-934 | ||
line range:916-916==line range:942-942 | ||
line range:917-917==line range:943-943 | ||
line range:918-918==line range:944-944 | ||
line range:919-919==line range:945-945 | ||
line range:920-920==line range:946-946 | ||
private searchForDeltas(monitor ProgressMonitor, list ObjectToPack[], cnt int) : void -> private searchForDeltas(monitor ProgressMonitor, list ObjectToPack[], cnt int) : void | ||
line range:989-989==line range:1012-1012 | ||
line range:990-990==line range:1013-1013 | ||
line range:991-991==line range:1014-1014 | ||
line range:992-992==line range:1015-1015 | ||
line range:993-993==line range:1016-1016 | ||
line range:1003-1003==line range:1027-1027 | ||
line range:1004-1004==line range:1028-1028 | ||
line range:1005-1005==line range:1029-1029 | ||
line range:1008-1008==line range:1032-1032 | ||
line range:1009-1009==line range:1033-1033 | ||
line range:1054-1054==line range:1105-1105 | ||
line range:1055-1055==line range:1106-1106 | ||
line range:1056-1056==line range:1107-1107 | ||
line range:1042-1042==line range:1053-1053 |
1 change: 1 addition & 0 deletions
1
src/test/resources/oracle/commits/jgit-1b783d037091266b035e1727db6b6ce7a397ef63.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"parentCommitId":"21f76c2a69836ec618c82eb9305656dcec70befb","currentCommitId":"1b783d037091266b035e1727db6b6ce7a397ef63","filesBefore":["org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java"],"filesCurrent":["org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/DeltaTask.java","org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java"],"renamedFilesHint":{},"repositoryDirectoriesBefore":["org.eclipse.jgit/src/org/eclipse/jgit","org.eclipse.jgit/src/org/eclipse/jgit/storage","org.eclipse.jgit/src","org.eclipse.jgit/src/org","org.eclipse.jgit/src/org/eclipse/jgit/storage/pack","org.eclipse.jgit/src/org/eclipse","org.eclipse.jgit"],"repositoryDirectoriesCurrent":["org.eclipse.jgit/src/org/eclipse/jgit","org.eclipse.jgit/src/org/eclipse/jgit/storage","org.eclipse.jgit/src","org.eclipse.jgit/src/org","org.eclipse.jgit/src/org/eclipse/jgit/storage/pack","org.eclipse.jgit/src/org/eclipse","org.eclipse.jgit"],"commitTime":0,"authoredTime":0,"commitAuthorName":null} |
88 changes: 88 additions & 0 deletions
88
...35e1727db6b6ce7a397ef63/org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/DeltaTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
/* | ||
* Copyright (C) 2010, Google Inc. | ||
* and other copyright owners as documented in the project's IP log. | ||
* | ||
* This program and the accompanying materials are made available | ||
* under the terms of the Eclipse Distribution License v1.0 which | ||
* accompanies this distribution, is reproduced below, and is | ||
* available at http://www.eclipse.org/org/documents/edl-v10.php | ||
* | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or | ||
* without modification, are permitted provided that the following | ||
* conditions are met: | ||
* | ||
* - Redistributions of source code must retain the above copyright | ||
* notice, this list of conditions and the following disclaimer. | ||
* | ||
* - Redistributions in binary form must reproduce the above | ||
* copyright notice, this list of conditions and the following | ||
* disclaimer in the documentation and/or other materials provided | ||
* with the distribution. | ||
* | ||
* - Neither the name of the Eclipse Foundation, Inc. nor the | ||
* names of its contributors may be used to endorse or promote | ||
* products derived from this software without specific prior | ||
* written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND | ||
* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, | ||
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR | ||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
package org.eclipse.jgit.storage.pack; | ||
|
||
import java.util.concurrent.Callable; | ||
|
||
import org.eclipse.jgit.lib.ObjectReader; | ||
import org.eclipse.jgit.lib.ProgressMonitor; | ||
|
||
final class DeltaTask implements Callable<Object> { | ||
private final PackWriter writer; | ||
|
||
private final ObjectReader templateReader; | ||
|
||
private final DeltaCache dc; | ||
|
||
private final ProgressMonitor pm; | ||
|
||
private final int batchSize; | ||
|
||
private final int start; | ||
|
||
private final ObjectToPack[] list; | ||
|
||
DeltaTask(PackWriter writer, ObjectReader reader, DeltaCache dc, | ||
ProgressMonitor pm, int batchSize, int start, ObjectToPack[] list) { | ||
this.writer = writer; | ||
this.templateReader = reader; | ||
this.dc = dc; | ||
this.pm = pm; | ||
this.batchSize = batchSize; | ||
this.start = start; | ||
this.list = list; | ||
} | ||
|
||
public Object call() throws Exception { | ||
final ObjectReader or = templateReader.newReader(); | ||
try { | ||
DeltaWindow dw; | ||
dw = new DeltaWindow(writer, dc, or); | ||
dw.search(pm, list, start, batchSize); | ||
} finally { | ||
or.release(); | ||
} | ||
return null; | ||
} | ||
} |
Oops, something went wrong.