You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Kaushal Shriyan <ka...@gmail.com> on 2012/07/22 07:31:37 UTC

Add Parent Directories.

Hi,

if there is new directory and subdirectory and files in these directories,
is there a way to add all at once instead of adding one by one?

+ svn add --parents
/home/exampledomian/prod_tag/release23/utils/healthChecks/iciciHealthCheck.php
svn: No versioned parent directories
read -p "Commit message: " message
+ read -p 'Commit message: ' message
Commit message: Adding Files for Portal 2308
svn commit -m "$message" "${files[@]}"
+ svn commit -m 'Adding Files for Portal 2308'
/home/exampledomian/prod_tag/release23/utils/healthChecks/iciciHealthCheck.php
svn: '/home/exampledomian/prod_tag/release23/utils/healthChecks' is not a
working copy
svn: '/home/exampledomian/prod_tag/release23/utils/healthChecks' does not
exist

Any clue?

Regards

Kaushal

Re: Add Parent Directories.

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Kaushal Shriyan wrote on Sun, Jul 22, 2012 at 11:01:37 +0530:
> Hi,
> 
> if there is new directory and subdirectory and files in these directories,
> is there a way to add all at once instead of adding one by one?
> 
> + svn add --parents
> /home/exampledomian/prod_tag/release23/utils/healthChecks/iciciHealthCheck.php
> svn: No versioned parent directories
> read -p "Commit message: " message
> + read -p 'Commit message: ' message
> Commit message: Adding Files for Portal 2308
> svn commit -m "$message" "${files[@]}"
> + svn commit -m 'Adding Files for Portal 2308'
> /home/exampledomian/prod_tag/release23/utils/healthChecks/iciciHealthCheck.php
> svn: '/home/exampledomian/prod_tag/release23/utils/healthChecks' is not a
> working copy
> svn: '/home/exampledomian/prod_tag/release23/utils/healthChecks' does not
> exist
> 
> Any clue?
> 

set -e   in your shellscript.

Also, you are probably passing the path to a repository dir or to an
exported tree, instead of the path to a working copy (or the URL to
a repository).


> Regards
> 
> Kaushal

Re: Add Parent Directories.

Posted by Ashish Kaushik <as...@sourcefuse.com>.
Hi,
Try --force with the directory name. This will do what you are looking
for. 

-- 
-------------------------------------------------------------------------------
Ashish Kaushik | Team SourceFuse
SourceFuse Technologies India (P) Ltd.
http://www.sourcefuse.com
------------------------------------------------------------------------------- 

On Sun, 2012-07-22 at 12:34 +0200, Thorsten Schöning wrote:

> Guten Tag Kaushal Shriyan,
> am Sonntag, 22. Juli 2012 um 07:31 schrieben Sie:
> 
> > if there is new directory and subdirectory and files in these directories,
> > is there a way to add all at once instead of adding one by one?
> 
> svn add should do that automatically, else try the argument --depth.
> 
> svn help add
> 
> > + svn add --parents
> > /home/exampledomian/prod_tag/release23/utils/healthChecks/iciciHealthCheck.php
> > svn: No versioned parent directories
> > read -p "Commit message: " message
> > + read -p 'Commit message: ' message
> > Commit message: Adding Files for Portal 2308
> > svn commit -m "$message" "${files[@]}"
> > + svn commit -m 'Adding Files for Portal 2308'
> > /home/exampledomian/prod_tag/release23/utils/healthChecks/iciciHealthCheck.php
> > svn: '/home/exampledomian/prod_tag/release23/utils/healthChecks' is not a
> > working copy
> > svn: '/home/exampledomian/prod_tag/release23/utils/healthChecks' does not
> > exist
> 
> Do you really want to add new files in a current working copy or
> checkout or import something somewhere or what? You don't seem to
> have a working copy, else svn add --parents should work and add the
> file. Where's your working copy on the above path?
> 
> Mit freundlichen Grüßen,
> 
> Thorsten Schöning
> 

Re: Add Parent Directories.

Posted by Thorsten Schöning <ts...@am-soft.de>.
Guten Tag Kaushal Shriyan,
am Sonntag, 22. Juli 2012 um 07:31 schrieben Sie:

> if there is new directory and subdirectory and files in these directories,
> is there a way to add all at once instead of adding one by one?

svn add should do that automatically, else try the argument --depth.

svn help add

> + svn add --parents
> /home/exampledomian/prod_tag/release23/utils/healthChecks/iciciHealthCheck.php
> svn: No versioned parent directories
> read -p "Commit message: " message
> + read -p 'Commit message: ' message
> Commit message: Adding Files for Portal 2308
> svn commit -m "$message" "${files[@]}"
> + svn commit -m 'Adding Files for Portal 2308'
> /home/exampledomian/prod_tag/release23/utils/healthChecks/iciciHealthCheck.php
> svn: '/home/exampledomian/prod_tag/release23/utils/healthChecks' is not a
> working copy
> svn: '/home/exampledomian/prod_tag/release23/utils/healthChecks' does not
> exist

Do you really want to add new files in a current working copy or
checkout or import something somewhere or what? You don't seem to
have a working copy, else svn add --parents should work and add the
file. Where's your working copy on the above path?

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail:Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon.............030-2 1001-310
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hanover HRB 207 694 - Geschäftsführer: Andreas Muchow