Skip to content

Commit

Permalink
Performance JENKINS-26593
Browse files Browse the repository at this point in the history
  • Loading branch information
MadsNielsen committed Jan 26, 2015
1 parent a008298 commit e8e241b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Expand Up @@ -430,14 +430,14 @@
<dependency>
<groupId>net.praqma</groupId>
<artifactId>cool</artifactId>
<version>0.6.37-SNAPSHOT</version>
<version>0.6.37-PERFORMANCE-SNAPSHOT</version>
<type>jar</type>
</dependency>

<dependency>
<groupId>net.praqma</groupId>
<artifactId>cool</artifactId>
<version>0.6.37-SNAPSHOT</version>
<version>0.6.37-PERFORMANCE-SNAPSHOT</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
Expand Down
Expand Up @@ -59,21 +59,14 @@ public String invoke(File file, VirtualChannel vc) throws IOException, Interrupt
}

Map<Activity, List<Version>> acts = vl.getLatestForActivities();
for(Activity a : acts.keySet()) {
try {
a.load();
} catch (UnableToLoadEntityException ex) {
logger.severe("Could not autoload actitity "+a);
}
}


for( Activity activity : acts.keySet() ) {
csg.addAcitivity( activity.getShortname(), activity.getHeadline(), activity.getUser(), acts.get( activity ) );
}
} else {
logger.fine("Creating non-trimmed changeset");
for( Activity activity : activities ) {
VersionList versions = new VersionList( activity.changeset.versions ).getLatest();
VersionList versions = new VersionList( activity.changeset.versions, activities ).getLatest();
if(ignoreReadOnly) {
versions = versions.addFilter(new ReadOnlyVersionFilter(viewRoot, readOnly)).apply();
}
Expand Down

0 comments on commit e8e241b

Please sign in to comment.