Verbose transports?
John Arbash Meinel
john at arbash-meinel.com
Sat Sep 23 14:49:40 BST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Matthieu Moy wrote:
> Hi,
>
> I'm using bzr in an environment where the network connection changes
> like the weather. In practice, each time I use "ssh" or "rsync", I'm
> using it with -v or often -vvv. At least, if nothing happens, I can
> see if I could at least connect to my server, and if something is
> actually happening.
>
> With bzr, currently, I don't have such ability. I'd appreciate an
> option like --debug-transport or --verbose-transport, doing the
> equivalent of "ssh -v", with potentially several debug levels.
>
The transport API makes it fairly easy to create a decorator transport.
So you can already do something like "readonly+sftp:///". We also have a
few testing decorators, like 'vfat+' and 'fakenfs+'.
It would be fairly straightforward to write one that would log
everything. As it stands it wouldn't necessarily log connections, since
that happens underneath the transport api, but you certainly could log
what files it was requesting, etc.
Going deeper would be trickier.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFFTtzJdeBCYSNAAMRAqzcAKCx2SfA8tIkhCQsUUSHJdDFFpxRHACgi9kg
aXJIGQgFAuqXdHXtFuKFWVk=
=0MSR
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list