[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: Paul Dugas <paul_at_dugasenterprises.com>
Date: Thu, 24 Jun 2010 10:26:18 -0400

For the archives...

I ended up going the "svn stat | grep ^X" approach. It's a Perl
script but I chose not to add the dependency on the SVN bindings and
instead stick with built-in features. The recursive operation of "svn
stat" means I only needed to run it once. Worked well.

Thanks for the advice,

P

On Wed, Jun 23, 2010 at 5:35 PM, BRM <bm_witness_at_yahoo.com> wrote:
> Alternatively:
>
> 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.
>
> BRM
>
>
>
> ----- 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
>
> __
> cu
> christian unger
>
Received on 2010-06-24 16:26:58 CEST

This is an archived mail posted to the Subversion Users mailing list.