Jump to content

List repositories and branches


jesfalso

Recommended Posts

Hello,

I am writing an application in java which uses Plastic SCM. I use the commands provided, but I wonder if there is any way of listing all the branches that exist in a repository. At least, I would like a way of knowing whether a branch or a repository exists in a server or not, just to make the program knows this and it can handle it.

Thanks in advanced.

Link to comment
Share on other sites

  • 3 weeks later...

Use the cm find command. For instance, to see if a branch exists on a repository:

cm find branches where name = 'branchname' on repository 'myrepo' --format={name}

You can also list the repositories:

cm find workspacerepositories --format={name}

The cm find --help command will give more details on the possibilities, basically all objects can be queried.

Cheers,

David

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...