You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Matt Blais <mb...@yummage.com> on 2003/08/11 17:03:32 UTC

Subversion enhacement Req: "--exclude" option for checkout, update, add

It would be useful to be able to exclude specific entries or patterns
from 'checkout' and 'add'.

E.g., I want to checkout a dir that contains a "./bin" subdir, but I
want to exclude  ./bin from the checkout.

Specifying a PATTERN to exclude recursively would also be useful.  E.g.,
--exclude *.jpg;*.gif

How would this affect updates?  Ideally subversion would remember what
--exclude options were used for a checkout, and automatically apply the
same exclusions to subsequent updates on the dir (i.e., exclude is
"sticky").

Also needed would be a new 'update' flag to "create all missing
entries", which would have the effect of causing subversion to "forget"
the excludes that were originally used to checkout the dir.  

I'm sure there are a few more commands that would be impacted.

--Matt



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

Re: Subversion enhacement Req: "--exclude" option for checkout, update, add

Posted by John Peacock <jp...@rowman.com>.
Jack Repenning wrote:

> 
> Yes, I can see significant value in this as well (e.g., in a bridge 
> script I maintain).

You can also view the long discussion I started last month here:

	http://www.contactor.se/~dast/svn/archive-2003-07/1969.shtml

that would neatly be solved by the ability to exclude a subtree during a checkout...

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748


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

Re: Subversion enhacement Req: "--exclude" option for checkout, update, add

Posted by Jack Repenning <jr...@collab.net>.
At 1:03 PM -0400 8/11/03, Matt Blais wrote:
>It would be useful to be able to exclude specific entries or patterns
>from 'checkout' and 'add'.

Yes, I can see significant value in this as well (e.g., in a bridge 
script I maintain).  And it's a fairly common request in the world at 
large (witness: ClearCase recently added support for this, by the 
dodge that "update" doesn't update a file if unexists ... rather a 
pain, that approach, since healing an accidental deletion requires 
special efforts ... think they landed on the wrong side of "common 
things should be simple, uncommon things should be possible" ... but 
anyway, this shows the demand).

Hmmm ... this would depend upon the support for "defined but missing" 
files we've tossed around, wouldn't it?  E.g., if you "svn up -r1 
somefile," then somefile disappears (because it didn't exist in r1), 
but you can't get it back (because there's some turmoil over finding 
it to say "give it back" about).  I think the status of that was: at 
first we thought it was the same as the existing idea of "deleted," 
but it really isn't.  Maybe this RFE has at least given us a name for 
the new state -- "Excluded".
-- 
-==-
Jack Repenning
CollabNet, Inc.
8000 Marina Boulevard, Suite 600
Brisbane, California 94005
o: 650.228.2562
c: 408.835-8090

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