{"id":3442,"date":"2021-05-16T22:11:59","date_gmt":"2021-05-16T20:11:59","guid":{"rendered":"http:\/\/van-maanen.com\/?p=3442"},"modified":"2021-05-16T22:11:59","modified_gmt":"2021-05-16T20:11:59","slug":"svn-version-controller","status":"publish","type":"post","link":"http:\/\/archief.van-maanen.com\/?p=3442","title":{"rendered":"SVN version controller"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Recently, I came accross the SVN version control mechanism. The idea is that we have a so-called working directory that acts as a source for a final version of some documents. Once we have a final version, the final version can be committed to another platform. This other platform can be accessed by others.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If we have a revised version, it can be subsequently committed. This revised version can then be accessed by others to want to have the revised version.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let us look at the working directory. This looks like:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"http:\/\/van-maanen.com\/wp-content\/uploads\/2021\/05\/Capture-3-3.png\" alt=\"\" class=\"wp-image-3446\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The .svn folder indicates that we have a working directory that contains files that may act as a final version of a document. Let us assume for the moment that &#8220;test.txt&#8221; may be used as a document that can be committed as a final version.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On the other hand, let us look at the platform where others may find the final version:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"http:\/\/van-maanen.com\/wp-content\/uploads\/2021\/05\/Capture-31-1-1.png\" alt=\"\" class=\"wp-image-3447\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The platform is a website where documents can be accessed as final versions. We may download file &#8221; test.txt&#8221;  to see the latest committed version. We also see that we have version &#8220;r2&#8221; as the latest version.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">How do we commit a next version as a final version?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The first command is &#8220;svn update&#8221;, whereby it is indicated that test.txt is changed in the working directory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The second command is &#8220;svn commit -m &#8220;1234 toegevoegd&#8221;&#8221; <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We then see that the file is updated.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"http:\/\/van-maanen.com\/wp-content\/uploads\/2021\/05\/Capture-32-1-1.png\" alt=\"\" class=\"wp-image-3449\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">A new version &#8220;r3&#8221;  is then shown.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, I came accross the SVN version control mechanism. The idea is that we have a so-called working directory that acts as a source for a final version of some documents. Once we have a final version, the final version can be committed to another platform. This other platform can be accessed by others. If [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-3442","post","type-post","status-publish","format-standard","hentry","category-allgemein"],"_links":{"self":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/posts\/3442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3442"}],"version-history":[{"count":0,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/posts\/3442\/revisions"}],"wp:attachment":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3442"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}