Jump to content


Listing Branches API returns empty list using java api

java-api perforce-api branching

  • Please log in to reply
1 reply to this topic

#1 Chunky Garg

Chunky Garg

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 16 October 2015 - 09:28 AM

I am trying to fetch the list of branches present on perforce server using java api.
I am using the api as mentioned below.

List<IBranchSpecSummary> branches = server.getBranchSpecs(null, null, 1000);

This api always returns me empty list.

Is there a bug in this api or am i doing something wrong ?

#2 P4Shimada

P4Shimada

    Advanced Member

  • Members
  • PipPipPip
  • 831 posts

Posted 22 October 2015 - 10:22 PM

Hello,

Have you checked your server log to see what command was actually ran by the API?  It appears that you were trying to run the following command:

 p4 branches -m1000

Is that correct? Have you tried the command on the p4 command line to verify the output?





Also tagged with one or more of these keywords: java-api, perforce-api, branching

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users