Modifying the Name/Alias of Change Set Using SCM
Is there a command to modify the name or alias of a specific change set using the command line tool? I've looked through the documentation for it, but the changeset only allows you to close an open changeset or modify the comments on it and I can't find any other command that allows you to modify a changeset. I'm asking because we have some developers who don't use Eclipse and would like to use the command line interface exclusively for Source Control.
|
3 answers
213249: Change sets need human readable id
There's already an enhancement asking for human readable ids if that helps with your developers' workflow. Comments
Brian Gottfried
commented May 23 '13, 11:35 a.m.
Tim, that appears to be what I'm looking for. I think my issue probably lies in reading the documentation too closely. If you check my comment on Josh's 2nd answer, you'll see the full details, but the short version is that the command line documentation makes reference to a change set name. I was just wondering if there was a native feature in the command line interface and how we could get a hold of it if it was. Might be best to revise the CL documentation to reflect that names aren't natively available (yet at least) in the scm interface... |
Hi Brian, the comment can be changed if thats what you mean. Example below:
D:\rtcinstalls\RTC-Client-Win-3.0.1.5\jazz\scmtools\eclipse>scm status
Workspace: (1057) "JCBRM" <-> (1041) "BRM Stream"
Component: (1043) "Banking Logic" <-> (1041) "BRM Stream"
Baseline: (1044) 4 "Sprint 1 (Release 1.0)"
Outgoing:
Change sets:
(1069) *--@ <No comment>
Component: (1045) "Build" <-> (1041) "BRM Stream"
Baseline: (1046) 2 "Week 1 (Sprint 1, Release 1.0)"
Outgoing:
Change sets:
(1067) *--@ <No comment>
Component: (1047) "C# UI" <-> (1041) "BRM Stream"
##########################################
D:\rtcinstalls\RTC-Client-Win-3.0.1.5\jazz\scmtools\eclipse>scm changeset comment 1069 "my new comment"
Comment set.
D:\rtcinstalls\RTC-Client-Win-3.0.1.5\jazz\scmtools\eclipse>scm status
Workspace: (1057) "JCBRM" <-> (1041) "BRM Stream"
Component: (1043) "Banking Logic" <-> (1041) "BRM Stream"
Baseline: (1044) 4 "Sprint 1 (Release 1.0)"
Outgoing:
Change sets:
(1069) *--@ "my new comment"
Component: (1045) "Build" <-> (1041) "BRM Stream"
Baseline: (1046) 2 "Week 1 (Sprint 1, Release 1.0)"
Outgoing:
Change sets:
(1067) *--@ <No comment>
Component: (1047) "C# UI" <-> (1041) "BRM Stream"
Baseline: (1048) 4 "Sprint 1 (Release 1.0)"
You can also expose the uuid's with the -u y flags.
D:\rtcinstalls\RTC-Client-Win-3.0.1.5\jazz\scmtools\eclipse>scm -u y status
Workspace: (1057:_txrFoJsgEeKAmaqeh8_gLw) "JCBRM" <-> (1041:_vmGHEEWhEeKP7ZphD5>
Component: (1043:_sh2S8EWhEeKP7ZphD52zrg) "Banking Logic" <-> (1041:_vmGHEEWh>
Baseline: (1044:_vYX0IkWhEeKP7ZphD52zrg) 4 "Sprint 1 (Release 1.0)"
Outgoing:
Change sets:
(1069:_7fBOwbgREeK2FbcQ0_goVA) *--@ "my new comment"
Component: (1045:_soLkcEWhEeKP7ZphD52zrg) "Build" <-> (1041:_vmGHEEWhEeKP7Zph>
Baseline: (1046:_u9YhQkWhEeKP7ZphD52zrg) 2 "Week 1 (Sprint 1, Release 1.0)"
Outgoing:
Change sets:
Comments
Brian Gottfried
commented May 23 '13, 11:29 a.m.
So, the documentation for SCM states that the deliver command requires a changeset..., with the following description: That was what sparked the question for me. So the change set name and change set comment are different; not sure how you even view the change set name in the command line though, as it doesn't seem to be present in your example. Documentation is a litttle unclear on this point. I checked the documentation for 4.0 and it looks like it has been fixed as it doesn't mention the change set name as a valid way to specify a change set. The scm help command also doesn't mention change set names. So at least starting in 4.0 the doc error has been fixed.
|
Hi Brian, there isn't a way to dictate the alias of an object. Those will be unique in different scm sessions.
Comments
Brian Gottfried
commented May 23 '13, 10:45 a.m.
Ah, this is a clear case of my not reading the documentation closely enough. I was confusing aliases with UUIDs (I think...I thought that UUIDs were the four-digit numbers assigned to obects, but upon reading more closely, it looks like those are the aliases. Is that correct?)
|
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.