How to lock all files under a component in batch?
He Huang (31●9●11)
| asked Aug 14 '13, 5:12 a.m.
edited Oct 05 '17, 11:36 p.m. by David Lafreniere (4.8k●7) Now I can only lock one file in the RTC client by browse to the file and right click it, and select "lock" in the pop up menu. If I want to lock a bunch of files, it would be time consuming to lock file one by one. How can I lock all files under a component in batch?
|
Accepted answer
David Lafreniere (4.8k●7)
| answered Oct 05 '17, 11:36 p.m.
FORUM MODERATOR / JAZZ DEVELOPER edited Oct 05 '17, 11:37 p.m. Locking the Entire Stream or Component:
Michael Valenta selected this answer as the correct answer
|
2 other answers
Shashikant Padur (4.3k●2●7)
| answered Aug 14 '13, 7:38 a.m.
JAZZ DEVELOPER edited Aug 14 '13, 7:38 a.m.
You could use the scm commandline which allows you to specify multiple files... 'scm lock acquire -r <repo> -s <stream identifier> -R'
To get the list of files in a component you could use the following command... 'scm list remotefiles -r <repo> <stream identifier> <component identifier>' To get an output that is consumable you could use the --json option. |
The Eclipse client also allows you to select multiple files in the Package Explorer and execute the lock action on them. It may be a little tedious to select them all though as there isn't an option to lock a folder with a recursive option on its contents.
I believe there is a trick in the web UI where you can lock many files. From a stream, you start to delete a folder and it will lock it and all of its contents in that stream. They will remain locked until you follow through with the delete or cancel the action. You can also navigate away from the page and they will remain locked. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.