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

[PATCH] optionally use $SVN_USERNAME as login

From: <bd_at_bc-bd.org>
Date: 2005-07-20 22:13:35 CEST


[please CC me as I am not on the list]


  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.


  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:

    main.c | 7 +++++++
     1 files changed, 7 insertions(+)


 env only:
  bd@hk $ SVN_USERNAME=foo subversion/clients/cmdline/svn ls \
  Authentication realm: <http://localhost:80> Subversion Repository
  Password for 'foo':

 env and option:
  bd@hk $ SVN_USERNAME=foo subversion/clients/cmdline/svn \
  --username bar ls http://localhost/svn/repos/test
  Authentication realm: <http://localhost:80> Subversion Repository
  Password for 'bar':

  bd@hk $ subversion/clients/cmdline/svn ls \
  Authentication realm: <http://localhost:80> Subversion Repository
  Password for 'bd':


  * subversion/client/cmdline/main.c: Add $SVN_USERNAME support
    Use environemt variable SVN_USERNAME as default login. It will be
    overridden by an --username option.


PGP/GPG Key at http://bc-bd.org/pgp/bd@bc-bd.org.asc

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Thu Jul 21 01:39:06 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.