开发者

Multiple SVN users with the same login credentials on a Unix machine

Here's our usecase for small projectets that rarely require attention from multiple developers at the same time:

  • Projects are on a shared Ubuntu dev server
  • Shared office account used to access the actual dev server
  • Developers have their own SVN user credentials
  • User A) checks out the project and does a few commits
  • User B) works on the same project few days later, but his commits are pu开发者_StackOverflow社区shed to the repository with the credentials of the first committer.

How could we easily swap who the "committer" is on our dev box? Something like svn ci file --user "foo" -m "fixed stuff"? Googling for the issue gives me multiple hits which aren't exactly about what I'm trying.

Maybe I'm misusing SVN if I thought this should be possible, since from most sources I find that I'd have to run relocate commands and edit configuration files, which is not feasible.


svn commit --username foo should do


Well, the whole point of having user names in the first place is so you can distinguish between who is doing what. If user B is allowed to do checkins as use A then what's the point of having two users in the first place? So generally the right answer is "don't do that" as it really messes with auditing, the logs and traceability.

It would be better to identify why and for who the commit was being done in the log message and always have user B committing as themselves.


Simple make users on the Ubuntu machine and give every user it's own home folder where he can checkout with it its own credentials...and of course can commit as well. The working copy should be exclusive for one developer or better person.


You can also use pwauth to authenticate using Unix creds. Its a bit of setup work, but it works very well: http://matthewrupert.net/2011/02/16/subversion-authentication-using-unix-accounts/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜