Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How could I accept change sets only in scm command line?

Hello everyone! 

As the summary, my question is how counld I accept change sets only(no baseline) in scm command line?

Details(background and the reason I ask that question):
1. I have write a script within scm command line to load code to a sandbox for building it. It also means I won't do any check in in and deliver.
2. Building process will generate many middle files, but I need to keep them for saving time in next time I build.
3. I use "scm status -n" to check the new In comming, because there isn't any local change except middle files.
4. If the incomming only include changeset, that would be fine.
5. Sometimes incomming may include baseline, but if I accept the baseline, the sandbox will refresh the local file changed. The reason I said that is after I accept a baseline, I run "scm status -n" then I will see many unresolves, and it takes me much move time, which I really don't want to.

Could anyone please give me some suggestions, I would be very grateful for that!

0 votes

Comments

 Hi , Abraham and Tim, thank you for your reply, I really appreciate for that.


To Abraham:
I have read the link you posted and it told me "A space-separated list of one or more change sets to accept. Specify change sets by name, alias, or UUID. If omitted, all incoming change sets for the workspace are accepted."

Then I had do some test in my RTC server which version is 3.0.1.3. If I omitted name, alias, or UUID with "scm accept", it will accept all incoming(include baseline) and refresh my sandbox, but If I use "scm accept -c", I need to specify name, alias, or UUID of changesets manually .

Do I use it in wrong way? or this method might not work well in RTC3.0.1.3?

To Tim:
As I said before, if I use scm accept -c, I need to spicify name, alias, or UUID of changesets manually, rigth? I am using a script to do scm load, accept, so it's a little complicated to find out all changesets(include those under a baseline) to accept.

And there is a further question, why rtc refresh my sandbox after I accept a baseline? If I could accept baseline without any local filesystem refresh, my problem would be resolved.

You did not mention that you tried scm accept -c but that is the method of specifying change sets to accept.

For the sandbox refresh, I don't know what the -n flag is on your status command. Did you mean -N? That will avoid the local refresh.

Hi Tim,

I might not explain clear enough, I know "scm status" will refresh sandbox, and "scm status -n" will not(I remember it is not -N but -n, I will do some test later), but if the incoming includes baseline, I run "scm status -n" after "scm accept"(without -c <changeset>) will find out all the local changed(it means scm accept baseline cause the sandbox refresh) and it's take much more time than only accept change set, which is the core of my problem.

So, I think there are two solutions:
1. Only accept change set, but I need to accept all change set automatically. For now, I don't know how.
2. Accept all things(include baseline) but don't refresh sandbox, but I am also not sure if there is any argument is able to do that.



2 answers

Permanent link
The only method i am aware of to accept change sets is documented in the following article.
http://pic.dhe.ibm.com/infocenter/rtc/v1r0m1/index.jsp?topic=%2Fcom.ibm.team.scm.doc%2Ftopics%2Fr_scm_cli_accept.html

0 votes


Permanent link
scm help accept shows that you can specify change sets with the -c flag. Have you tried this?

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 1,204
× 149
× 84
× 19

Question asked: Jul 03 '13, 3:47 a.m.

Question was seen: 7,091 times

Last updated: Jul 04 '13, 10:20 a.m.

Confirmation Cancel Confirm