Bazaar Version Control System

bzr branch downloads ~640M for 140M repo

Reported by Michał Górny on 2012-05-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Undecided
Unassigned

Bug Description

I was branching 'lp:s25rttr' bzr repository lately and (looking at the bzr output) it downloaded ~640M. However, the resulting repo takes only 140M. After asking on IRC, I was suggested to open a bug as such a large difference shouldn't happen.

The branching is done with the following command:
$ /usr/bin/bzr branch --no-tree lp:s25rttr /usr/local/portage/distfiles/bzr-src/s25rttr

I've tested it on two amd64 machines and both give similar results. The download was done without being logged in to launchpad.

After logging in, the branching takes only circa 180M in downloads.

$ bzr --version
Bazaar (bzr) 2.5.0
  Python interpreter: /usr/bin/python2.7 2.7.3
  Python standard library: /usr/lib64/python2.7
  Platform: Linux-3.4.0-rc4-pomiocik+-x86_64-Intel-R-_Pentium-R-_Dual_CPU_T2330_@_1.60GHz-with-gentoo-2.1
  bzrlib: /usr/lib64/python2.7/site-packages/bzrlib

Partial bzr.log (I don't have one for complete branching anymore):

0.160 bazaar version: 2.5.0
0.160 bzr arguments: [u'branch', u'--no-tree', u'lp:s25rttr', u'/usr/local/portage/distfiles/bzr-src/s25rttr']
0.173 looking for plugins in /tmp/portage/games-strategy/s25rttr-9999/homedir/.bazaar/plugins
0.173 looking for plugins in /usr/lib64/python2.7/site-packages/bzrlib/plugins
0.205 encoding stdout as sys.stdout encoding 'UTF-8'
[29486] 2012-05-01 22:37:55.529 WARNING: You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
1.754 creating repository in file:///usr/local/portage/distfiles/bzr-src/s25rttr/.bzr/.
1.829 Using fetch logic to copy between CHKInventoryRepository('http://bazaar.launchpad.net/~flosoft/s25rttr/trunk/.bzr/repository/')(RepositoryFormat2a()) and CHKInventoryRepository('file:///usr/local/portage/distfiles/bzr-src/s25rttr/.bzr/repository/')(RepositoryFormat2a())
1.830 fetching: <PendingAncestryResult heads:frozenset(['<email address hidden>']) repo:CHKInventoryRepository('http://bazaar.launchpad.net/~flosoft/s25rttr/trunk/.bzr/repository/')>
73.633 22 bytes left on the HTTP socket
88.711 23 bytes left on the HTTP socket
89.327 23 bytes left on the HTTP socket
90.469 23 bytes left on the HTTP socket
94.523 23 bytes left on the HTTP socket
97.611 23 bytes left on the HTTP socket

[... and that repeatedly every 3-10 secs]

Vincent Ladeuil (vila) wrote :

> The download was done without being logged in to launchpad.

Which means the http protocol is used.

> After logging in, the branching takes only circa 180M in downloads.

Here, the smart server is used.

That's the relevant fact. The "dumb" http protocol is less efficient and should not be used if you can avoid it.

Changed in bzr:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers