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

Re: Pulling down (checking out or exporting) a single file from a rep ository?

From: Peter Valdemar Mørch <nospam_at_morch.com>
Date: 2005-01-17 23:54:37 CET

jim.mochel@ascentialsoftware.com wrote:
> But to do that I need to pull down single files
> from an entire repository.
>
> Is there anyway to do this from the command line or C libraries ?

You can "export" a single file with:
svn cat http://server/repos/path/file.ext > file.ext
that will get you file.ext only.

But you cannot use this to make modifications to file.ext and then
commit your changes back to the repository. For that you need a working
copy, and the finest granularity for that is a directory - you'll need
to check out the entire directory as in:

svn cat http://server/repos/path/
vi path/file.ext
svn ci -m "Changed foo to bar" file.ext

As a workaround, you could of course organize your repository so there
is one file pr. directory...

Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 17 23:56:59 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.