File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
opengrok-indexer/src/main/java/org/opengrok/indexer/history Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 33
33
import java .text .ParseException ;
34
34
import java .util .ArrayList ;
35
35
import java .util .Date ;
36
+ import java .util .HashSet ;
36
37
import java .util .Iterator ;
37
38
import java .util .List ;
39
+ import java .util .Set ;
38
40
import java .util .logging .Level ;
39
41
import java .util .logging .Logger ;
40
42
import org .opengrok .indexer .configuration .RuntimeEnvironment ;
@@ -56,7 +58,7 @@ class MercurialHistoryParser implements Executor.StreamHandler {
56
58
private final MercurialRepository repository ;
57
59
private final String mydir ;
58
60
private boolean isDir ;
59
- private final List <String > renamedFiles = new ArrayList <>();
61
+ private final Set <String > renamedFiles = new HashSet <>();
60
62
61
63
MercurialHistoryParser (MercurialRepository repository ) {
62
64
this .repository = repository ;
@@ -184,8 +186,7 @@ public void processStream(InputStream input) throws IOException {
184
186
*/
185
187
String [] move = part .split (" \\ (" );
186
188
File f = new File (mydir + move [0 ]);
187
- if (!move [0 ].isEmpty () && f .exists () &&
188
- !renamedFiles .contains (repository .getDirectoryNameRelative () + File .separator + move [0 ])) {
189
+ if (!move [0 ].isEmpty () && f .exists ()) {
189
190
renamedFiles .add (repository .getDirectoryNameRelative () + File .separator + move [0 ]);
190
191
}
191
192
}
You can’t perform that action at this time.
0 commit comments