You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Tardif, Sebastien" <ST...@anacomp.com> on 2005/03/30 14:14:55 UTC

What's the best practice to update many directories but excluding some?

What's the best practice to update many directories but excluding some?

For example let say I have many scenarios so I cannot have a fix layout
that match all of them.

In one case I have this:

Java
	UI
	EJB
	Servlet	
	XML
	EclipseWorkspace

I want to update everything under Java except EclipseWorkspace.

How people do this?

Call svn update 4 times for every one (UI, EJB, Servlet, XML) ?

Use a custom shell script?

Use some "special" subversion feature?

Can we use your "trick" with other commands than "update"?

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


Re: What's the best practice to update many directories but excluding some?

Posted by Chip Turner <ct...@pattern.net>.
"Tardif, Sebastien" <ST...@anacomp.com> writes:

> Java
> 	UI
> 	EJB
> 	Servlet	
> 	XML
> 	EclipseWorkspace
>
> I want to update everything under Java except EclipseWorkspace.
>
> How people do this?

Well, that basically sounds like you should be using a branch and
aren't (even just a branch for the EclipseWorkspace dir).  But, if you
are using bash, you can do thos:

shopt -s extglob
svn up !(EclibseWorkspace)

The !(...) syntax is an extended glob that says 'match everything
EXCEPT this' and can be a more complicated expression like
!(perl|python|j2ee-*) etc.

Chip

-- 
Chip Turner                   cturner@pattern.net

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