How could I accept change sets only in scm command line?
![](http://jazz.net/_images/myphoto/c4536ae48ad3618a6be1786b884ee21c.jpg)
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!
Comments
Di Tang
Jul 04 '13, 9:19 a.m.Hi , Abraham and Tim, thank you for your reply, I really appreciate for that.
Tim Mok
JAZZ DEVELOPER Jul 04 '13, 9:24 a.m.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.
Di Tang
Jul 04 '13, 10:20 a.m.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.