[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: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-05-23 11:49:22 CEST

On May 23, 2006, at 11:20, Michael Pickard wrote:

> I would like to adapt an existing bash script so that rather than
> committing the whole of a particular working directory it only
> commits those changes identified in the external file.
>
>
>
> For example, the external file might contain only two lines
>
> /src/com/mydomain/myclass.java
>
> /src/com/mydomain/myotherclass.java
>
>
>
> In this case my script would (loop?) through the lines committing
> each in turn
>
>
>
> e.g. svn commit –m “Passed testing” [filepath from external file]
>
>
>
> Does anyone have experience of anything like this ? Am I missing
> anything obvious ?

How about:

cat filenames.txt | xargs svn commit -m "Passed testing"

(if you wanted one commit containing all files) or

cat filenames.txt | xargs -n 1 svn commit -m "Passed testing"

(if you wanted one commit per file).

Paths containing spaces may not be handled properly by the above;
testing is advised.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 23 11:50:55 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.