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

Re: export file with full path

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-09-19 14:59:20 CEST

On Sep 19, 2005, at 14:02, Ilja Golshtein wrote:

>> mkdir -p `dirname /tmp/aaa/bbb/myfile1`
>> svn export svn://ahost/aproject/trunk/aaa/bbb/myfile1 /tmp/aaa/bbb/
>> myfile1

[snip]

> I have some workaround in my Perl
> script (mkdir -p is not portable enough).
>
> The reason I am asking I cannot completely
> believe better way does not exist.

I'm not aware of a better way to do it, nor do I find this way so
horrible...

On Sep 19, 2005, at 14:48, Ilja Golshtein wrote:

> Two more questions.
>
> 1. What does last "myfile1" mean? It it a part of svn export or
> something?
> 2. Reproducing suggested command I've got
> "svn: Can't move '/tmp/aaa/bbb.3.tmp' to '/tmp/aaa/bbb': Is a
> directory".
> Should I think solution works for directories only, not files?

Sorry about that; Mac OS X 10.4's insufferable Mail program inserts
spaces
where they do not belong. There should have been no space between
"/tmp/aaa/bbb/" and "myfile1". Let me try again. The two commands are:

mkdir -p `dirname /tmp/aaa/bbb/myfile1`

svn export \
svn://ahost/aproject/trunk/aaa/bbb/myfile1 \
/tmp/aaa/bbb/myfile1

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Sep 19 15:01:23 2005

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.