我正在尝试使用P4J获取目录上的更改列表.这是我用过的片段,
P4JServer server = //get a valid server using username/pwd
List<P4JFileSpec> fileSpec = P4JFileSpecBuilder.makeFileSpecList(new String[]{"//depot/se/mydir"}); //a valid directory
if(P4JFileSpecBuilder.getValidFileSpecs(fileSpec).isEmpty()) {
throw new RuntimeException("File spec invalid for [" + depotPath + "]");
}
List<P4JChangeList> changes = server.getChangeLists(10, fileSpec, null, null, true, true, false, true);
System.out.println(changes.size()); //prints 0 here
Run Code Online (Sandbox Code Playgroud)
但是,如果我使用"// depot/se/myfile"这是一个有效的文件,则打印更改列表.难道我做错了什么?我需要一个目录上的变更列表.