Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fetch full change description.
The 'p4 changes' optimisation only fetched the first 32 characters.
Added the '-l' flag to fetch the full description.

JENKINS-31748
  • Loading branch information
p4paul committed Nov 26, 2015
1 parent a03ebba commit 571f235
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -30,6 +30,7 @@
import com.perforce.p4java.impl.generic.core.file.FileSpec;
import com.perforce.p4java.impl.mapbased.server.Server;
import com.perforce.p4java.option.server.ChangelistOptions;
import com.perforce.p4java.option.server.GetChangelistsOptions;
import com.perforce.p4java.option.server.GetDepotFilesOptions;
import com.perforce.p4java.option.server.GetFixesOptions;
import com.perforce.p4java.server.CmdSpec;
Expand Down Expand Up @@ -287,7 +288,9 @@ public Changelist getChange(int id) throws Exception {

public IChangelistSummary getChangeSummary(int id) throws P4JavaException {
List<IFileSpec> spec = FileSpecBuilder.makeFileSpecList("@=" + id);
List<IChangelistSummary> summary = connection.getChangelists(spec, null);
GetChangelistsOptions cngOpts = new GetChangelistsOptions();
cngOpts.setLongDesc(true);
List<IChangelistSummary> summary = connection.getChangelists(spec, cngOpts);
return summary.get(0);
}

Expand Down

0 comments on commit 571f235

Please sign in to comment.