It's all about the answers!

Ask a question

SCM command line very slow


Tom Frauenhofer (1.3k58435) | asked Sep 15 '09, 7:06 p.m.
Hi

Using RTC 2.0 client on a fast Vista box with a fast network connection
to my RTC server.

I need to issue an "scm property set" command on each of about 65000
files in my workspace. Thankfully, I just need to do this once !

I've used scm login to save my credentials so no password prompting is
occurring.

Problem: Each scm command is taking around 10-15 seconds. A little math
tells me that it is going to take a very long time to process all my files.

Does scm have a way to accept subcommands from a file so that the
Java/Eclipse/Login overhead is incurred once, rather than on each
subcommand ?

Any help appreciated

Cheers
Dave

3 answers



permanent link
Tim Mok (6.6k38) | answered Sep 16 '09, 8:38 a.m.
JAZZ DEVELOPER
Unfortunately, the slow execution of each scm command is the way it is in 2.0. Each execution has to do the same overhead so it will be slow. In 2.0.0.1, there is an experimental daemon that will handle scm commands. This will speed up execution after the initial daemon start.

I wish I could help with a better way of constructing a command line request for your current situation but I'm not too familiar with using it.

permanent link
Andrew Hoo (1.0k1) | answered Sep 16 '09, 10:34 a.m.
JAZZ DEVELOPER
I believe "property set" takes multiple files, and if your shell does file
globbing expansion for you then it might make things easier as those files
will be changed in on 'run' of scm.



On Tue, 15 Sep 2009 19:06:14 -0400, David Ward <davidward>
wrote:

Hi

Using RTC 2.0 client on a fast Vista box with a fast network connection
to my RTC server.

I need to issue an "scm property set" command on each of about 65000
files in my workspace. Thankfully, I just need to do this once !

I've used scm login to save my credentials so no password prompting is
occurring.

Problem: Each scm command is taking around 10-15 seconds. A little math
tells me that it is going to take a very long time to process all my
files.

Does scm have a way to accept subcommands from a file so that the
Java/Eclipse/Login overhead is incurred once, rather than on each
subcommand ?

Any help appreciated

Cheers
Dave



--

permanent link
Tom Frauenhofer (1.3k58435) | answered Sep 17 '09, 10:51 a.m.
Yes the SCM property set command does accept multiple files.

But that doesn't help much in my scenario where, in general, each file
has its its own unique mime and line-endings .... its the uniqueness of
those setting that drives the need to script the process.







On 9/16/2009 10:34 AM, Andrew Hoo wrote:
I believe "property set" takes multiple files, and if your shell does
file globbing expansion for you then it might make things easier as
those files will be changed in on 'run' of scm.



On Tue, 15 Sep 2009 19:06:14 -0400, David Ward <davidward@us.ibm.com
wrote:

Hi

Using RTC 2.0 client on a fast Vista box with a fast network
connection to my RTC server.

I need to issue an "scm property set" command on each of about 65000
files in my workspace. Thankfully, I just need to do this once !

I've used scm login to save my credentials so no password prompting is
occurring.

Problem: Each scm command is taking around 10-15 seconds. A little
math tells me that it is going to take a very long time to process all
my files.

Does scm have a way to accept subcommands from a file so that the
Java/Eclipse/Login overhead is incurred once, rather than on each
subcommand ?

Any help appreciated

Cheers
Dave


Your answer


Register or 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.