如果我不知道修订版,如何恢复已删除的分支?
How I can restore deleted branch if I don't know revision?
我找到了这样的命令
svn cp svn://myrepo.com/svn/branches/2.0.5@4593 \
svn://myrepo.com/svn/branches/2.0.5_restored
其中 4593 是修订号。
但我不知道分支删除前的修订号。
引自the manual:
A good strategy is to run svn log --verbose in a directory that used to contain
your deleted item. The --verbose (-v) option shows a list of all changed
items in each revision; all you need to do is find the revision in
which you deleted the file or directory.
例如:
svn log --verbose svn://myrepo.com/svn/branches | less
我找到了这样的命令
svn cp svn://myrepo.com/svn/branches/2.0.5@4593 \ svn://myrepo.com/svn/branches/2.0.5_restored
其中 4593 是修订号。
但我不知道分支删除前的修订号。
引自the manual:
A good strategy is to run svn log --verbose in a directory that used to contain your deleted item. The --verbose (-v) option shows a list of all changed items in each revision; all you need to do is find the revision in which you deleted the file or directory.
例如:
svn log --verbose svn://myrepo.com/svn/branches | less