Can I get recursively get labels applied to subfolders?

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
alan.bowens
Posts: 21
Joined: Tue Sep 02, 2008 3:36 am

Can I get recursively get labels applied to subfolders?

Post by alan.bowens » Fri Dec 16, 2011 4:04 am

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

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Can I get recursively get labels applied to subfolders?

Post by lbauer » Fri Dec 16, 2011 9:40 am

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.
Linda Bauer
SourceGear
Technical Support Manager

alan.bowens
Posts: 21
Joined: Tue Sep 02, 2008 3:36 am

Re: Can I get recursively get labels applied to subfolders?

Post by alan.bowens » Fri Dec 16, 2011 10:04 am

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

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Can I get recursively get labels applied to subfolders?

Post by lbauer » Mon Dec 19, 2011 4:13 pm

Is it possible to export the contents of the displayed screen to the clipboard or similar?
Not at this time.

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

alan.bowens
Posts: 21
Joined: Tue Sep 02, 2008 3:36 am

Re: Can I get recursively get labels applied to subfolders?

Post by alan.bowens » Tue Dec 20, 2011 3:06 am

Ok, thanks for the info Linda.

Regards

Alan

Post Reply