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

Re: Batch add/remove files to rep using the svn cli tools.

From: Matt Sickler <crazyfordynamite_at_gmail.com>
Date: 2007-10-01 02:53:45 CEST

or some thing like "svn add file1 file2 file3" which is basically
what Tortoise did for you. It didn't use some special svn API
command, it just did a bunch of svn add's.

Alternatively you could conjure a one liner using svn st, grep, cut,
xargs and svn add to automatically add anything that isnt in the repo.

On 9/30/07, Marcelo de Moraes Serpa <celoserpa@gmail.com> wrote:
> Hello list,
>
> When I was on Windows I used TortoiseSVN's commit option to commit all the
> "transactions" done to the repository (modifications, adds and deletes) with
> one click.
>
> I'm using ubuntu linux now and while I'm quite comfortable with the CLI, I
> have not yet found a way to do this kind of commit I used to do with
> TortoiseSVN.
>
> I.e: When I run a svn status on a working copy of my project, I get the
> following output:
>
> ? test/unit/package_test.rb
> ? test/unit/order_test.rb
> ? test/unit/yearlyprices_test.rb
> ? test/unit/monthlyprice_test.rb
> ? test/functional/yearlyprices_controller_test.rb
> ? test/functional/account_controller_test.rb
> ? test/functional/packages_controller_test.rb
> ? test/functional/orders_controller_test.rb
> ? test/functional/pages_controller_test.r
> M app/controllers/users_controller.rb
> M log/development.log
> M todo.txt
> M db/schema.rb
> M db/migrate/001_create_users.rb
> M config/database.yml
> (...)
>
> The ? symbol means that this file is not in the repository. If I were using
> Tortoise I would just check the "select removed/added files" (or something
> like that) and it would then add/remove the added (files not in the rep) and
> remove the removed files for me. However, I couldn't find any svn command to
> do this batch operation yet. It is a pain to run svn add for each of those
> files.
>
> If anyone could show me a neat solution to this I would be grateful!
>
> Marcelo.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 1 02:54:17 2007

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.