You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Stelian Pop <st...@popies.net> on 2005/02/02 14:02:38 UTC
svn diff very slow with 1.0 server and 1.1 client
Hi,
I'm playing currently with svn and I noticed that 'svn diff -r X:Y <url>'
is very slow when using a 1.0 svn server with a 1.1 client.
Looking at the network traces, it shows that when invoking 'svn diff',
the *whole* revision log is sent by the server (for every revision in
the repository).
In my case, I use svn to manage the linux kernel tree, and it takes
about 10 minutes (!!!) to the server to compute and send out the entire
kernel history when all I wanted is something like the differences
between revision 26540 and 26541 of a single file...
Looking at the source, subversion/libsvn_client/ra.c shows indeed that
a different path (slow_locations()) is needed to access a 1.0 server,
and slow_locations() is implemented on top of get_log().
What I don't understand however is why the call to get_log() seems
to want *all* the logs between 'youngest' (a calculated revision)
and '1', instead of just getting the logs for the youngest revision:
622 /* Let the RA layer drive our log information handler, which will do
623 the work of finding the actual locations for our resource.
624 Notice that we always run on the youngest rev of the 3 inputs. */
625 SVN_ERR (ra_lib->get_log (ra_session, targets, youngest, 1,
626 TRUE, FALSE, log_receiver, &lrb, pool));
Could someone familiar with this code or the inner workings of svn
comment on this ?
Thanks,
Stelian.
--
Stelian Pop <st...@popies.net>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svn diff very slow with 1.0 server and 1.1 client
Posted by Ben Collins-Sussman <su...@collab.net>.
On Feb 2, 2005, at 10:10 AM, Stelian Pop wrote:
>
> My only option to get done my 'svn diff' in 5 seconds instead of
> 10 minutes is to upgrade the server to 1.1. :(
>
Which you ought to anyway, since 1.0 is discontinued and unsupported
now. :-)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svn diff very slow with 1.0 server and 1.1 client
Posted by Stelian Pop <st...@popies.net>.
On Wed, Feb 02, 2005 at 09:46:59AM -0600, C. Michael Pilato wrote:
> Stelian Pop <st...@popies.net> writes:
>
> > > We need all the logs between the youngest of the three input revisions
> > > and 1 so we can determine where the path existed in the other two
> > > revisions. Just fetching the log for the youngest won't tell us
> > > anything about the location of the path in the other two revisions.
> >
> > But how does a 1.0 client resolv the situation then ? Because a
> > svn diff using a 1.0 client gets the diff in 5 seconds (compared to
> > the 10 minutes for the 1.1 client)...
>
> The 1.0 client never did this "try to find where the path was in the
> various revisions" thing. We considered that a bug, and fixed it in
> 1.1. If you see references to "diff follows renames" in CHANGES or
> elsewhere, this is what is being talked about.
Understood.
My only option to get done my 'svn diff' in 5 seconds instead of
10 minutes is to upgrade the server to 1.1. :(
Stelian.
--
Stelian Pop <st...@popies.net>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svn diff very slow with 1.0 server and 1.1 client
Posted by "C. Michael Pilato" <cm...@collab.net>.
Stelian Pop <st...@popies.net> writes:
> > We need all the logs between the youngest of the three input revisions
> > and 1 so we can determine where the path existed in the other two
> > revisions. Just fetching the log for the youngest won't tell us
> > anything about the location of the path in the other two revisions.
>
> But how does a 1.0 client resolv the situation then ? Because a
> svn diff using a 1.0 client gets the diff in 5 seconds (compared to
> the 10 minutes for the 1.1 client)...
The 1.0 client never did this "try to find where the path was in the
various revisions" thing. We considered that a bug, and fixed it in
1.1. If you see references to "diff follows renames" in CHANGES or
elsewhere, this is what is being talked about.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svn diff very slow with 1.0 server and 1.1 client
Posted by Stelian Pop <st...@popies.net>.
On Wed, Feb 02, 2005 at 08:56:58AM -0600, C. Michael Pilato wrote:
> Stelian Pop <st...@popies.net> writes:
>
> > What I don't understand however is why the call to get_log() seems
> > to want *all* the logs between 'youngest' (a calculated revision)
> > and '1', instead of just getting the logs for the youngest revision:
> >
> > 622 /* Let the RA layer drive our log information handler, which will do
> > 623 the work of finding the actual locations for our resource.
> > 624 Notice that we always run on the youngest rev of the 3 inputs. */
> > 625 SVN_ERR (ra_lib->get_log (ra_session, targets, youngest, 1,
> > 626 TRUE, FALSE, log_receiver, &lrb, pool));
> >
> > Could someone familiar with this code or the inner workings of svn
> > comment on this ?
>
> We need all the logs between the youngest of the three input revisions
> and 1 so we can determine where the path existed in the other two
> revisions. Just fetching the log for the youngest won't tell us
> anything about the location of the path in the other two revisions.
But how does a 1.0 client resolv the situation then ? Because a
svn diff using a 1.0 client gets the diff in 5 seconds (compared to
the 10 minutes for the 1.1 client)...
Stelian.
--
Stelian Pop <st...@popies.net>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svn diff very slow with 1.0 server and 1.1 client
Posted by "C. Michael Pilato" <cm...@collab.net>.
Stelian Pop <st...@popies.net> writes:
> What I don't understand however is why the call to get_log() seems
> to want *all* the logs between 'youngest' (a calculated revision)
> and '1', instead of just getting the logs for the youngest revision:
>
> 622 /* Let the RA layer drive our log information handler, which will do
> 623 the work of finding the actual locations for our resource.
> 624 Notice that we always run on the youngest rev of the 3 inputs. */
> 625 SVN_ERR (ra_lib->get_log (ra_session, targets, youngest, 1,
> 626 TRUE, FALSE, log_receiver, &lrb, pool));
>
> Could someone familiar with this code or the inner workings of svn
> comment on this ?
We need all the logs between the youngest of the three input revisions
and 1 so we can determine where the path existed in the other two
revisions. Just fetching the log for the youngest won't tell us
anything about the location of the path in the other two revisions.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: java-api documentation
Posted by su...@smartcvs.com.
Hi Giovanni,
I suggest you to take a look at http://www.tmate.org/svn/. There you can
find a powerful and clean Java library for SVN access with
documentation. It is actively developed and completely independent of
any native executable or library.
--
Tom
Giovanni Lanzi wrote:
> Hi,
> I am investigating the feasibility of writing a Bug Tracker integration
> to Subversion but in order to do that I need information about the
> Java-API used to write client programs.
> What documentation is available for the Java-API, where can I download
> the related documentation?
>
> Regards,
> Giovanni Lanzi
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: java-api documentation
Posted by Patrick Mayweg <ma...@qint.de>.
Hi Giovanni,
I have written javadoc for the javahl binding from version 1.1 and
later. You can generate that from the source or I can mail that to you.
If you have more questions, just ask me.
Patrick
Giovanni Lanzi wrote:
>Hi,
>I am investigating the feasibility of writing a Bug Tracker integration
>to Subversion but in order to do that I need information about the
>Java-API used to write client programs.
>What documentation is available for the Java-API, where can I download
>the related documentation?
>
>Regards,
>Giovanni Lanzi
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
>For additional commands, e-mail: dev-help@subversion.tigris.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: java-api documentation
Posted by Thomas Singer <th...@smartcvs.com>.
Hi Giovanni,
I suggest you to take a look at http://www.tmate.org/svn/. There you can
find a powerful and clean Java library for SVN access with
documentation. It is actively developed and completely independent of
any native executable or library.
--
Tom
Giovanni Lanzi wrote:
> Hi,
> I am investigating the feasibility of writing a Bug Tracker integration
> to Subversion but in order to do that I need information about the
> Java-API used to write client programs.
> What documentation is available for the Java-API, where can I download
> the related documentation?
>
> Regards,
> Giovanni Lanzi
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
java-api documentation
Posted by Giovanni Lanzi <gl...@datamanagement.it>.
Hi,
I am investigating the feasibility of writing a Bug Tracker integration
to Subversion but in order to do that I need information about the
Java-API used to write client programs.
What documentation is available for the Java-API, where can I download
the related documentation?
Regards,
Giovanni Lanzi
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org