2019独角兽企业重金招聘Python工程师标准>>>

svn update命令小记

今天在使用svn update命令的时候,出现了这么一个提示:

ATTENTION! Your password for authentication realm:
<http://nigel.zeng.me:80> Subversion repository
can only be stored to disk unencrypted! You are advised to configure
your system so that Subversion can store passwords encrypted, if
possible. See the documentation for details.

You can avoid future appearances of this warning by setting the value
of the 'store-plaintext-passwords' option to either 'yes' or 'no' in
'/home/nigelzeng/.subversion/servers'.

这段文字是svn提示需要做svn 认证的cache,提示你只能把密码不加密(也许是明文)保存,问你是yes or no,

其实输入yes就OK了。

单机操作的话没问题,但是在使用脚本批量操作的时候,脚本会卡在这里。(OK,你可以用expect解决,但那是特殊情况)

一般情况下如何跳过这个提示进行操作?

请教了我师兄之后得出了答案:

使用这个命令就OK: “ svn update --no-auth-cache”

--no-auth-cache:

Prevents caching of authentication information (e.g. username and password) in the Subversion administrative directories.

---------------------------------------------丑陋的分割线--------------------------------------------

那svn还有那些附加选项呢?我这里做了一下摘抄:

svn Options
While Subversion has different options for its subcommands, all options are global—that is, each option is guaranteed to mean the same thing regardless of the subcommand you use it with. For example, --verbose (-v) always means “verbose output”, regardless of the subcommand you use it with.

--auto-props
Enables auto-props, overriding the enable-auto-props directive in the config file.

--change (-c) ARG
Used as a means to refer to a specific “change” (aka a revision), this option is syntactic sugar for “-r ARG-1:ARG”.

--config-dir DIR
Instructs Subversion to read configuration information from the specified directory instead of the default location (.subversion in the user's home directory).

--diff-cmd CMD
Specifies an external program to use to show differences between files. When svn diff is invoked without this option, it uses Subversion's internal diff engine, which provides unified diffs by default. If you want to use an external diff program, use --diff-cmd. You can pass options to the diff program with the --extensions option (more on that later in this section).

--diff3-cmd CMD
Specifies an external program to use to merge files.

--dry-run
Goes through all the motions of running a command, but makes no actual changes—either on disk or in the repository.

--editor-cmd CMD
Specifies an external program to use to edit a log message or a property value. See the editor-cmd section in the section called “Config”for ways to specify a default editor.

--encoding ENC
Tells Subversion that your commit message is encoded in the charset provided. The default is your operating system's native locale, and you should specify the encoding if your commit message is in any other encoding.

--extensions (-x) ARGS
Specifies an argument or arguments that Subversion should pass to an external diff command. This option is valid only when used with the svn diff or svn merge commands, with the --diff-cmd option. If you wish to pass multiple arguments, you must enclose all of them in quotes (for example, svn diff --diff-cmd /usr/bin/diff -x "-b -E").

--file (-F) FILENAME
Uses the contents of the named file for the specified subcommand, though different subcommands do different things with this content. For example, svn commit uses the content as a commit log, whereas svn propset uses it as a property value.

--force
Forces a particular command or operation to run. There are some operations that Subversion will prevent you from doing in normal usage, but you can pass the force option to tell Subversion “I know what I'm doing as well as the possible repercussions of doing it, so let me at 'em”. This option is the programmatic equivalent of doing your own electrical work with the power on—if you don't know what you're doing, you're likely to get a nasty shock.

--force-log
Forces a suspicious parameter passed to the --message (-m) or --file (-F) options to be accepted as valid. By default, Subversion will produce an error if parameters to these options look like they might instead be targets of the subcommand. For example, if you pass a versioned file's path to the --file (-F) option, Subversion will assume you've made a mistake, that the path was instead intended as the target of the operation, and that you simply failed to provide some other—unversioned—file as the source of your log message. To assert your intent and override these types of errors, pass the --force-log option to subcommands that accept log messages.

--help (-h or -?)
If used with one or more subcommands, shows the built-in help text for each subcommand. If used alone, it displays the general client help text.

--ignore-ancestry
Tells Subversion to ignore ancestry when calculating differences (rely on path contents alone).

--ignore-externals
Tells Subversion to ignore external definitions and the external working copies managed by them.

--incremental
Prints output in a format suitable for concatenation.

--limit NUM
Show only the first NUM log messages.

--message (-m) MESSAGE
Indicates that you will specify a either a log message or a lock comment on the command line, following this option. For example:

$ svn commit -m "They don't make Sunday."
--new ARG
Uses ARG as the newer target (for use with svn diff).

--no-auth-cache
Prevents caching of authentication information (e.g. username and password) in the Subversion administrative directories.

--no-auto-props
Disables auto-props, overriding the enable-auto-props directive in the config file.

--no-diff-added
Prevents Subversion from printing differences for added files. The default behavior when you add a file is for svn diff to print the same differences that you would see if you had added the entire contents of an existing (empty) file.

--no-diff-deleted
Prevents Subversion from printing differences for deleted files. The default behavior when you remove a file is for svn diff to print the same differences that you would see if you had left the file but removed all the content.

--no-ignore
Shows files in the status listing that would normally be omitted since they match a pattern in the global-ignores configuration option or the svn:ignore property. See the section called “Config” and the section called “Ignoring Unversioned Items” for more information.

--no-unlock
Don't automatically unlock files (the default commit behavior is to unlock all files listed as part of the commit). See the section called “Locking” for more information.

--non-interactive
In the case of an authentication failure, or insufficient credentials, prevents prompting for credentials (e.g. username or password). This is useful if you're running Subversion inside of an automated script and it's more appropriate to have Subversion fail than to prompt for more information.

--non-recursive (-N)
Stops a subcommand from recursing into subdirectories. Most subcommands recurse by default, but some subcommands—usually those that have the potential to remove or undo your local modifications—do not.

--notice-ancestry
Pay attention to ancestry when calculating differences.

--old ARG
Uses ARG as the older target (for use with svn diff).

--password PASS
Indicates that you are providing your password for authentication on the command line—otherwise, if it is needed, Subversion will prompt you for it.

--quiet (-q)
Requests that the client print only essential information while performing an operation.

--recursive (-R)
Makes a subcommand recurse into subdirectories. Most subcommands recurse by default.

--relocate FROM TO [PATH...]
Used with the svn switch subcommand, changes the location of the repository that your working copy references. This is useful if the location of your repository changes and you have an existing working copy that you'd like to continue to use. See svn switch for an example.

--revision (-r) REV
Indicates that you're going to supply a revision (or range of revisions) for a particular operation. You can provide revision numbers, revision keywords or dates (in curly braces), as arguments to the revision option. If you wish to provide a range of revisions, you can provide two revisions separated by a colon. For example:

$ svn log -r 1729
$ svn log -r 1729:HEAD
$ svn log -r 1729:1744
$ svn log -r {2001-12-04}:{2002-02-17}
$ svn log -r 1729:{2002-02-17}
See the section called “Revision Keywords” for more information.

--revprop
Operates on a revision property instead of a property specific to a file or directory. This option requires that you also pass a revision with the --revision (-r) option.

--show-updates (-u)
Causes the client to display information about which files in your working copy are out-of-date. This doesn't actually update any of your files—it just shows you which files will be updated if you run svn update.

--stop-on-copy
Causes a Subversion subcommand which is traversing the history of a versioned resource to stop harvesting that historical information when a copy—that is, a location in history where that resource was copied from another location in the repository—is encountered.

--strict
Causes Subversion to use strict semantics, a notion which is rather vague unless talking about specific subcommands (namely, svn propget).

--targets FILENAME
Tells Subversion to get the list of files that you wish to operate on from the filename you provide instead of listing all the files on the command line.

--username NAME
Indicates that you are providing your username for authentication on the command line—otherwise, if it is needed, Subversion will prompt you for it.

--verbose (-v)
Requests that the client print out as much information as it can while running any subcommand. This may result in Subversion printing out additional fields, detailed information about every file, or additional information regarding its actions.

--version
Prints the client version info. This information not only includes the version number of the client, but also a listing of all repository access modules that the client can use to access a Subversion repository. With --quiet (-q) it prints only the version number in a compact form.

--xml
Prints output in XML format.

转载于:https://my.oschina.net/memorybox/blog/122263

svn update命令小记相关推荐

  1. SVN revert 命令使用手册

    revert命令顾名思义就是对修改过的东西进行回滚操作.一般有2种情况发生时需要用到回滚的操作: 1.修改过的东西没有递交(commit) 这种情况下revert会取消之前的修改 用法: svn re ...

  2. svn 服务器 维护,SVN教程(2)svn常用命令说明

    一.svn命令语法格式 svn [options] [args] #svn+子命令+选项+参数 二.svn常用子命令(括号代表可简写): checkout(co):从源码库迁出一个指定版本的项目副本到 ...

  3. SVN revert命令

    revert命令顾名思义就是对修改过的东西进行回滚操作.一般有2种情况发生时需要用到回滚的操作: 1,修改过的东西没有递交(commit) 这种情况下revert会取消之前的修改 用法:#svn re ...

  4. svn update中文报错_svn 报错 【总结】【重点】

    Failed to run the WC DB work queue associated with 错误描述 在Android Studio中点击VCS向下箭头使用SVN Update功能更新代码的 ...

  5. php svn up,php中执行svn update问题

    &1", $output);print_r($output); 希望采用php的exec执行svn update实现代码同步.可是程序没有如期执行:结果如下:求帮助 Skipped ...

  6. 转:linux svn常用命令

    原地址:http://www.rjgc.net/control/content/content.php?nid=4418   1.将文件checkout到本地目录 svn checkout path( ...

  7. 删除svn_推荐:mac上svn常用命令及好用的工具

    作者:snandy来源:https://www.cnblogs.com/snandy/p/4072857.html # Mac SVN 命令行 Mac自带了SVN命令行,如我的升级到10.10(OSX ...

  8. 「SVN」Linux下svn使用命令

    原文链接:https://blog.csdn.net/return9/article/details/89042359 Window下SVN安装以及使用 TortoiseSVN下载:https://w ...

  9. linux svn 常用命令

    2019独角兽企业重金招聘Python工程师标准>>> 1.将文件checkout到本地目录 svn checkout path(path是服务器上的目录) 例如:svn check ...

最新文章

  1. Collections 索引
  2. 让你彻底理解Synchronized
  3. Swift傻傻分不清楚系列(八)函数
  4. 包含以下字段的 struct 怎么解决_S7-300/400进阶笔记4-2:STEP7的“结构”STRUCT数据类型的用法...
  5. Unreal Engine 4添加自定义Settings到项目设置
  6. leetcode python3 简单题204. Count Primes
  7. 推理集 —— 特殊的工具
  8. lolcat :一个在 Linux 终端中输出彩虹特效的命令行工具
  9. 分析两个网页设计思路
  10. android上对cookie的读写操作,Android上对Cookie的读写操作(附Demo)
  11. jflash 下载程序
  12. linux怎么使用西部数据,「轉」Linux下西部数据C1门解决方法
  13. 卸载极速PDF后鼠标右键还有快捷方式,取消快捷方式的方法
  14. xp怎么设置计算机共享的打印机共享的打印机共享,Windows XP系统如何快速设置共享打印机?...
  15. antd4.x [antd: Switch] `value` is not a valid prop, do you mean `checked`? 解决办法
  16. 第22期《杂聊1:易破解密码列表》
  17. 初学者如何入门C语言
  18. MPU9250的详细功能
  19. 论文的关键词应该如何选取?
  20. 如何查看win10专业版是否永久激活

热门文章

  1. ELK 5.X版本遇到的坑
  2. Mac OSX Versions输入username按1下都会出现2个字符,并且不能create,解决方法
  3. 网站自动登录功能的设计[转]
  4. [游戏模版17] Win32 推箱子 迷宫
  5. ubuntu 下安装 VIM 依赖vim-common错误
  6. WebBrowser控件参数解释
  7. vue在开发环境怎么兼容ie_Vue兼容ie9的问题全面解决方案
  8. 什么是跨域,什么是同源
  9. CVE-2017-5521: Bypassing Authentication on NETGEAR Routers(Netgear认证绕过漏洞)
  10. 分辨5线单极性步进电机接头