On 12/17/07, firstname.lastname@example.org <email@example.com> wrote:
> Quoting "Brian W. Fitzpatrick" <firstname.lastname@example.org>:
> > While updating the reference chapter of the Subversion Book, I
> > discovered that suddenly *every* command has grown --username and
> > --password options. While some commands may now need authn for merge
> > tracking, I found it odd that *every* command did. A little rooting
> > around led me to this gem:
> > /* Options that apply to all commands. (While not every command may
> > currently require authentication or be interactive, allowing every
> > command to take these arguments allows scripts to just pass them
> > willy-nilly to every invocation of 'svn') . */
> > I will strongly resist every urge to be a poisonous person here, but
> > can someone please tell me why we should confuse millions of users
> > just to make life easier for scripts to pass things "willy-nilly" into
> > our Subversion client?
> These options were added to stop the test suite caching credentials. First of
> all this is bad practice in testing, and second this breaks running the tests
> in parallel. So to solve this we have to add --username and --password options
> to all invocations of svn.
> Since we don't control all of those invocations it was decided to add --username
> and --password to all svn commands.
> It's probably possible to implement the test framework a bit different and add
> those two options only to those command that need it.
I thought that additionally it was to help scripts (svnmerge.py as the
prime target) which redirect all output to be invisible to the user,
to prevent the client from asking for input (and thus dead-lock
waiting for user input).
For svnmerge.py, I believe the --non-interactive option wasn't an
option because it's feeding input into the client on certain types of
svnmerge.py got broken by 'svn merge' becoming interactive 'all of a
sudden' as well as 'svn cp' requiring server contact (before we
eliminated that again.
Just to add to the list of reasons why it happened. No judgement.
To unsubscribe, e-mail: email@example.com
For additional commands, e-mail: firstname.lastname@example.org
Received on Mon Dec 17 12:26:10 2007