[reviewing MERGE] Extend -Dhpss to emit a count of HPSS calls to stderr
John Arbash Meinel
john at arbash-meinel.com
Mon Sep 29 03:26:19 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
...
> I failed for the second part but look at the result I get now
> (having fixed my toy implementation):
>
> HPSS calls: 42 (<bzrlib.smart.medium.SmartSSHClientMedium object at 0x87dcc6c>)
> Some mediums are still there:
> HPSS my calls: 0 (<bzrlib.transport.remote.RemoteSSHTransport url=bzr+ssh://vila@bazaar.launchpad.net/%7Ebzr/bzr/trunk/.bzr/>)
> HPSS my calls: 0 (<bzrlib.transport.remote.RemoteSSHTransport url=bzr+ssh://vila@bazaar.launchpad.net/%7Ebzr/bzr/trunk/.bzr/repository/indices/>)
> HPSS my calls: 42 (<bzrlib.smart.medium.SmartSSHClientMedium object at 0x87dcc6c>)
> HPSS my calls: 0 (<bzrlib.transport.remote.RemoteSSHTransport url=bzr+ssh://vila@bazaar.launchpad.net/%7Ebzr/bzr/trunk/>)
> HPSS my calls: 0 (<bzrlib.transport.remote.RemoteSSHTransport url=bzr+ssh://vila@bazaar.launchpad.net/%7Ebzr/bzr/trunk/.bzr/repository/packs/>)
> HPSS my calls: 0 (<bzrlib.transport.remote.RemoteSSHTransport url=bzr+ssh://vila@bazaar.launchpad.net/%7Ebzr/bzr/trunk/.bzr/branch/>)
> HPSS my calls: 0 (<bzrlib.transport.remote.RemoteSSHTransport url=bzr+ssh://vila@bazaar.launchpad.net/%7Ebzr/bzr/trunk/.bzr/repository/upload/>)
> HPSS my calls: 0 (<bzrlib.transport.remote.RemoteSSHTransport url=bzr+ssh://vila@bazaar.launchpad.net/%7Ebzr/bzr/trunk/.bzr/repository/>)
>
> Why does these transport objects show here at all ? I can't
> believe repr() is random...
>
> And, no, 42 is not the answer :D
>
> Vincent
Because they are an intermediate step while being .clone()d.
Further, if they are HTTPTransports, remember that for most requests
they issue plain HTTP GET, rather than always POST. If you want the
other behavior you would need to use bzr+http://.
At least, just a thought.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkjgPMsACgkQJdeBCYSNAANF6ACgtwKw8RKUscL9pFUPa5p/6ZQr
tFsAn3aaVIS2spVzD+PWy5Y9r7cgJ+Pk
=OUsM
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list