Search code examples
bazaar

Can bazaar remember the password using protocol https+webdav?


For any push/pull operation on a https+webdav Bazaar repository, bzr asks for my password. Can bazaar remember the password using https+webdav without putting it in the repo URL (similarly to git)?


Solution

  • authentication.conf (see also the developer documentation) allows you to configure a password for a particular host.

    authentication.conf looks like this:

    [webdav.foo.fr]
    scheme=https # https even if the repo URL is https+webdav
    host=webdav.foo.fr
    user=monperrus
    password=sdfozaekjh
    

    The password may also be specified in netrc:

    [webdav.foo.fr]
    scheme=https
    host=webdav.foo.fr
    user=monperrus
    password_encoding=netrc