Apply label based on a label
Moderator: SourceGear
Apply label based on a label
Using command line client, can I apply a label to all items that have a specific label?
No, a label rename is different, although I am in a need of a "mass rename" function as well, but in the GUI client (it's for humans -- see my other post)dan wrote:This is not currently available. I curious about the use case for this functionality - would a label rename work?
This one is primarily for our build process so it will be nant-driven.
The use case is our code-build-test-release cycle uses labels to mark the various stages. So for example at build time we want to do a patch build, we would get all files labeled as released (so not always the latest revision in the tree) + get all files based on 'fixed' labels (for all fixes).
And then we want to apply a build number label to all those files above, which we originally did (in PVCS) by applying the build number label on release label and then again on the fixed labels.
So in summary the current labeling capabilities in the clients lacks:
- GUI: in the search tab, search by one or more labels
- GUI: once they're found, for a selection, do mass rename of label1 to label2
- GUI: overwrite label (bump up); so if we apply the same label to a file, instead of refusing, it should offer the option of deleting the label and apply it on the latest revision (default) or a revision chosen by the user.
- Commandline/nant vault task: apply label to all files having a certain label. Potentially needs overwrite label functionality as well.
Hope this is clear