[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Reading Commits From External File

From: Bob Proulx <bob_at_proulx.com>
Date: 2006-05-25 09:29:06 CEST

Wolfgang Rohdewald wrote:
> Bob Proulx wrote:
> > xargs svn commit -m "Passed testing" < filenames.txt
>
> why not
> xargs -a filenames.txt svn commit -m "Passed testing"

Good question. I use the redirection because -a does not exist on
traditional Unix systems nor on BSD systems. It is a GNU extension.
And here in this context the use of -a does not do anything that
redirection from a file does not accomplish portabily. If there was
some particular benefit then that would justify it. (e.g. I usually
use find -print0 and xargs -r0 due to the improved functionality even
though those are extensions.) If the program needed stdin then that
would justify it.

> this does not change stdin for svn

Is keeping stdin unchanged important in this context? Since it is not
used it does not matter.

I try to keep my scripts portable across systems because I use many
different systems. Therefore I prefer the redirection because there
is no reason not to use it here and it is more portable.

Bob

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 25 09:30:18 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.