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

Re: [PATCH] optionally use $SVN_USERNAME as login

From: <kfogel_at_collab.net>
Date: 2005-07-22 17:06:54 CEST

Branko Čibej <brane@xbc.nu> writes:
> bd@bc-bd.org wrote:
> >[please CC me as I am not on the list]
> >
> >Abstract
> >
> > Sometimes users share a working copy. It would be nice to not have to
> > type --username all the time, or re-enter the username at the prompt.
> >
> >Proposal
> >
> > I wrote a small patch (attached) to set a default login using an
> > environment variable called SVN_USERNAME. It will be overridden by a
> > passed --username option:
> Bah. This isn't worth the bother of making a patch (and maintaining
> the code indefinitely). Instead, put this into your ~/.profile:
> alias svn="/usr/bin/svn --username=`id -un`"

I'm not sure I agree. People know about setting environment
variables, plus CVS has $CVS_USER. Aliasing 'svn' to a complex
command involving backticks is much less intuitive. And, as Ben
pointed out, it won't work for commands that don't accept

I haven't reviewed the patch, but I was planning to (if no one beat me
to it), and assuming it's good apply it. Would you, or anyone else,
have objections to this?

By the way, do we want "SVN_USERNAME", or "SVN_USER" for consistency
with CVS? I think the former, because it matches our --username
option and is (to me) more intuitive anyway. I don't mind the slight
inconsistency with CVS. I think supporting both would only confuse
people, so we should pick one or the other.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jul 22 18:02:59 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.