Does anyone know how to promote (change the owner) a snapshot VIA comand line?
![]()
arvey wang (41●16●10)
| asked Jun 15 '11, 4:27 a.m.
edited Oct 11 '17, 12:58 p.m. by David Lafreniere (4.8k●7) Does anyone know how to promote (change the owner) of a snapshot VIA command line? |
Accepted answer
![]()
David Lafreniere (4.8k●7)
| answered Oct 11 '17, 12:57 p.m.
FORUM MODERATOR / JAZZ DEVELOPER edited Oct 11 '17, 1:26 p.m. In RTC 2.0 the only way to do this was to use the RTC Eclipse client. You use "Search" --> "Jazz Source Control" --> "Snapshots" then run a query to have the Search view populated with snapshots. Then you can right-click and use a "Promote" action. (Note: in a later RTC release this action was renamed to 'Set Owner...").
scm set attr -s <snapshot alias/name/uuid> --ownedby <stream alias/name/uuid> Michael Valenta selected this answer as the correct answer
|
One other answer
![]()
Ralph Schoon (62.7k●3●36●43)
| answered Jun 15 '11, 5:13 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Oct 11 '17, 12:58 p.m. by David Lafreniere (4.8k●7) Hi, RTC 3.0.1 provides a snapshot promote command:
Comments Hi, RTC 2 doesn't have this. How can we do this in 2? ![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I think it is new in 3.0. If the 2.0 help does not have this command the only way to try would be to write something using the Plain Java Client Library. In RTC 2.x if you find the Snapshots via search or view, right-click and I think there is a Promote option there.
scm snapshot promote -r URI -u <username> -P <password> <stream> <snapshot name> |