代码之家  ›  专栏  ›  技术社区  ›  Kannan Ekanath

Perforce P4J获取目录的更改列表

  •  1
  • Kannan Ekanath  · 技术社区  · 15 年前

    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   
    

    但是,如果我使用“//depot/se/myfile”,这是一个有效的文件,则会打印变更列表。我做错什么了吗?我需要目录上的变更列表。

    1 回复  |  直到 15 年前
        1
  •  5
  •   Kannan Ekanath    15 年前

    目录名应指定为

    推荐文章