Comment 11 for bug 609187

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 609187] Re: users are not warned when branching ubuntu:foo (or lp:ubuntu/foo) and the package import of foo is out of date

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 5/20/2011 6:26 PM, Jelmer Vernooij wrote:
> I've pushed a hackish implementation of a 'bzr check-udd-status' command
> to lp:~jelmer/bzr-builddeb/check-udd-status.
>
> E.g.:
>
> gwenhwyvar:~% bzr check-udd-status gnumeric
> UDD branch is out of date (1.9.9-1ubuntu1 < 1.10.14-1ubuntu2)
>
> It's pretty slow to do this using the API though:
> BZR_PLUGINS_AT=builddeb@`pwd` BZR_PDB=1 bzr check-udd-status gnumeric 0.47s user 0.09s system 5% cpu 9.805 total
>
> This would make fetching a UDD branch quite a bit slower. We can
> presumably avoid opening the actual branch like this command does, but
> that would still mean something like an extra 5 second overhead for
> fetching a branch.
>

Getting the branch tip over http might be a fair amount faster than
doing so over bzr+ssh if you aren't going to fetch the branch. (Since
you avoid the ssh handshake.)

I don't know where the slow part of your code is, though. It certainly
could be bits like "Launchpad requires me to download all of the history
for a package to determine the most recent version". Etc.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3X1WIACgkQJdeBCYSNAAMHzgCfSHigu7Nk65n7wRiDibEDd0iU
pyAAn284nBeyY58h7Fu3loIaKpL8mkZ1
=aNdb
-----END PGP SIGNATURE-----