[BUG?] bzr server hooks dont expose the real local url

John Arbash Meinel john at arbash-meinel.com
Fri Jun 1 16:55:50 BST 2007


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

Robert Collins wrote:
> This lets the bzr dbus plugin work correct when applied to 0.16. I'll
> probably do this in the dbus plugin for 0.16 users; but I think
> something like this should be done to bzr.dev for 0.17.
> 
> -Rob
> 
> === modified file 'bzrlib/smart/server.py'
> --- bzrlib/smart/server.py      2007-04-20 05:11:46 +0000
> +++ bzrlib/smart/server.py      2007-05-18 17:42:00 +0000
> @@ -66,7 +66,7 @@
>      def serve(self):
>          self._should_terminate = False
>          for hook in SmartTCPServer.hooks['server_started']:
> -            hook(self.backing_transport.base, self.get_url())
> +            hook(self.backing_transport.server.backing_transport.base,
> self.get_url())
>          self._started.set()
>          try:
>              try:
> 

+1 (though it needs tests)

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGYEGGJdeBCYSNAAMRApAXAKCSPCGxQgtBs4V3v5Wyg6Fo+Q71fwCgwssi
/zOtcn1y9PY2R/fQWQsVuu4=
=1Ydd
-----END PGP SIGNATURE-----




More information about the bazaar mailing list