bzr operations in svn working copy are much slower than svn
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Subversion Plugin |
Fix Released
|
Medium
|
Jelmer Vernooij |
Bug Description
When using a bzr-svn in an svn working copy, bzr operations (like status, diff, info, etc, etc) seem to do a bunch of work, e.g. connect the server, check repository layout, etc, whereas the same svn operations are instantaneous. This means that it's at least *possible* for bzr-svn to do some of these operations much faster, but I don't know if it's actually feasible.
The main issue is that this makes using bzr-svn in a lightweight checkout rather slow compared to svn, which is unfortunate. For example, I occasionally *must* use svn to check things out (because I need to use svn --depth magic to get disparate pieces of multi-gigabyte trees), but I'd rather actually use bzr to actually work on things.
This is of course a wishlist item, but there are some things that might be easy to fix (e.g. why does "bzr info" need to analyze the repository layout and determine changes?)
Changed in bzr-svn: | |
status: | Triaged → Fix Released |
Hi Wesley,
On Mon, 2009-01-19 at 22:29 +0000, Wesley J. Landaker wrote:
> When using a bzr-svn in an svn working copy, bzr operations (like
> status, diff, info, etc, etc) seem to do a bunch of work, e.g. connect
> the server, check repository layout, etc, whereas the same svn
> operations are instantaneous. This means that it's at least *possible*
> for bzr-svn to do some of these operations much faster, but I don't know
> if it's actually feasible.
Can you mention the explicit commands you think could be faster ? I
think there are several bugs here, and it would be nice to file them
separately.
It's very hard to get bzr-svn in svn working copies as fast as svn
because of differences between the data models of the two tools. E.g.
bzr requires file ids for all files, and generating those requires
analysing history. Subversion has no concept of branches and Bazaar
does, so bzr-svn has to determine what the branches are.
> The main issue is that this makes using bzr-svn in a lightweight
> checkout rather slow compared to svn, which is unfortunate. For example,
> I occasionally *must* use svn to check things out (because I need to use
> svn --depth magic to get disparate pieces of multi-gigabyte trees), but
> I'd rather actually use bzr to actually work on things.
This particular case is primarily a bzr bug and should be filed
separately - Bazaar always works on complete trees, never partial trees
(such as --depth 1) at the moment.
> This is of course a wishlist item, but there are some things that might
> be easy to fix (e.g. why does "bzr info" need to analyze the repository
> layout and determine changes?)
It needs to count the number of *bzr* revisions in the repository, and
that's not the same as the number of svn revisions. Finding the bzr
revisions requires analysing the repository and determining the changes,
so I don't think "bzr info" can be improved.
-- samba.org/ ~jelmer/
Jelmer Vernooij <email address hidden> - http://
Jabber: <email address hidden>