[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Feature proposal: SVN_USERNAME and SVN_PASSWORD environment variables

From: Daniel Shahaf <danielsh_at_elego.de>
Date: Wed, 17 Apr 2013 22:01:40 +0300

Branko Čibej wrote on Wed, Apr 17, 2013 at 07:14:53 +0200:
> The --config-dir option is IMO problematic for this since you'd have to
> use the SVN command-line to initialize the credentials store -- the
> format is such that I'd not recommend editing the auth store manually.
>

Manually? Of course not. But I could see us whipping up a tools/
script that takes a URL, username, and password[1], and creates a foo/
dir with foo/auth/svn.simple/d41d8cd98f00b204e9800998ecf8427e, or prints
the string "d41d8cd98f00b204e9800998ecf8427e" and the
would-be-file-contents to stdout, etc.

Consider our own svn-role account. How am I supposed to cache
credentials for that account without running 'commit' once
interactively? I did that by creating a ~/.subversion/auth/ directory
by hand, we could do with a better UI.

Daniel

[1] and to anyone in the audience thinking "it should prompt for the
password rather than take it via argv": yes, of course.

> The most likely candidates are a couple new command-line flags, e.g.,
> --username-file and --password-file.
>
> -- Brane
>
> --
> Branko Čibej
> Director of Subversion | WANdisco | www.wandisco.com
>
Received on 2013-04-17 21:02:18 CEST

This is an archived mail posted to the Subversion Dev mailing list.