[py-dev] py.path.svn* username and password support

Guido Wesdorp johnny at johnnydebris.net
Thu Feb 7 12:41:18 CET 2008


Hi!

Someone asked me if I want to implement support for passing a username 
and password to the py.path.svn* functionality, allowing the application 
to provide a username and pw both for svnurls and svnwcs. I've 
investigated SVN and the code a bit, and it looks like this can be done 
in a relatively nice way:

* svn seems to support command-line arguments for username and password, 
and also for telling it to not store auth information - with these 
arguments we can make sure the username/pw we provide are used, and not 
stored on the client

* there's a switch --non-interactive which we can then enable to make 
very sure applications don't hang on asking username/password or things 
like that (currently that can be a problem when using svnwc or svnurl in 
scripts)

I guess this would mean that for all operations that hit the server, the 
username and password arguments should be added. Perhaps it would be 
nice to have to provide it only on instantiation or something, although 
I fear that that will be harder to implement and use correctly in the 
situation of nested working copies (externals), etc.

I hope you guys like the idea of having this in the py lib, it sounds 
like a useful addition to me... If no-one minds, I'll start implementing 
in a couple of days, I'd like to have it done (and tested well, 
obviously) before the release, if possible...

Please let me know what you think.

Cheers,

Guido



More information about the Pytest-dev mailing list