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

Re: Is it possible to do a "partial" or a filtered checkout

From: Carsten Koch <Carsten.Koch_at_icem.com>
Date: 2005-07-11 17:10:54 CEST

Philippe Legay wrote:
> Hello,
>
> In a folder I have :
> - source code : for instance C code
> - source code : for instance Java code (with include code as javadoc comment)
> - documentation.
>
> I want to build a Apache server, with only the documentation :
>
> Is it possible to do SVN CheckOut only *.doc ? (For a folder and sub folder)
> Is it possible to do SVN CheckOut only *.java, because on these files I
> will aply javadoc to construct the
> documention.
>
> This is for avoidong to extract all files of the projects, becauses only
> 10 % are usefull for the documentation.

Subversion does not support checkout of individual files.
The smallest unit you can currently check out is a directory
with all its files (non-recursively without subdirectories if
you specify the -N option).

I believe it would be easy to implement a -O (--omit-files)
option in addition to the -N (--non-recursive) option which
would check out a drirectory *without* its files and subdirectories.
I have suggested that on this mailing list (see the attached mail)
but I have not received any response yet.

So, currently your only choice is to check out everything and
manually remove all the files you do not currently need.

Carsten.

attached mail follows:


Hi,

as explained here
   http://subversion.tigris.org/servlets/ReadMsg?listName=users&msgNo=34267
and here
   http://subversion.tigris.org/servlets/ReadMsg?list=users&msgNo=34293
many users in my organization would like to check out only partially
populated directory trees.
Of course it makes no sense to check out files without the proper
directory environment, which is also needed as a home for the .svn
directory.
However, a nice solution could be a -O flag.
Just like the -N flag omits all subdirectories, the -O flag would
omit all files (just check out a "skeleton" directory). Individual
files could then be filled in using svn update.

Example:
I want to work on
     http://host/repository/project/trunk
currently, all I need is
     http://host/repository/project/trunk/Makefile
and
     http://host/repository/project/trunk/dira/prog.cpp

for reasons such as download performance and directory clarity,
I do not want to check out all the other files in
http://host/repository/project/trunk and in
http://host/repository/project/trunk/dira.
With the new -O flag, I could do the following:
    svn checkout -O http://host/repository/project/trunk
    cd trunk
    svn update Makefile
    svn update -O dira
    cd dira
    svn update prog.cpp

Carsten.

---------------------------------------------------------------------
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 Mon Jul 11 17:13:29 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.