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

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

From: Marcelo de Moraes Serpa <celoserpa_at_gmail.com>
Date: 2007-09-30 19:31:49 CEST

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.
Received on Sun Sep 30 19:32:10 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.