简体   繁体   English

TortoiseSVN更新命令行参数

[英]TortoiseSVN Update Command Line Arguments

I've run into an interesting annoyance that I'm trying to remove. 我遇到了一个有趣的烦恼,我正试图删除。

I'm creating a batch file to automatically update TortoiseSVN repos to the correct revisions for my technicians. 我正在创建一个批处理文件,以自动将TortoiseSVN repos更新为我的技术人员的正确版本。

However, when executing svn update on the command line, SVN assumes that the current user login is the username for SVN. 但是,在命令行执行svn update时,SVN假定当前用户登录是SVN的用户名。

That's not correct on our tech's machines. 这在我们的技术机器上是不正确的。 We have a local user of "Tech" that can be accessed by everyone and this user login runs the batch file. 我们有一个“技术”的本地用户,每个人都可以访问,这个用户登录运行批处理文件。 When we do an svn update from the batch file, it'll ask for a password with the username of "Tech" which isn't on SVN. 当我们从批处理文件执行svn update ,它会要求输入用户名为“Tech”的密码,该密码不在SVN上。 Then it'll ask for a username and password input because it couldn't login with the previous credentials. 然后它会要求输入用户名和密码,因为它无法使用以前的凭据登录。

I'm trying to skip that unnecessary step, but I don't know other command line arguments (like --force --no-auth-cache ) that will help. 我试图跳过那个不必要的步骤,但我不知道其他命令行参数(如--force --no-auth-cache )会有所帮助。

Is there a way to force TortoiseSVN to ask for the username instead of assuming it is the login name? 有没有办法迫使TortoiseSVN要求用户名而不是假设它是登录名?

Update: found the options for the command line on TortoiseSVN, but don't know which to use correctly - http://svnbook.red-bean.com/en/1.7/svn.ref.svn.html 更新:在TortoiseSVN上找到命令行的选项,但不知道哪个正确使用 - http://svnbook.red-bean.com/en/1.7/svn.ref.svn.html

SVN assumes that the current user login is the username for SVN. SVN假设当前用户登录是SVN的用户名。

No, and never was so 不,从来没有这样

From svn help update svn help update

>Global options:
>  --username ARG           : specify a username ARG
>  --password ARG           : specify a password ARG

But The Right Way (tm) will be 正确的方式(tm)将是

  • Remove stored wrong credentials from %AppData%\\Subversion\\auth (most probably \\svn.simple ) (URLs are plain-text parameters inside files) %AppData%\\Subversion\\auth (最可能是\\svn.simple )中删除存储的错误凭据(URL是文件内的纯文本参数)
  • Login once to needed repository (with any command, which require authentication) with --username , --password , using correct credentials 使用--username , - --password ,使用正确的凭据登录到需要的存储库(使用任何需要身份验证的命令)
  • Remove auth. 删除身份验证。 data from update command (cached data will be used) 来自更新命令的数据(将使用缓存数据)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM