svn中查看已删除的文件

先这样搞一下,找到文件被删除前的revision

引用

svn log –verbose|grep -5 homepage.jsp

假设revision是267,这样来查看它:

引用

svn cat http://svn-rep/web/src/main/webapp/web/jsp/homepage.jsp
@267

如果要恢复它到本地,可以这样

引用

svn cat http://svn-rep/web/src/main/webapp/web/jsp/homepage.jsp@267
> web/src/main/webapp/web/jsp/homepage.jsp

以上方法有点糙,有心人可以去搜些更自动化的办法

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.