{"id":927,"date":"2012-02-29T23:12:04","date_gmt":"2012-02-29T20:12:04","guid":{"rendered":"http:\/\/hxml.me\/blog\/?p=927"},"modified":"2016-01-27T12:45:56","modified_gmt":"2016-01-27T09:45:56","slug":"svn-export-without-client-app","status":"publish","type":"post","link":"https:\/\/hxml.me\/blog\/coding\/svn-export-without-client-app\/","title":{"rendered":"SVN export without client app"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" src=\"http:\/\/hxml.me\/img\/post\/nb.png\" alt=\"\" width=\"114\" height=\"114\" \/>\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0437\u0430\u043c\u0435\u0442\u043a\u0430 \u043e\u0431 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 <strong>SVN<\/strong> \u043d\u0430 <strong>OS X<\/strong>. \u041d\u0435 \u043c\u043e\u0433\u0443 \u043d\u0430\u0439\u0442\u0438 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e<strong> \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 SVN<\/strong>. \u0428\u0442\u0430\u0442\u043d\u044b\u0439 xcode \u043a\u043b\u0438\u0435\u043d\u0442 \u0432\u044b\u043d\u043e\u0441\u0438\u0442 \u043c\u043d\u0435 \u043c\u043e\u0437\u0433, \u043f\u043b\u044e\u0441 \u043a\u043e \u0432\u0441\u0435\u043c\u0443 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u0445 &#8212; \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 <strong>\u0441\u0434\u0435\u043b\u0430\u0442\u044c<\/strong> \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u044b\u0439 <strong>export<\/strong> (\u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0443\u044e \u043f\u0430\u043f\u043a\u0443 <strong>\u0431\u0435\u0437<\/strong> \u0441\u0432\u043e\u0438\u0445 \u0437\u0430\u043f\u0447\u0430\u0441\u0442\u0435\u0439 <strong>.svn<\/strong>). \u0414\u043e\u043b\u0433\u043e \u0438\u0441\u043a\u0430\u043b <strong>\u0430\u043d\u0430\u043b\u043e\u0433 Tortoise Repo Browser <\/strong>(\u043f\u043e \u043c\u043e\u0435\u043c\u0443 \u043c\u043d\u0435\u043d\u0438\u044e &#8212; \u0441\u0430\u043c\u044b\u0439 \u043b\u0443\u0447\u0448\u0438\u0439 GUI \u043a\u043b\u0438\u0435\u043d\u0442), \u043d\u0430\u0448\u0435\u043b \u043d\u0435\u0447\u0442\u043e (<a title=\"SCPlugin\" href=\"http:\/\/scplugin.tigris.org\/\" target=\"_blank\">SCPlugin<\/a>), \u043d\u043e, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0432 \u0432\u0438\u0434\u0443 \u0441\u0432\u043e\u0435\u0439 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0441\u0442\u0438 \u043e\u043d \u043e\u0447\u0435\u043d\u044c \u0441\u0442\u0440\u0430\u0448\u043d\u044b\u0439 \u0438 \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 \u043d\u0435 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442\u0441\u044f (\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0440\u0435\u043b\u0438\u0437 \u0432 2010 \u0433\u043e\u0434\u0443). \u0421\u0430\u043c\u043e\u0435 \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u043e\u0435 \u0434\u043b\u044f \u043c\u0430\u043a \u0440\u0435\u0448\u0435\u043d\u0438\u0435 &#8212; \u044d\u0442\u043e <a title=\"Versions for OS X\" href=\"http:\/\/versionsapp.com\/\" target=\"_blank\">Versions<\/a>, \u043d\u043e \u043e\u043d \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u043e\u043c &#8212; \u0446\u0435\u043d\u043e\u0439)) \u0427\u0443\u0432\u0441\u0442\u0432\u0443\u044e, \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u0440\u0430\u0441\u043a\u043e\u0448\u0435\u043b\u044e\u0441\u044c \u0432 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u043c \u0431\u0443\u0434\u0443\u0449\u0435\u043c. \u0410 \u043f\u043e\u043a\u0430, \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c <strong>\u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u0443\u044e \u043e\u0447\u0438\u0441\u0442\u043a\u0443<\/strong> \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043e\u0442 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0430 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 <strong>\u043f\u0430\u043f\u043e\u043a .svn<\/strong> \u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043b \u0442\u0430\u043a\u043e\u0439 workaround<\/p>\n<p><!--more--> \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0445\u043e\u0442\u0435\u043b \u043a\u0430\u043a \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0440\u0438\u0431\u0435\u0433\u043d\u0443\u0442\u044c \u043a \u0441\u0432\u043e\u0435\u043c\u0443 \u043b\u044e\u0431\u0438\u043c\u043e\u043c\u0443 php, \u043d\u043e \u043f\u043e\u0442\u043e\u043c \u0440\u0435\u0448\u0438\u043b \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u0448\u0442\u0430\u0442\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u0430 \u043a\u043e\u043c\u0430\u043d\u0434 <strong>bash<\/strong>. \u0412\u0441\u0435, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u043c\u0430\u0433\u0438\u0438 \u043c\u0430\u0433\u0438\u0438 &#8212; \u044d\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u044b find, pwd, rm, \u043d\u0443 \u0438 echo \u0434\u043b\u044f \u043a\u0440\u0430\u0441\u043e\u0442\u044b \u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438. \u041a\u043e\u043c\u0430\u043d\u0434\u0430 find \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u043e\u0438\u0441\u043a\u0430.<\/p>\n<pre lang=\"bash\">$ find . -type d -name .svn\r\n.\/.svn\r\n.\/sourceA\/.svn\r\n.\/sourceB\/.svn\r\n.\/sourceB\/module\/.svn\r\n.\/sourceC\/.svn<\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u0432\u0441\u0435 \u044d\u0442\u043e \u0434\u0435\u043b\u043e \u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u0432\u0445\u043e\u0434 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 rm:<\/p>\n<pre lang=\"bash\">$ rm -rf `find . -type d -name .svn`<\/pre>\n<p>\u041e\u0444\u043e\u0440\u043c\u0438\u043c \u044d\u0442\u043e \u0434\u0435\u043b\u043e \u0432 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442:<\/p>\n<pre lang=\"bash\">#!\/bin\/bash\r\necho \"removing .svn directories from\"\r\npwd\r\nrm -rf `find . -type d -name .svn`<\/pre>\n<p>\u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u0432 \u0444\u0430\u0439\u043b\u0435 rsvn, \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u043c \u0435\u0433\u043e \u0432 \u043a\u0430\u043a\u0443\u044e-\u043b\u0438\u0431\u043e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e, \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u043d\u0443\u044e \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043e\u043a\u0443\u0440\u0436\u0435\u043d\u0438\u044f PATH, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \/usr\/bin.<br \/>\n\u0417\u0430\u0442\u0435\u043c \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0430 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f:<\/p>\n<pre>chmod 777 \/usr\/bin\/rsvn<\/pre>\n<p>\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f.<br \/>\n<span style=\"font-weight: bold;font-size: 14px;color: red\">\u041e\u0427\u0415\u041d\u042c \u0412\u0410\u0416\u041d\u041e<\/span> \u043f\u0435\u0440\u0435\u0434 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e bash \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u0442\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0432\u044b\u0447\u0438\u0449\u0430\u0442\u044c. \u0418\u043d\u0430\u0447\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0435\u043b\u043e\u0432. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043a\u0430 \u0434\u043e\u043f\u0438\u0448\u0435\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442. \u041f\u0435\u0440\u0435\u0434 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435\u043c \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u043d\u0430\u0448\u0438\u0445 \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u0438\u0439 (\u0441 \u043f\u043e\u043a\u0430\u0437\u043e\u043c \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438).<\/p>\n<pre lang=\"bash\">#!\/bin\/bash\r\nfunction confirm() {\r\n    echo -n \"$@ \"\r\n    read -e answer\r\n    for response in y Y yes YES Yes Sure sure SURE OK ok Ok\r\n    do\r\n        if [ \"_$answer\" == \"_$response\" ]\r\n        then\r\n            return 0\r\n        fi\r\n    done\r\n\r\n    # if something typed other than  y Y yes YES Yes Sure sure SURE OK ok Ok nothing happens\r\n    return 1\r\n}\r\necho Do you really want to remove svn details from\r\npwd\r\nconfirm ? [yes\/no]\r\nif [ $? -eq 0 ]\r\n  then\r\n  echo \"removing .svn directories from\"\r\n  pwd\r\n  rm -rf `find . -type d -name .svn`\r\n  echo Done.\r\nfi<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0437\u0430\u043c\u0435\u0442\u043a\u0430 \u043e\u0431 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 SVN \u043d\u0430 OS X. \u041d\u0435 \u043c\u043e\u0433\u0443 \u043d\u0430\u0439\u0442\u0438 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 SVN. \u0428\u0442\u0430\u0442\u043d\u044b\u0439 xcode \u043a\u043b\u0438\u0435\u043d\u0442 \u0432\u044b\u043d\u043e\u0441\u0438\u0442 \u043c\u043d\u0435 \u043c\u043e\u0437\u0433, \u043f\u043b\u044e\u0441 \u043a\u043e \u0432\u0441\u0435\u043c\u0443 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u0445 &#8212; \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u044b\u0439 export (\u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u0431\u0435\u0437 \u0441\u0432\u043e\u0438\u0445 \u0437\u0430\u043f\u0447\u0430\u0441\u0442\u0435\u0439 .svn). \u0414\u043e\u043b\u0433\u043e \u0438\u0441\u043a\u0430\u043b \u0430\u043d\u0430\u043b\u043e\u0433 Tortoise Repo Browser (\u043f\u043e \u043c\u043e\u0435\u043c\u0443 \u043c\u043d\u0435\u043d\u0438\u044e &#8212; \u0441\u0430\u043c\u044b\u0439 \u043b\u0443\u0447\u0448\u0438\u0439 GUI \u043a\u043b\u0438\u0435\u043d\u0442), \u043d\u0430\u0448\u0435\u043b [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[60,47],"tags":[119,83,134,120],"class_list":["post-927","post","type-post","status-publish","format-standard","hentry","category-apple","category-coding","tag-bash","tag-mac-os-x","tag-nota-bene","tag-svn"],"_links":{"self":[{"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/posts\/927","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/comments?post=927"}],"version-history":[{"count":18,"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/posts\/927\/revisions"}],"predecessor-version":[{"id":1489,"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/posts\/927\/revisions\/1489"}],"wp:attachment":[{"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/media?parent=927"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/categories?post=927"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/tags?post=927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}