- 浏览: 605743 次
- 性别:
- 来自: 杭州
文章分类
最新评论
-
oldrat:
还给出了 给出“对于多条A记录是采用什么策略返回IP”的结论, ...
【转载】关于java dns cache (域名缓存时间) -
snowing0427:
特地登录来感谢一下楼主~!!!
nginx里的break和last -
夏日小草:
403禁止了。
User Agent信息大全 -
uag:
比如从请求头里的$HOST变量里获取。(针对nginx,需要加 ...
nginx替换apache中的一个跳转问题 -
thinktothings:
修改Makefile文件 在哪,怎么修改?
使用sz,rz命令来上传和下载文件
今天在使用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'.
<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.
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.
that's all.
发表评论
-
echo命令的一个疑问
2012-12-06 17:14 1395今天在做日志处理的时 ... -
由wget引起的血案
2012-07-30 15:59 3291由于刚刚配置好yum源, 所以试着装了JDK,之后又发现rp ... -
GDB简单使用
2012-05-14 11:37 2634之前早就听说GDB是个神 ... -
【转载】su和sudo命令的区别与使用技巧
2012-04-12 23:21 1558一. 使用 su 命令临时切换用户身份 1、su ... -
Linux下使用tcpdump使用
2012-03-17 01:04 5818使用命令: [root@Cent ... -
如何获得Linux常用终端程序源代码
2012-03-11 11:38 3251近几天在学习C语言,需要查看一下Linux里简单的常用终端程序 ... -
【收集】vi、vim键盘图和命令壁纸
2012-03-11 11:02 15650vi/vim 编辑器,一些命令经常记不住,收集到两张图,在不记 ... -
perl升级安装
2011-11-29 12:37 7493Linux服务器,perl版本为5.8.*, 最近在学习pe ... -
awk的内置变量
2011-10-24 15:12 201awk中有许多系统变量或内置变量。 这里分两种: -- ... -
【转】lsof命令
2011-10-24 14:02 1248lsof(list open files)是一个列出当前 ... -
seq命令
2011-10-15 14:17 1567seq命令: 用来产 ... -
sar命令
2011-10-15 13:32 2452DESCRIPTION: The sar com ... -
dig命令
2011-10-15 12:51 4876dig命令介绍: dig的全称是 (domain i ... -
【转】VIM实用技巧
2011-10-09 17:11 1206UTF-8编码 在 .profile 或着 .bas ... -
【转】PS命令中的STAT栏说明
2011-10-08 15:41 3705linux使用ps命令后,会有一栏STAT状态,如下: ... -
【转】CentOS中的vi语法高亮
2011-10-04 10:52 2588本文来自:http:/ ... -
nmap
2011-09-27 16:50 0nmap 需要 root 来运行,不然会出现下面的情况: ... -
history命令使用
2011-09-27 16:01 2846history命令介绍: Linux系统会保存用户所 ...
相关推荐
svn update 命令用于更新到某个版本。例如:svn update -r 200 test.php(将版本库中的文件 test.php 还原到版本 200) 6. 查看文件或者目录状态 svn status 命令用于查看文件或者目录的状态。例如:svn status ...
SVN常用命令集合及简单用法 SVN(Subversion)是一种版本控制系统,用于管理代码、文档、图片等文件的版本变更。下面是常用的 SVN 命令集合及简单用法: 1. 检出文件:svn checkout path(path 是服务器上的目录)...
在使用版本控制系统Subversion(简称svn)时,可能会遇到一些操作上的困扰,比如在尝试删除文件后,通过`svn update`命令更新代码时,已经删除的文件却又重新出现了。这通常是由svn的工作方式引起的,我们需要理解其...
"svn命令大全" SVN(Subversion)是一种版本控制系统,主要用于管理软件开发过程中的代码修改和更新。下面是 Linux 下 SVN 命令大全介绍: 一、checkout 命令 checkout 命令用于将文件从服务器 checkout 到本地...
### Linux下SVN常用命令详解 #### 一、SVN Checkout **命令格式:** ```shell svn checkout [URL] [本地路径] ``` **功能介绍:** 此命令用于将远程版本库中的某个目录或文件检出到本地,创建一个工作副本。 **示例...
### SVN服务用svnsync命令实现双机热备 #### 概述 在软件开发过程中,版本控制系统(Version Control System, VCS)是必不可少的工具之一。Subversion(SVN)作为一款广受欢迎的集中式版本控制系统,在企业级项目...
4. **更新(svn update)**: 更新本地工作副本与仓库中的最新版本同步,使用`svn up`命令。 5. **提交(svn commit)**: 将本地工作副本的更改推送到仓库,`svn ci -m "提交消息"`,`-m`后是提交的描述。 6. *...
在日常使用SVN的过程中,开发者可能会遇到各种各样的问题,比如在执行`svn update`命令时出现“locked”的错误提示。本文将详细介绍这一问题的原因、常见场景以及如何有效解决。 #### 错误现象 当在SVN客户端执行`...
svn update 命令用于将文件更新到某个版本。该命令的基本语法为:svn update -r <版本号> <文件名>。例如:svn update -r 200 test.php(将版本库中的文件 test.php 还原到版本 200)。 6. 查看文件或者目录状态 ...
你可以选择删除本地文件并执行`update`来获取最新版本。 5. **灰色向右箭头(本地修改)**: 说明你修改了文件但未提交。确保适时提交你的更改。 6. **蓝色向左箭头(SVN上修改)**: 提醒你更新代码后再进行修改,确保...
②【ws.run "D:\SVN自动更新脚本\svnUpdate.bat",0】,地址更改为svnUpdate.bat存放地址即可 svnUpdate.bat 中【::】后为注释 主要进行以下修改 ①D:\svn为待更新的SVN目录,就是执行update的目录,改成你需要执行...
`svn update`(或简写为`svn up`)是SVN中最常用的命令之一,用于将版本库中的更改合并到工作副本中。 - **基本用法**:`svn update [PATH]` - 如果没有指定版本号,则默认更新到`HEAD`版本。 - 否则,会同步到由...
2. **`svn update` (简写:`svn up`)**:更新本地工作副本到最新版本,格式为`svn update [PATH]`。 3. **`svn commit` (简写:`svn ci`)**:提交本地更改到仓库,格式为`svn commit -m "提交信息" [PATH]`。 4. **`...
解决windows系统下,update失败,并且cleanup后再update也失败的问题,虽然谷歌百度也能解决但是你需要花费很多时间去找到自己需要的,我这里是详细总结后的实践步骤,亲测一直可行,谢谢支持。
svn启动命令
`svn update [-r revision] path` 命令用于将工作副本更新到最新版本,或者指定版本号进行更新。例如,`svn update -r 200 test.php` 将文件“test.php”更新至版本200。 ### 6. 查看状态 (Status) `svn status ...
使用 `svn update` 命令可以将文件更新到最新版本。例如,更新当前目录下的所有文件可以使用: `svn update` 查看文件状态 使用 `svn status` 命令可以查看文件或目录的状态。例如,查看当前目录下的文件状态可以...
svn基础命令,主要整理了SVN使用终端控制的create、up、commit等