You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by DW Dennis Wheeler <dw...@ag.com> on 2008/08/15 03:44:39 UTC
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.
thank for you help,
-- Dennis
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: ignoring directories in WC
Posted by John Niven <jn...@bravurasolutions.com>.
> -----Original Message-----
> From: DW Dennis Wheeler [mailto:dwheeler@ag.com]
> Sent: Friday, 15 August 2008 15:45
> To: users@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@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: ignoring directories in WC
Posted by Vincent Lefevre <vi...@vinc17.org>.
On 2008-08-14 21:59:25 -0700, Greg Lutz wrote:
> What we use is:
>
> cd to the target directory's parent, then
>
> svn update -r 0 <target_directory>
> svn update -N
>
> I'm not entirely sure of the of the need for the second line.
Anyway the -N option is described as obsolete:
-N [--non-recursive] : obsolete; try --depth=files or --depth=immediates
--
Vincent Lefèvre <vi...@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: ignoring directories in WC
Posted by Greg Lutz <gr...@nearspace.com>.
What we use is:
cd to the target directory's parent, then
svn update -r 0 <target_directory>
svn update -N
I'm not entirely sure of the of the need for the second line.
If there are files in the target directory that are not under version
control, you may also need an "rm -rf".
This sequence generally makes the target directory not come back when a
vanilla svn update is subsequently done from one of its ancestors.
--Greg Lutz
DW Dennis Wheeler wrote:
> 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.
>
> thank for you help,
> -- Dennis
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: ignoring directories in WC
Posted by Stefan Sperling <st...@elego.de>.
On Thu, Aug 14, 2008 at 08:44:39PM -0700, DW Dennis Wheeler wrote:
> how can I remove and ignore directories within my working copy?
>
It's being worked on by summer of code student.
It's not fully implemented yet, but there is a workaround.
See the comments here:
http://subversion.tigris.org/issues/show_bug.cgi?id=2843
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org