How to compare workspaces and get the outgoing changeset content?
![]()
Lan Xia (1●1●1)
| asked Jan 29 '15, 9:12 a.m.
retagged Feb 06 '15, 2:20 p.m. by Dejan Custic (285●5)
Hi,
I need to compare workspaces and get the outgoing changeset content/patch, so that we can analyze the changeset content later. I am able to accomplish this by using scm commands.
-> compare workspaces to list change sets:
scm --non-interactive --config <configure> compare -I fwbs -f o workspace <ws1> workspace <ws2> -r <repo> -> parse above output and check each change set to get the content: scm --non-interactive --config <configure> diff changeset <id> --workspace <ws1> -r <repo>
The only issue that I have with above cmd is the performance. Each cmd takes about 20 secs to execute. Therefore, if a user has n changesets, that is, 20 * (n+1) secs, which is too slow for my web application. Is there a better way of doing it? Other scm cmd? Will RTC API help in this case? Thanks.
Thanks,
Lan
|
One answer
![]()
Hi Lan,
Have you tried "lscm" command? Please refer to https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.scm.doc/topics/c_scm_cli.html&scope=null "For improved performance, you can run the command line using lscm.bat or lscm. This lightweight command line version creates a daemon process on your machine that reduces the startup time and improves the execution time for most commands. " Comments Thanks for your suggestion, Lily. I tried lscm. It takes about the same time as scm. I'm not familiar with API. I suggest you submit a new discussion for the API usage.
lscm should be faster after the initial login, as the server has to start the TeamPlatform only once.
|