【发布时间】:2017-06-15 17:53:02
【问题描述】:
您好,我想恢复对本地存储库中具有特定文件名的文件的所有更改。
在这种情况下AssemblyInfo.vb,我使用的是TortoiseSVN cli。
我有以下目录结构
- 根
- 项目 1
- 文件1.txt
- 我的项目
- AssemblyInfo.vb
- 项目 2
- 文件2.txt
- 我的项目
- AssemblyInfo.vb
- 项目 1
现在站在Root 中,我运行命令svn.exe revert --recursive AssemblyInfo.vb,我得到的输出是:
Skipped 'AssemblyInfo.vb'
我尝试在文件名之前添加双精度和单精度 *,但没有成功,--recursive/-R 工作还是我缺少什么?
svn help revert 给出以下输出:
revert: Restore pristine working copy state (undo local changes).
usage: revert PATH...
Revert changes in the working copy at or within PATH, and remove
conflict markers as well, if any.
This subcommand does not revert already committed changes.
For information about undoing already committed changes, search
the output of 'svn help merge' for 'undo'.
Valid options:
--targets ARG : pass contents of file ARG as additional args
-R [--recursive] : descend recursively, same as --depth=infinity
--depth ARG : limit operation by depth ARG ('empty', 'files',
'immediates', or 'infinity')
-q [--quiet] : print nothing, or only summary information
--changelist [--cl] ARG : operate only on members of changelist ARG
Global options:
--username ARG : specify a username ARG
--password ARG : specify a password ARG (caution: on many operating
systems, other users will be able to see this)
--no-auth-cache : do not cache authentication tokens
--non-interactive : do no interactive prompting (default is to prompt
only if standard input is a terminal device)
--force-interactive : do interactive prompting even if standard input
is not a terminal device
--trust-server-cert : deprecated; same as
--trust-server-cert-failures=unknown-ca
--trust-server-cert-failures ARG : with --non-interactive, accept SSL server
certificates with failures; ARG is comma-separated
list of 'unknown-ca' (Unknown Authority),
'cn-mismatch' (Hostname mismatch), 'expired'
(Expired certificate), 'not-yet-valid' (Not yet
valid certificate) and 'other' (all other not
separately classified certificate errors).
--config-dir ARG : read user configuration files from directory ARG
--config-option ARG : set user configuration option in the format:
FILE:SECTION:OPTION=[VALUE]
For example:
servers:global:http-library=serf
如果我在直接包含修改后的AssemblyInfo.vb 的目录中运行svn.exe revert --recursive AssemblyInfo.vb,它会按预期工作。
【问题讨论】:
标签: windows svn tortoisesvn command-line-interface revert