[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 13:50:54 CEST

On Sep 19, 2005, at 12:13, Ilja Golshtein wrote:

> How to export a file from repository
> preservings it's path?
> Example.
> I have two files named, say,
> svn://ahost/aproject/trunk/aaa/bbb/myfile1
> and
> svn://ahost/aproject/trunk/ddd/eee/myfile2
> I want to retrieve these two files from repo
> and get following hierarchy
> /tmp/aaa/bbb/myfile1
> /tmp/ddd/eee/myfile2
> where /tmp is existed directory
> and neither aaa nor ddd do
> not exist.
> What is the best way to do this
> really simple thing, considering the fact trunk
> contains a lot of files I am not interesting in?

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

mkdir -p `dirname /tmp/ddd/eee/myfile2`
svn export svn://ahost/aproject/trunk/ddd/eee/myfile2 /tmp/ddd/eee/

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Sep 19 13:53:48 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.