名称

svn resolved — 废弃的. Remove “冲突” state on working copy files or directories.

概要

svn resolved PATH...

描述

This command has been deprecated in favor of running svn resolve --accept working. See svn resolve for details.

Remove “conflicted” state on working copy files or directories. This routine does not semantically resolve conflict markers; it merely removes conflict-related artifact files and allows PATH to be committed again; that is, it tells Subversion that the conflicts have been “resolved.” See “解决冲突(合并别人的修改)”一节 for an in-depth look at resolving conflicts.

别名

改变

工作拷贝2

是否访问版本库

选项

--targets FILENAME
--depth ARG
--accept ARG
--quiet (-q)
--config-dir DIR

例子

如果你在更新时得到冲突,你的工作拷贝会产生三个新的文件:

$ svn update
C  foo.c
Updated to revision 31.
$ ls
foo.c
foo.c.mine
foo.c.r30
foo.c.r31

当你解决了foo.c的冲突,并且准备提交,运行svn resolved让你的工作拷贝知道你已经完成了所有事情。

警告

可以仅仅删除冲突的文件并且提交,但是svn resolved除了删除冲突文件,还修正了一些记录在工作拷贝管理区域的记录数据,所以我们推荐你使用这个命令。