I'm trying to get a list of folder's submitted changelist with no success.
It works for a single file but not for a folder.
here is my code (server object is initialized and I'm connected):
branch = "//xxx/yyy/zzz"; //With another '/' in the end I get an error for the next line List<IFileSpec> dirs= server.getDirectories(FileSpecBuilder.makeFileSpecList(branch), false, false, false); //in this point I got the folder's object in the list. GetChangelistsOptions ops = new GetChangelistsOptions(); ops.setMaxMostRecent(10); ops.setType(Type.SUBMITTED); List<IChangelistSummary> changelists = server.getChangelists(dirs, ops);
Any idea what am I doing wrong?