Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use "svn export" command to get a single file from the repository?

Tags:

windows

svn

How can I use the svn export command to get a single file from the repository?

I've tried this:

svn export e:\repositories\process\test.txt c:\ 

But I get this error:

svn: e:\repositories\process is not a working copy

like image 922
Delta Avatar asked Sep 02 '10 21:09

Delta


People also ask

What does svn export command do?

Description. The first form exports a clean directory tree from the repository specified by URL —at revision REV if it is given; otherwise, at HEAD , into PATH . If PATH is omitted, the last component of the URL is used for the local directory name.

How do I export a project from svn repository?

In the main menu, select VCS | Browse VCS Repository | Browse Subversion Repository to open the SVN Repositories tool window. Right-click a directory you want to export and choose Export from the context menu. In the Select Path dialog that opens, specify the destination directory and click OK.

How does svn export work?

svn export simply extracts all the files from a revision and does not allow revision control on it. It also does not litter each directory with . svn directories. svn checkout allows you to use version control in the directory made, e.g. your standard commands such as svn update and svn commit .


2 Answers

Guessing from your directory name, you are trying to access the repository on the local filesystem. You still need to use URL syntax to access it:

svn export file:///e:/repositories/process/test.txt c:\test.txt 
like image 104
jason.rickman Avatar answered Oct 06 '22 01:10

jason.rickman


You don't have to do this locally either. You can do it through a remote repository, for example:

svn export http://<repo>/process/test.txt /path/to/code/ 
like image 21
Robert Duchnik Avatar answered Oct 06 '22 00:10

Robert Duchnik