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

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

From: Srilakshmanan, Lakshman <lakshman.srilakshmanan_at_police.vic.gov.au>
Date: 2007-10-01 03:11:53 CEST

Doesn't "svn add test" schedule all the files under test that need to be
added ??

-----Original Message-----
From: Matt Sickler [mailto:crazyfordynamite@gmail.com]
Sent: Monday, 1 October 2007 10:54 AM
To: Marcelo de Moraes Serpa
Cc: users@subversion.tigris.org
Subject: Re: Batch add/remove files to rep using the svn cli tools.

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

================================================================================================
EMAIL DISCLAIMER

This email and any attachments are confidential. They may also be subject to copyright.

If you are not an intended recipient of this email please immediately contact us by replying
to this email and then delete this email.

You must not read, use, copy, retain, forward or disclose this email or any attachment.

We do not accept any liability arising from or in connection with unauthorised use or disclosure
of the information contained in this email or any attachment.

We make reasonable efforts to protect against computer viruses but we do not accept liability
for any liability, loss or damage caused by any computer virus contained in this email.
================================================================================================

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 1 03:12:53 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.