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

RE: username for commit

From: Gale, David <David.Gale_at_Hypertherm.com>
Date: 2006-08-08 13:04:52 CEST

Maillinglisten wrote:
> Hi,
>
> Im looking for a way to avoid passing --username to svn commit's. My
> current problem is that I have a very small development-environment
> with only 3 developers and all have to do testing on the one-and-only
> test-server. Everybody uses one account for that (we use sudo to open
> a shell of that user) otherwise we have some permission-problems in
> our scenario.
>
> Anyway since developers are lazy :x they omit the --username and just
> use the standard-user for commiting, but we'd like to have the
> commit-messages-username to be the unix-name of that developer. I have
> checked the book/faqs but couldn't find anything like setting an
> environment-variable or something to accomplish this. Is there a way
> to set the username for f.e. commit except the commandline-switch? Is
> the start-commit-hook capable of changing the username for commits? We
> use svnserve as repository-server.

Make sure that the "common" username (the one everyone sudo's to)
doesn't have write permission to the repository, to prevent laziness.
And make sure ID caching is turned off on the client. After that,
things are easy--whenever you commit, it'll prompt you for the common
user's password; just hit enter, and it'll ask for a full
username/password combo. Much easier to remember & type than the
--username flag.

-David

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 8 13:05:12 2006

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

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