use of aserg.gtf.model.LogCommitInfo in project Truck-Factor by aserg-ufmg.
the class AliasHandler method treatFileAlias.
private void treatFileAlias(Map<String, List<LogCommitInfo>> namesMap, Collection<LogCommitInfo> commits) {
for (LineInfo info : fileAliases) {
String rep = info.getRepositoryName();
String dev1 = info.getValues().get(0);
String dev2 = info.getValues().get(1);
String mainUserName = namesMap.get(dev1.toUpperCase()).get(0).getUserName();
for (LogCommitInfo commit : commits) {
if (commit.getMainName().equalsIgnoreCase(dev2) && !commit.getUserName().equals(mainUserName)) {
commit.setUserName(mainUserName);
}
}
}
}
Aggregations