Skip to content

Commit

Permalink
Backwards compatibility for p4 describe.
Browse files Browse the repository at this point in the history
Max limit on files for p4 describe (-m flag) was introduced in 2014.1
JENKINS-48433
  • Loading branch information
p4paul committed Jan 2, 2018
1 parent 15ffff1 commit 14644dd
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -550,7 +550,13 @@ public List<IFileSpec> getLabelFiles(String id, int limit) throws Exception {
// Use a describe for files to avoid MAXSCANROW limits.
// (backed-out part of change 16390)
public List<IFileSpec> getChangeFiles(int id, int limit) throws Exception {
List<IFileSpec> files = connection.getChangelistFiles(id, limit);
List<IFileSpec> files;
// Avoid describe -m for old servers JENKINS-48433
if (!checkVersion(20141)) {
files = connection.getChangelistFiles(id);
} else {
files = connection.getChangelistFiles(id, limit);
}
return files;
}

Expand Down

0 comments on commit 14644dd

Please sign in to comment.