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

RE: Re: 'svn export' is inconsistent with 'svn checkout' for nested directories

From: Gifford, Noel <noel.gifford_at_intel.com>
Date: 2005-07-05 02:39:07 CEST

You're correct. Your explanation of the expected results is better than
mine.

The 'svn checkout http://<repository>/svn/trunk/dirA/dirA1 dirA/dirA1'
results in:

dirA
dirA/dirA1
dirA/dirA1/.svn
dirA/dirA1/<files>
dirA/dirA1/<subdirs>

whereas the 'svn export http://<repository>/svn/trunk/dirA/dirA1
dirA/dirA1'
results in:

Windows XP --- svn : Can't create directory 'dirA\dirA1': The system
cannot find the path specified
 
Linux - FC3 --- svn: Can't create directory 'dirA/dirA1': no such file
or directory

Note: Neither dirA nor dirA1 exist prior to executing the svn command.

I haven't had the opportunity to track down the issue fully yet, but
libsvn_client/checkout.c is using svn_io_make_dir_recursively().

It surprised me that 'checkout' and 'export' are using totally separate
source code. I would have expected that 'export' is just a 'checkout'
without the .svn directory being created locally.

-----Original Message-----
From: Dirk Schenkewitz [mailto:schenkewitz@docomolab-euro.com]
Sent: Monday, July 04, 2005 10:15 AM
To: Gifford, Noel
Cc: users@subversion.tigris.org
Subject: Re: 'svn export' is inconsistent with 'svn checkout' for nested
directories

Gifford, Noel wrote:
>
>
> The following works:
>
> svn checkout http://<repository>/svn/trunk/dirA/dirA1 dirA/dirA1
>
>
>
> The following doesn't work:
>
> svn export http://<repository>/svn/trunk/dirA/dirA1 dirA/dirA1
>
>
>
> For both cases, the <current directory> is empty.
>
>
>
> Expected result for 'checkout' :
>
>
>
> <current directory>
>
> dirA
>
> dirA1
>
> .svn
>
> <files>
>
> <directories>

Why this? If it works/worked properly (auto-creating parent dirs),
I would rather expect

dirA
dirA/dirA1
dirA/dirA1/.svn
dirA/dirA1/<files>
dirA/dirA1/<subdirs>

> Expected result for 'export' :
>
>
>
> <current directory>
>
> dirA
>
> dirA1
>
> <files>
>
> <directories>

Same here, or did I misunderstand what you mean?

> Actual result of 'export' using svn client 1.2.0-r14790 :

Since ./dirA does not exist, the following would expected by me.

> Windows XP --- svn : Can't create directory 'dirA\dirA1': The system
> cannot find the path specified
>
> Linux - FC3 --- svn: Can't create directory 'dirA/dirA1': no such file

> or directory

You should create 'dirA' before doing the export.

I'm astonished that it works for checkout.
You're right, that is inconsistent.

Best regards
   Dirk

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 5 02:41:21 2005

This is an archived mail posted to the Subversion Users mailing list.