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

Re: detect externals in script

From: BRM <bm_witness_at_yahoo.com>
Date: Wed, 23 Jun 2010 14:35:21 -0700 (PDT)


1. Run `svn status | grep ^X` to get all the entries in the working copy that are svn:externals.
2. Ignore them as you traverse across the paths.

While reading the svn:externals directly is also a good idea, you'd have to do that for every directory you enter into, since they are namespace specific.
The nice thing about `svn status| grep ^X` is that it will traverse the entire working copy and tell you about ALL svn:externals - even those inside of the svn:externals.

SVN's bindings may provide some better help in there, so definitely look at those too as there may be yet a better solution.


----- Original Message ----
> From: Christian Unger <christian.unger_at_me.com>
> To: users_at_subversion.apache.org
> Sent: Wed, June 23, 2010 5:09:09 PM
> Subject: Re: detect externals in script
> doesn't `svn pget svn:externals` suffice?

you probably want to look at
> subversion's bindings - depending on the scripting language you're
> using

On 23.06.2010, at 20:56, Paul Dugas wrote:

> I'm
> looking for a way for a script operating on a working directory to
> identify directories that were pulled in via an svn:external. The
> script is in the top-level folder of the project and is used to
> maintain
> the common file headers for the project and I'd like it to
> not recurse
> down into externals.
> Thanks in advance for suggestions,
> Paul

christian unger
Received on 2010-06-23 23:36:01 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.