You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Leon Zandman <lz...@lode.nl> on 2005/11/10 15:34:36 UTC

Faster svn:externals detection

Hi,

On the TortoiseSVN mailing list I asked for a feature that would
explicitly show svn:externals directories when browsing through a
repository, i.e. by displaying those folders in a different colour.
Currently TSVN's Repo(sitory) Browser doesn't show externals. Only when
you look at the properties of the directory you can find out if it
contains externals.

Stefan, TSVN's primary coder, responded that he'd like such a feature
too. But he said it could only be implemented if TSVN looked at the
properties of each directory in the repository, which would heavily slow
down the browsing process.

So I think from a TSVN perspective there's no easy way to solve this.
But maybe something can be added to Subversion itself? Would it be
possible for Subversion to indicate to a client that a folder contains
externals, without requiring the extra round-trip to fetch the
properties?

Greetings,

Leon Zandman


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

Re: Faster svn:externals detection

Posted by Daniel Berlin <db...@dberlin.org>.
On Thu, 2005-11-10 at 13:06 -0500, Mark Phippard wrote:
> Daniel Berlin <db...@dberlin.org> wrote on 11/10/2005 01:00:06 PM:
> 
> > On Thu, 2005-11-10 at 16:34 +0100, Leon Zandman wrote:
> > > Hi,
> > > 
> > > On the TortoiseSVN mailing list I asked for a feature that would
> > > explicitly show svn:externals directories when browsing through a
> > > repository, i.e. by displaying those folders in a different colour.
> > > Currently TSVN's Repo(sitory) Browser doesn't show externals. Only 
> when
> > > you look at the properties of the directory you can find out if it
> > > contains externals.
> > > 
> > > Stefan, TSVN's primary coder, responded that he'd like such a feature
> > > too. But he said it could only be implemented if TSVN looked at the
> > > properties of each directory in the repository, which would heavily 
> slow
> > > down the browsing process.
> > > 
> > > So I think from a TSVN perspective there's no easy way to solve this.
> > > But maybe something can be added to Subversion itself? Would it be
> > > possible for Subversion to indicate to a client that a folder contains
> > > externals, without requiring the extra round-trip to fetch the
> > > properties?
> > 
> > The wc-propcaching branch is adding code to do just this.
> > 
> > In fact, i posted a patch this morning that caches whether this property
> > exists or not so that it's not expensive to try to get it on every
> > directory.
> 
> This is an svn ls against the repository scenario.  Doesn't your proposal 
> only speed up the WC?

Yes, but the way he described it, it sounded like it combined a display
of those directories from the wc, plus the ones that had svn:externals,
and made those with svn:externals have a different color.

If it's really trying to gang-lookup all the svn:external properties in
a repository directory (IE a url), this won't help at all.



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

Re: Faster svn:externals detection

Posted by Mark Phippard <ma...@softlanding.com>.
Daniel Berlin <db...@dberlin.org> wrote on 11/10/2005 01:00:06 PM:

> On Thu, 2005-11-10 at 16:34 +0100, Leon Zandman wrote:
> > Hi,
> > 
> > On the TortoiseSVN mailing list I asked for a feature that would
> > explicitly show svn:externals directories when browsing through a
> > repository, i.e. by displaying those folders in a different colour.
> > Currently TSVN's Repo(sitory) Browser doesn't show externals. Only 
when
> > you look at the properties of the directory you can find out if it
> > contains externals.
> > 
> > Stefan, TSVN's primary coder, responded that he'd like such a feature
> > too. But he said it could only be implemented if TSVN looked at the
> > properties of each directory in the repository, which would heavily 
slow
> > down the browsing process.
> > 
> > So I think from a TSVN perspective there's no easy way to solve this.
> > But maybe something can be added to Subversion itself? Would it be
> > possible for Subversion to indicate to a client that a folder contains
> > externals, without requiring the extra round-trip to fetch the
> > properties?
> 
> The wc-propcaching branch is adding code to do just this.
> 
> In fact, i posted a patch this morning that caches whether this property
> exists or not so that it's not expensive to try to get it on every
> directory.

This is an svn ls against the repository scenario.  Doesn't your proposal 
only speed up the WC?

I guess they are asking that the API underneath svn ls have an ability to 
communicate the svn:externals property.  I believe the lock information 
was recently added to this API, so I imagine that is partly inspiring this 
request.

Mark


_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by IBM Email Security Management Services powered by MessageLabs. 
_____________________________________________________________________________

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

Re: Faster svn:externals detection

Posted by Daniel Berlin <db...@dberlin.org>.
On Thu, 2005-11-10 at 16:34 +0100, Leon Zandman wrote:
> Hi,
> 
> On the TortoiseSVN mailing list I asked for a feature that would
> explicitly show svn:externals directories when browsing through a
> repository, i.e. by displaying those folders in a different colour.
> Currently TSVN's Repo(sitory) Browser doesn't show externals. Only when
> you look at the properties of the directory you can find out if it
> contains externals.
> 
> Stefan, TSVN's primary coder, responded that he'd like such a feature
> too. But he said it could only be implemented if TSVN looked at the
> properties of each directory in the repository, which would heavily slow
> down the browsing process.
> 
> So I think from a TSVN perspective there's no easy way to solve this.
> But maybe something can be added to Subversion itself? Would it be
> possible for Subversion to indicate to a client that a folder contains
> externals, without requiring the extra round-trip to fetch the
> properties?

The wc-propcaching branch is adding code to do just this.

In fact, i posted a patch this morning that caches whether this property
exists or not so that it's not expensive to try to get it on every
directory.



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