I am playing about with the vault command line client, trying to get some year-end stats to show what my team have been up to over the last 12 months. I have found that I can get all labels applied to a folder like so:
vault.exe history -host hostname -user username -password userpassword -repository reponame -excludeactions add,branch,checkin,create,delete,move,obliterate,pin,propertychange,rename,rollback,share,snapshot,undelete -begindate 01/01/2011 app_folder
This successfully returns all labels applied to the app_folder folder. If however I have the following folder structure:
apps
|-app_1
|-app_2
|-...
I was hoping that running this command on the apps folder would return all labels applied to subfolders (app_1, app_2, etc). It doesn't seem to. Am I missing something? Do I need another command line parameter?
Thanks
Can I get recursively get labels applied to subfolders?
Moderator: SourceGear
-
- Posts: 21
- Joined: Tue Sep 02, 2008 3:36 am
Re: Can I get recursively get labels applied to subfolders?
A history operation on a folder or file will show a label applied at that level, but not recursive labels. This is true in the Vault GUI Client and the Command Line Client. In the Vault GUI, there's a Show Labels command that shows both inherited and recursive labels, but Show Labels doesn't exist in the Command Line Client.
I need to investigate whether it's possible to use the Vault Client API for this.
I need to investigate whether it's possible to use the Vault Client API for this.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
-
- Posts: 21
- Joined: Tue Sep 02, 2008 3:36 am
Re: Can I get recursively get labels applied to subfolders?
Hi Linda,
I wasn't aware of the recursive show label option in the GUI client, that shows the information I'm after. Is it possible to export the contents of the displayed screen to the clipboard or similar? If so I can filter the information to the relevant date range elsewhere.
Thanks
I wasn't aware of the recursive show label option in the GUI client, that shows the information I'm after. Is it possible to export the contents of the displayed screen to the clipboard or similar? If so I can filter the information to the relevant date range elsewhere.
Thanks
Re: Can I get recursively get labels applied to subfolders?
Not at this time.Is it possible to export the contents of the displayed screen to the clipboard or similar?
We have feature request 9064 for this functionality; I'll add your vote.
It will be evaluated for an upcoming release of Vault.
Thanks for your feedback!
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
-
- Posts: 21
- Joined: Tue Sep 02, 2008 3:36 am
Re: Can I get recursively get labels applied to subfolders?
Ok, thanks for the info Linda.
Regards
Alan
Regards
Alan