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

Re: svn --recursive and externals

From: Stefan Sperling <stsp_at_elego.de>
Date: Thu, 17 Nov 2016 12:32:10 +0100

On Thu, Nov 17, 2016 at 07:54:04AM +0000, Lorenz wrote:
> 'svn help pg' on the other hand doen't gives not infomation about
> externals at all, and it rejects '--include-externals'.
> So no recursing into externals with 'svn propget' at all 8-(

Yes, propset/propget/proplist are a bit tricky.

For example, what would happen if --include-externals was combined with
the --revprop option? Keep in mind that SVN requires:
"Must specify the revision as a number, a date or 'HEAD' when operating
on a revision property"

So what should happen if the user asks for a revprop recursively, and there
are several repositories (with distinct revision number spaces) to query?
What if -r NUMBER was also given? What if -r HEAD was given? Should the
--include-externals and --revprop options be entirely mutually exclusive?

That's one (of possibly) many questions that need to be asked before
implementing such behaviour. It takes time to come up with a good design
that interacts well with other existing command options. Recursing into
externals is non-trivial to implement and has not been done everywhere.

In scripts, you can work around this by finding all externals with
'svn status' first, and then calling propget on each.
Received on 2016-11-17 12:32:22 CET

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.