Can bzr remember ftp-passwords?
Martin Pool
mbp at sourcefrog.net
Tue Apr 10 04:32:57 BST 2007
On 4/7/07, Chris Niekel <chris at niekel.net> wrote:
> On Thu, Apr 05, 2007 at 06:02:45AM +1000, Martin Pool wrote:
> > I don't think there is a way to do it at present. There is Python
> > support for a netrc file, so we could use that to get it pretty
> > easily, I would think.
>
> It was indeed very easy. The hardest part was figuring out how to use bzr,
> because I'm not used to it yet. Here's my patch, hopefully someone can
> integrate it.
https://bugs.launchpad.net/bzr/+bug/103029
Thanks Chris,
Could you please try to write a test for it too to make sure it
doesn't regress? In tests that subclass TestCaseInTempDir we set
$HOME to a temporary directory. We also have the capability to run up
an ftp server in testing, which is done in the code at the bottom of
transport/ftp.py. I think you'll need to add a new
blackbox/test_ftp.py, create a netrc file, run the server, then try to
connect.
--
Martin
More information about the bazaar
mailing list