在Subversion我能比我的登录名以外的用户? [英] In Subversion can I be a user other than my login name?

查看:118
本文介绍了在Subversion我能比我的登录名以外的用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何获得颠覆选项可以更改我的出现改变了名字。

I'd like to know how to get Subversion to change the name that my changes appear under.

我刚开始使用颠覆。我目前使用它的版本控制code上的XP的笔记本电脑,我一直在记录下我的妻子的名字。我想颠覆DB展现在我名下的变化。

I'm just starting to use Subversion. I'm currently using it to version control code on an XP laptop where I'm always logged in under my wife's name. I'd like the subversion DB to show the changes under my name.

后来我就复制数据库所以它是整个房子访问。我的妻子使用办公室的电脑,她则始终记录下我的名字。我可能会设置它,这样它会自动修改的文档下她的名字pferably检查... $ P $。

Later on I'll replicate the DB so it is accessible to the whole house. My wife uses the office computer where she is always logged in under my name. I'll probably set it up so that it automatically checks in modified documents... preferably under her name.

最后,我可能会使用它从一台Linux机器下另一个用户名。

Eventually I'll probably be using it from a linux machine under another username.

有没有一些方法来修改用户的环境改变了Subversion打电话给你的用户名?我期望像设置 SVN_USERNAME ='马克'然而,这将覆盖它通常会被命名。

Is there some way to modify the user environment to change the user name that Subversion calls you? I'd expect something like setting SVN_USERNAME='Mark' which would override however it usually gets the name.

更新:它看起来像 - 迈克尔称不工作,改变由标志>SVN STAT,即使是本地文件:存储库。此外,它是粘性的,所以你并不需要指定它的下一个命令。我甚至重新启动,它仍然使用了 - 从我的previous启动用户名

Update: It looks like the --username flag that Michael referred to does work to change the name reported by "svn stat", even for local file: repositories. In addition, it is sticky so you don't need to specify it for the next command. I even rebooted and it still used the "--username" value from my previous boot.

推荐答案

最颠覆的命令采取 - 用户名选项来指定要使用到存储库的用户名。颠覆记得在每个工作拷贝,这意味着,除其他事项外上次使用的存储库的用户名和密码,如果你使用 svn签--username为myuser 你永远需要指定再次名。

Most Subversion commands take the --username option to specify the username you want to use to the repository. Subversion remembers the last repository username and password used in each working copy, which means, among other things, that if you use svn checkout --username myuser you never need to specify the username again.

修改:<一href=\"http://stackoverflow.com/questions/405690/in-subversion-can-i-be-a-user-other-than-my-login-name#405699\">As卡米尔说Kisiel的,当Subversion直接访问存储库关闭文件系统,它使用的文​​件系统权限来访问存储库。 (当你connect通过SSH隧道,SVN使用上的服务器的,由您的SSH登录所以 svn签来决定。)--username 可能不适合你的版本库工作。

EDIT: As Kamil Kisiel says, when Subversion is accessing the repository directly off the file system, it uses your file system permissions to access the repository. (When you connect via SSH tunneling, SVN uses your FS permissions on the server, as determined by your SSH login.) So svn checkout --username may not work for your repository.

这篇关于在Subversion我能比我的登录名以外的用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆