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

RE: ignoring directories in WC

From: John Niven <jniven_at_bravurasolutions.com>
Date: Fri, 15 Aug 2008 16:17:38 +1200

> -----Original Message-----
> From: DW Dennis Wheeler [mailto:dwheeler_at_ag.com]
> Sent: Friday, 15 August 2008 15:45
> To: users_at_subversion.tigris.org
> Subject: ignoring directories in WC
>
> how can I remove and ignore directories within my working copy?
>
> I can't 'svn delete' them, because other people use them I
> can't 'rm -rf' them, because they come back with an 'svn update'
>
> I can 'svn co -N ...dir[1-n]' skipping the ones I don't want
> (pardon my shorthand notation for email purposes) and that
> seems to work until I do an 'svn status -u' which generates
> an error about missing dirs, then the next 'svn update'
> sync's them up again.

You don't mention which version of SVN you're using, but 1.5 introduces
sparse checkouts - you'd use the --depth argument instead of -N - which
should address this issue.

Using your shorthand, you'd do something like:
svn co --depth=files ${parentdir}
svn co dir[1-n]

The first step would check out the parent directory and it's files, but
no sub-directories. The second step fetches sub-directories: repeat for
each sub-directory you want.

If upgrading to SVN 1.5 isn't an option, then I'm afraid I can't helps
;-)

Hope that helps
John

>
> thank for you help,
> -- Dennis
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: users-help_at_subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-15 06:18:28 CEST

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.