{"id":881,"date":"2004-08-30T17:13:37","date_gmt":"2004-08-30T21:13:37","guid":{"rendered":"\/?p=881"},"modified":"2004-08-30T17:17:46","modified_gmt":"2004-08-30T21:17:46","slug":"cvs2svn","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2004\/08\/30\/cvs2svn\/","title":{"rendered":"cvs2svn"},"content":{"rendered":"<p>\r\nThe <a href=\"http:\/\/mjtsai.com\/blog\/2004\/08\/12\/subversion-and-apache\/\">move to Subversion<\/a> was pretty smooth (though I haven&rsquo;t yet switched\r\nto Trac), and I am in general very happy with it. I was finally able to\r\ndo some folder and file restructuring, which I had been putting off\r\nbecause of CVS.\r\n<\/p>\r\n\r\n<p>\r\nOne of my favorite features of Subversion is that it stores checksums\r\nof each revision of each file in the repository. It can actually\r\n<em>verify<\/em> the contents of the repository, and I&rsquo;ve written a\r\nlittle shell script to do this regularly. Sounds pretty basic, but I&rsquo;ve\r\nhad problems with parts of CVS repositories going bad, and not noticing\r\nuntil months afterwards.\r\n<\/p>\r\n\r\n<p>\r\nIn order to speed up network operations, Subversion keeps pristine\r\ncopies of the checked-out files in its .svn\/text-base folder. When you\r\ncommit a file, it sends the database the differences between the\r\npristine file and the one that you&rsquo;re checking in. It seems like this\r\ncould lead to repository corruption if the pristine copy gets damaged,\r\nbut Subversion protects against this by not letting you check in a file\r\nif its pristine copy has the wrong checksum.\r\n<\/p>\r\n\r\n<p>\r\nThe one snag I ran into is that the default settings of <a href=\"http:\/\/cvs2svn.tigris.org\/\">cvs2svn<\/a> corrupted some of my Localizable.strings files and that I was later unable to check in changes to these files. When committing, I would get this error message:\r\n<\/p>\r\n\r\n<pre>Transmitting file data .svn: Commit failed (details follow):<\/pre>\r\n\r\n<p>\r\nonly Subversion wouldn&rsquo;t print any further details. The problem was that, by default, cvs2svn sets the <tt>svn:eol-style<\/tt> property on text files, and that it thought my UTF-16 .strings files were text. From now on, when I use cvs2svn, I will invoke it with these options:\r\n<\/p>\r\n\r\n<pre>cvs2svn --no-default-eol --keywords-off --cvs-revnums<\/pre>","protected":false},"excerpt":{"rendered":"<p>The move to Subversion was pretty smooth (though I haven&rsquo;t yet switched to Trac), and I am in general very happy with it. I was finally able to do some folder and file restructuring, which I had been putting off because of CVS. One of my favorite features of Subversion is that it stores checksums [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-881","post","type-post","status-publish","format-standard","hentry","category-programming-category"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=881"}],"version-history":[{"count":0,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/881\/revisions"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}