今天svn更新的時候,刪了一個目錄,出現了這個問題。
在網上查,說是:
svn revert file
但是這個命令只能解決一個文件的local edit問題。我這是目錄出錯。看了一下svn的help:
revert: Restore pristine working copy file (undo most local
edits).
usage: revert PATH...
Note: this subcommand
does not require network access, and resolves
any conflicted states.
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
--no-auth-cache
: do not cache authentication tokens
--non-interactive
: do no
interactive prompting
--trust-server-cert
: accept SSL server
certificates from unknown
certificate
authorities without prompting (but only
with
'--non-interactive')
--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
所以加上-R參數。
svn revert dir -R
成功恢復了。