{"id":160007,"date":"2019-10-14T08:43:41","date_gmt":"2019-10-14T00:43:41","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=160007"},"modified":"2019-09-27T14:45:41","modified_gmt":"2019-09-27T06:45:41","slug":"fun-svn-version","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/fun-svn-version.html","title":{"rendered":"\u73a9\u8f6cSVN-\u7248\u672c\u56de\u9000"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nApache Subversion \u901a\u5e38\u88ab\u7f29\u5199\u6210 SVN\uff0c\u662f\u4e00\u4e2a\u5f00\u653e\u6e90\u4ee3\u7801\u7684\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff0cSubversion \u5728 2000 \u5e74\u7531 CollabNet Inc \u5f00\u53d1\uff0c\u73b0\u5728\u53d1\u5c55\u6210\u4e3a Apache \u8f6f\u4ef6\u57fa\u91d1\u4f1a\u7684\u4e00\u4e2a\u9879\u76ee\uff0c\u540c\u6837\u662f\u4e00\u4e2a\u4e30\u5bcc\u7684\u5f00\u53d1\u8005\u548c\u7528\u6237\u793e\u533a\u7684\u4e00\u90e8\u5206\u3002
\nSVN\u76f8\u5bf9\u4e8e\u7684RCS\u3001CVS\uff0c\u91c7\u7528\u4e86\u5206\u652f\u7ba1\u7406\u7cfb\u7edf\uff0c\u5b83\u7684\u8bbe\u8ba1\u76ee\u6807\u5c31\u662f\u53d6\u4ee3CVS\u3002\u4e92\u8054\u7f51\u4e0a\u514d\u8d39\u7684\u7248\u672c\u63a7\u5236\u670d\u52a1\u591a\u57fa\u4e8eSubversion\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"
\n\u5f53\u6211\u4eec\u60f3\u653e\u5f03\u5bf9\u6587\u4ef6\u7684\u4fee\u6539\uff0c\u53ef\u4ee5\u4f7f\u7528 SVN revert \u547d\u4ee4\u3002<\/p>\n

svn revert \u64cd\u4f5c\u5c06\u64a4\u9500\u4efb\u4f55\u6587\u4ef6\u6216\u76ee\u5f55\u91cc\u7684\u5c40\u90e8\u66f4\u6539\u3002<\/p>\n

\u6211\u4eec\u5bf9\u6587\u4ef6 readme \u8fdb\u884c\u4fee\u6539,\u67e5\u770b\u6587\u4ef6\u72b6\u6001\u3002<\/p>\n

root@runoob:~\/svn\/runoob01\/trunk# svn status\r\nM       readme<\/pre>\n

\u8fd9\u65f6\u6211\u4eec\u53d1\u73b0\u4fee\u6539\u9519\u8bef\uff0c\u8981\u64a4\u9500\u4fee\u6539\uff0c\u901a\u8fc7 svn revert \u6587\u4ef6 readme \u56de\u5f52\u5230\u672a\u4fee\u6539\u72b6\u6001\u3002<\/p>\n

root@runoob:~\/svn\/runoob01\/trunk# svn revert readme \r\nReverted 'readme'<\/pre>\n

\u518d\u67e5\u770b\u72b6\u6001\u3002<\/p>\n

root@runoob:~\/svn\/runoob01\/trunk# svn status \r\nroot@runoob:~\/svn\/runoob01\/trunk# <\/pre>\n

\u8fdb\u884c revert \u64cd\u4f5c\u4e4b\u540e\uff0creadme \u6587\u4ef6\u6062\u590d\u4e86\u539f\u59cb\u7684\u72b6\u6001\u3002 revert \u64cd\u4f5c\u4e0d\u5355\u5355\u53ef\u4ee5\u4f7f\u5355\u4e2a\u6587\u4ef6\u6062\u590d\u539f\u72b6\uff0c \u800c\u4e14\u53ef\u4ee5\u4f7f\u6574\u4e2a\u76ee\u5f55\u6062\u590d\u539f\u72b6\u3002\u6062\u590d\u76ee\u5f55\u7528 -R \u547d\u4ee4\uff0c\u5982\u4e0b\u3002<\/p>\n

svn revert -R trunk<\/pre>\n

\u4f46\u662f\uff0c\u5047\u5982\u6211\u4eec\u60f3\u6062\u590d\u4e00\u4e2a\u5df2\u7ecf\u63d0\u4ea4\u7684\u7248\u672c\u600e\u4e48\u529e\u3002<\/p>\n

\u4e3a\u4e86\u6d88\u9664\u4e00\u4e2a\u65e7\u7248\u672c\uff0c\u6211\u4eec\u5fc5\u987b\u64a4\u9500\u65e7\u7248\u672c\u91cc\u7684\u6240\u6709\u66f4\u6539\u7136\u540e\u63d0\u4ea4\u4e00\u4e2a\u65b0\u7248\u672c\u3002\u8fd9\u79cd\u64cd\u4f5c\u53eb\u505a reverse merge\u3002<\/p>\n

\u9996\u5148\uff0c\u627e\u5230\u4ed3\u5e93\u7684\u5f53\u524d\u7248\u672c\uff0c\u73b0\u5728\u662f\u7248\u672c 22\uff0c\u6211\u4eec\u8981\u64a4\u9500\u56de\u4e4b\u524d\u7684\u7248\u672c\uff0c\u6bd4\u5982\u7248\u672c 21\u3002<\/p>\n

svn merge -r 22:21 readme <\/pre>\n","protected":false},"excerpt":{"rendered":"

\u5f53\u6211\u4eec\u60f3\u653e\u5f03\u5bf9\u6587\u4ef6\u7684\u4fee\u6539\uff0c\u53ef\u4ee5\u4f7f\u7528 SVN revert \u547d\u4ee4\u3002 svn revert \u64cd\u4f5c\u5c06\u64a4\u9500\u4efb\u4f55\u6587\u4ef6\u6216\u76ee […]<\/p>\n","protected":false},"author":321,"featured_media":159975,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-160007","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/160007","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/321"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=160007"}],"version-history":[{"count":1,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/160007\/revisions"}],"predecessor-version":[{"id":160008,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/160007\/revisions\/160008"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/159975"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=160007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=160007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=160007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}