@@ -138,7 +138,7 @@ private HistoryRevResult getHistoryRev(OutputStream out, String fullpath, String
138
138
try {
139
139
filename = getGitFilePath (Paths .get (getCanonicalDirectoryName ()).relativize (Paths .get (fullpath )).toString ());
140
140
} catch (IOException e ) {
141
- LOGGER .log (Level .WARNING , String .format ("Failed to relativize '%s' in for repository '%s'" ,
141
+ LOGGER .log (Level .WARNING , String .format ("Failed to relativize '%s' for '%s'" ,
142
142
fullpath , directory ), e );
143
143
return result ;
144
144
}
@@ -159,7 +159,7 @@ private HistoryRevResult getHistoryRev(OutputStream out, String fullpath, String
159
159
treeWalk .setFilter (PathFilter .create (filename ));
160
160
if (!treeWalk .next ()) {
161
161
LOGGER .log (Level .FINEST , "Did not find expected file ''{0}'' in revision {1} " +
162
- "for repository ''{2}''" , new Object [] {filename , rev , directory });
162
+ "for ''{2}''" , new Object [] {filename , rev , directory });
163
163
return result ;
164
164
}
165
165
@@ -175,7 +175,7 @@ private HistoryRevResult getHistoryRev(OutputStream out, String fullpath, String
175
175
revWalk .dispose ();
176
176
}
177
177
} catch (IOException e ) {
178
- LOGGER .log (Level .WARNING , String .format ("Failed to get file '%s' in revision %s for repository '%s'" ,
178
+ LOGGER .log (Level .WARNING , String .format ("Failed to get file '%s' in revision %s for '%s'" ,
179
179
filename , rev , directory ), e );
180
180
}
181
181
@@ -250,11 +250,11 @@ private String getPathRelativeToCanonicalRepositoryRoot(String fullPath) throws
250
250
String findOriginalName (String fullpath , String changeset ) throws IOException {
251
251
252
252
if (fullpath == null || fullpath .isEmpty ()) {
253
- throw new IOException (String .format ("Invalid file path string: %s " , fullpath ));
253
+ throw new IOException (String .format ("Invalid file path string: '%s' " , fullpath ));
254
254
}
255
255
256
256
if (changeset == null || changeset .isEmpty ()) {
257
- throw new IOException (String .format ("Invalid changeset string for path %s : %s" ,
257
+ throw new IOException (String .format ("Invalid changeset string for '%s' : %s" ,
258
258
fullpath , changeset ));
259
259
}
260
260
@@ -525,7 +525,7 @@ public void traverseHistory(File file, String sinceRevision, String tillRevision
525
525
}
526
526
}
527
527
} catch (IOException | ForbiddenSymlinkException e ) {
528
- throw new HistoryException (String .format ("failed to get history for ''%s' '" , file ), e );
528
+ throw new HistoryException (String .format ("failed to get history for '%s '" , file ), e );
529
529
}
530
530
}
531
531
@@ -735,7 +735,7 @@ private void rebuildTagList(File directory) {
735
735
commit2Tags .merge (commit , tagName , (oldValue , newValue ) -> oldValue + TAGS_SEPARATOR + newValue );
736
736
} catch (IOException e ) {
737
737
LOGGER .log (Level .FINEST ,
738
- String .format ("cannot get tags for \" %s \" " , directory .getAbsolutePath ()), e );
738
+ String .format ("cannot get tags for '%s' " , directory .getAbsolutePath ()), e );
739
739
}
740
740
}
741
741
@@ -748,12 +748,12 @@ private void rebuildTagList(File directory) {
748
748
}
749
749
}
750
750
} catch (IOException | GitAPIException e ) {
751
- LOGGER .log (Level .WARNING , String .format ("cannot get tags for \" %s \" " , directory .getAbsolutePath ()), e );
751
+ LOGGER .log (Level .WARNING , String .format ("cannot get tags for '%s' " , directory .getAbsolutePath ()), e );
752
752
// In case of partial success, do not null-out tagList here.
753
753
}
754
754
755
755
if (LOGGER .isLoggable (Level .FINER )) {
756
- LOGGER .log (Level .FINER , "Read tags count={0} for {1}" ,
756
+ LOGGER .log (Level .FINER , "Read tags count={0} for '' {1}'' " ,
757
757
new Object [] {tagList .size (), directory });
758
758
}
759
759
}
@@ -798,9 +798,9 @@ protected void buildTagList(File directory, CommandTimeoutType cmdType) {
798
798
try {
799
799
future .get (RuntimeEnvironment .getInstance ().getCommandTimeout (cmdType ), TimeUnit .SECONDS );
800
800
} catch (InterruptedException | ExecutionException e ) {
801
- LOGGER .log (Level .WARNING , "failed tag rebuild for directory " + directory , e );
801
+ LOGGER .log (Level .WARNING , String . format ( "failed tag rebuild for directory '%s'" , directory ) , e );
802
802
} catch (TimeoutException e ) {
803
- LOGGER .log (Level .WARNING , "timed out tag rebuild for directory " + directory , e );
803
+ LOGGER .log (Level .WARNING , String . format ( "timed out tag rebuild for directory '%s'" , directory ) , e );
804
804
}
805
805
806
806
if (!executor .isTerminated ()) {
0 commit comments