I am not aware of any CLT that will give you a list of branches. Although it would be simple to script something (Perl would be my choice) to (recursively) traverse the directory structure under /default. Anything other than "WORKAREA", "EDITIONS" or "STAGING" would be a branch name. Editions would be under "EDITIONS" directory.
I am new to perl.Can you suggest some commands or functions for this.Also I have to generate the vpath to every branch visited .Actually i am in a very urgent need of this.