@@ -152,21 +152,6 @@ private void doFileHistory(String filename, History history, Repository reposito
152
152
storeFile (history , file , repository , !renamed );
153
153
}
154
154
155
- private boolean isRenamedFile (String filename , Repository repository , History history )
156
- throws IOException {
157
-
158
- String repodir ;
159
- try {
160
- repodir = env .getPathRelativeToSourceRoot (new File (repository .getDirectoryName ()));
161
- } catch (ForbiddenSymlinkException e ) {
162
- LOGGER .log (Level .FINER , e .getMessage ());
163
- return false ;
164
- }
165
- String shortestfile = filename .substring (repodir .length () + 1 );
166
-
167
- return (history .isRenamed (shortestfile ));
168
- }
169
-
170
155
static class FilePersistenceDelegate extends PersistenceDelegate {
171
156
@ Override
172
157
protected Expression instantiate (Object oldInstance , Encoder out ) {
@@ -492,12 +477,8 @@ public void store(History history, Repository repository, String tillRevision) t
492
477
final File root = env .getSourceRootFile ();
493
478
int fileHistoryCount = 0 ;
494
479
for (Map .Entry <String , List <HistoryEntry >> map_entry : map .entrySet ()) {
495
- try {
496
- if (handleRenamedFiles && isRenamedFile (map_entry .getKey (), repository , history )) {
497
- continue ;
498
- }
499
- } catch (IOException ex ) {
500
- LOGGER .log (Level .WARNING , "isRenamedFile() got exception" , ex );
480
+ if (handleRenamedFiles && history .isRenamed (map_entry .getKey ())) {
481
+ continue ;
501
482
}
502
483
503
484
doFileHistory (map_entry .getKey (), new History (map_entry .getValue ()),
0 commit comments