You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ron Olson <ta...@gmail.com> on 2008/10/02 15:23:59 UTC

Can I just check out the directory and not the files?

Hi all-

I have a project in Subversion that I would like to add files to but I
don't want to get the files already there. Basically, the story is
this: I have a big directory in Subversion of images that I've worked
on and I'm now on a new machine, working on different stuff, and want
to add the new stuff to the repository, without having to wait while I
get all the enormous, many-hundreds-of-megabytes files that I won't
ever touch. Worse still, this new machine has very limited resources
and it simply won't handle a full checkout of the directory.

I understand the potential to want to add a file called foo.png when
there's already a foo.png in the repository, but I'd think the server
would complain if I tried to check that in.

Is this possible in Subversion?

Thanks,

Tacho

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Can I just check out the directory and not the files?

Posted by David Weintraub <qa...@gmail.com>.
Are you using Subversion 1.5? If so, take a look at the
--depth=immediates option when you do a checkout. That will allow you
to checkout just the current directories (although this will checkout
the files in the current directory too).

--
David Weintraub
qazwart@gmail.com



On Thu, Oct 2, 2008 at 11:23 AM, Ron Olson <ta...@gmail.com> wrote:
> Hi all-
>
> I have a project in Subversion that I would like to add files to but I
> don't want to get the files already there. Basically, the story is
> this: I have a big directory in Subversion of images that I've worked
> on and I'm now on a new machine, working on different stuff, and want
> to add the new stuff to the repository, without having to wait while I
> get all the enormous, many-hundreds-of-megabytes files that I won't
> ever touch. Worse still, this new machine has very limited resources
> and it simply won't handle a full checkout of the directory.
>
> I understand the potential to want to add a file called foo.png when
> there's already a foo.png in the repository, but I'd think the server
> would complain if I tried to check that in.
>
> Is this possible in Subversion?
>
> Thanks,
>
> Tacho
>
> ---------------------------------------------------------------------
> 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

Re: Can I just check out the directory and not the files?

Posted by Ron Olson <ta...@gmail.com>.
Yes, that's perfect, thanks. My printed copy of the manual I use for
reference was for 1.4, so I guess it's time to upgrade that too. :)

On Thu, Oct 2, 2008 at 10:41 AM, Konstantin Kolinko
<kn...@gmail.com> wrote:
> 2008/10/2 Ron Olson <ta...@gmail.com>:
>>
>> I have a project in Subversion that I would like to add files to but I
>> don't want to get the files already there. Basically, the story is
>> this: I have a big directory in Subversion of images that I've worked
>> on and I'm now on a new machine, working on different stuff, and want
>> to add the new stuff to the repository, without having to wait while I
>> get all the enormous, many-hundreds-of-megabytes files that I won't
>> ever touch. Worse still, this new machine has very limited resources
>> and it simply won't handle a full checkout of the directory.
>>
>> I understand the potential to want to add a file called foo.png when
>> there's already a foo.png in the repository, but I'd think the server
>> would complain if I tried to check that in.
>>
>> Is this possible in Subversion?
>>
>
> svn checkout  --depth empty
>
> See:
> http://svnbook.red-bean.com/en/1.5/svn.advanced.sparsedirs.html
> http://subversion.tigris.org/svn_1.5_releasenotes.html#sparse-checkouts
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org