Lightweight checkouts aren't

Bug #406908 reported by Johan Walles
This bug report is a duplicate of:  Bug #407283: Cache is too greedy. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Confirmed
Undecided
Unassigned

Bug Description

I just tried this with Bazaar 1.16.1 and bzr-svn 0.6.3:

bzr init-repo --default-rich-root beagle-repo
cd beagle-repo
bzr checkout --lightweight http://svn.apache.org/repos/asf/maven/scm/tags/maven-scm-1.2 apskaft

That seems to download the full history (which takes ages).

The bazaar documentation at http://doc.bazaar-vcs.org/latest/en/user-guide/index.html#getting-a-lightweight-checkout says: "To get a history-less checkout in Bazaar, use the --lightweight option".

I expected --lightweight to make bzr *not* download any history.

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 406908] [NEW] Lightweight checkouts aren't

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

Johan Walles wrote:
> I just tried this with Bazaar 1.16.1 and bzr-svn 0.6.3:
>
> bzr init-repo --default-rich-root beagle-repo cd beagle-repo bzr
> checkout --lightweight
> http://svn.apache.org/repos/asf/maven/scm/tags/maven-scm-1.2
> apskaft
>
> That seems to download the full history (which takes ages).
>
> The bazaar documentation at
> http://doc.bazaar-vcs.org/latest/en/user-
> guide/index.html#getting-a-lightweight-checkout says: "To get a
> history- less checkout in Bazaar, use the --lightweight option".
>
> I expected --lightweight to make bzr *not* download any history.
Thanks for the bug report.

I can't reproduce this problem, these two commands do indeed create
only a checkout for me. While they are slow (139 seconds) that's
mainly due to the remote server being slow and a network trace shows
it's only retrieving the last revision.

If you don't have a cache of the "svn log -v" output of the remote
repository yet bzr-svn may be trying to retrieve that.

Can you try to disable the cache for this particular repository by
adding the following two lines to ~/.bazaar/subversion.conf:

[13f79535-47bb-0310-9956-ffa450edef68]
use-cache = False

and check if that works better?

Cheers,

Jelmer

  status incomplete

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iQIcBAEBCAAGBQJKcbJdAAoJEACAbyvXKaRXCM4P/3/sfmwOPT4cN67FkUxjKmsc
kgJMhQ04HCqoBxjvASD72dXCgwqyQ6qJy6aRFxtc77OHVcr58Rjk06QgOOgrfCLD
ige8USBFUFg6lJAgYxtJk//bWz80KwXGEo9e9K02PChR/+4Rv2eadAwrhYhDtakz
EaHG1fQ+kkVU11p3fYhyW5Ht3tvKdcAgZngopNmbALJqpP7wmoW/XCCLZ6TZU6h+
E6AsgjeYgYajboE5V7h20+jFQDRpqm/pAV+TaEJgckUBaAtOdk1wq+L+U0LW6WD+
iHx7aoIbpcNC6z1rOv0vsBrQHLLvJLeC8O2Eoz2MrwufJ8LzQ4e3pcr5CwlqaQKv
6erhZw6bONexM2XVoXwzSDc0Ej4rGrZq1xrcxi8Mcadc/WN2fLYv3wGzmzheLPZ2
Xv4aOmx10h69QpnBnRDzdKLm4z9qXD+C/qEtvM+LBW/NLKO0J5ankeXea8kM7iNu
JTJxb5R9OX4gKio6xw3zUbYmDhuL4LAv2ZhwAulbXbSS3k9j9GEl9P1kOxjnVOo3
jnTvOSvWl6xE2ZgegukRz4Ug+tQxcDs9tpLPTYrPm3mNcE4XntzGCeliT8mF8rzL
ir4xUFvQz7BsonVtiopa1X9aOd+Cr+CMEWi6NB32BMK1+dLenNQ1ONHv+x6PnwZ3
xp+VavN2Wykp6PiNIxRk
=qf82
-----END PGP SIGNATURE-----

Changed in bzr-svn:
status: New → Incomplete
Revision history for this message
Johan Walles (walles) wrote :

Adding use-cache = False to subversion.conf did the trick, the checkout now took only a minute or so compared to me giving up after several hours the last time.

Thanks for the workaround Jelmer!

Background: the reason I wanted to do a lightweight checkout was because an ordinary one seemed to take forever. I reported this bug because the lightweight checkout (which was the only workaround I could come up with by myself) seemed to take forever as well.

  Regards //Johan

Changed in bzr-svn:
status: Incomplete → Confirmed
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Marking this report as a dupe of the "greedy cache" bug report, since I don't see any other bugs here.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.