{"id":595,"date":"2009-12-18T13:40:41","date_gmt":"2009-12-18T13:40:41","guid":{"rendered":"http:\/\/salientsoft.co.uk\/?p=595"},"modified":"2011-11-17T12:26:30","modified_gmt":"2011-11-17T12:26:30","slug":"configuring-and-using-the-eclipse-cvs-plugin","status":"publish","type":"post","link":"https:\/\/salientsoft.co.uk\/?p=595","title":{"rendered":"Configuring and Using the Eclipse CVS plugin"},"content":{"rendered":"<p>Eclipse comes with a CVS plugin pre-installed. To connect to a repository, open the <strong>CVS Repositories<\/strong> view and add one via <strong>new<\/strong> from the context menu. The Eclipse CVS client is a pure Java one with a more limited set of protocols than the full set allowed by CVSNT &#8211; I use the <strong>pserver<\/strong> protocol, which encrypts passwords but not\u00a0any other traffic. This is fine for a trusted\u00a0internal development network behind a firewall.\u00a0Eclipse does allow password caching and asks for secret questions for password recovery.<\/p>\n<p>Note that if you get timeouts trying to connect to your repository and you are using <strong>CVSNT<\/strong>, make sure that you have excluded <strong>cvsservice.exe<\/strong> and <strong>cvslock.exe<\/strong> fully from both your Antivirus software on the server\u00a0and the Windows Firewall on the server. In my case I used the default TCP ports in all cases on both clients and the server without problems once this had been done.<\/p>\n<p>By default, my icons in the package\/project explorers did not show when a file was dirty, i.e. when I had made local changes to a checked out file (Eclipse terms this an <strong>outgoing<\/strong> change). I could see the changes in the <strong>Team Synchronization<\/strong> view, which is useful as it isolates your changes from all the unchanged files, and allows filtering on the type of changes (outgoing, incoming, both, change conflicts). However, it is highly desirable to have the simple feature of tagging the icons on the dirty files, and this did not work even though\u00a0I strongly suspected that such a feature would be available. It turned out that this labelling of the icons is enabled in the preferences.\u00a0\u00a0Select <strong>Window\/Preferences<\/strong>, then select <strong>Team\/CVS\/Label Decorations<\/strong> in the left pane, then the <strong>Icon Decorations<\/strong> tab, and select all the options. In my case, <strong>Outgoing changes<\/strong> was not selected, so local changes to a file in Eclipse did not make it show up as \u2018dirty\u2019 on the explorer icon. Selecting the option fixed the problem.<\/p>\n<p><strong><span style=\"text-decoration: underline;\">Usage Points<\/span><\/strong><\/p>\n<ol>\n<li>Most of the CVS options are under the <strong>Team<\/strong> submenu in the package explorer context menu.<\/li>\n<li>However, one exception which can catch the unwary &#8211; to <strong>revert to checked out version<\/strong> \u2013 use <strong>Replace With<\/strong> and <strong>Latest from HEAD<\/strong> or <strong>Another Branch or Version<\/strong> on the explorer context menu<br \/>\ni.e. this command is not under the <strong>TEAM<\/strong> submenu.<\/li>\n<li>The CVS Repositories view is useful for browsing the server side repository including all the branches and files.<\/li>\n<li>The Team Synchronization view is useful for viewing your changes &#8211; incoming, outgoing, and change conflicts<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Eclipse comes with a CVS plugin pre-installed. To connect to a repository, open the CVS Repositories view and add one via new from the context menu. The Eclipse CVS client is a pure Java one with a more limited set of protocols than the full set allowed by CVSNT &#8211; I use the pserver protocol, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[67],"tags":[187,9,15],"_links":{"self":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/595"}],"collection":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=595"}],"version-history":[{"count":4,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/595\/revisions"}],"predecessor-version":[{"id":613,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/595\/revisions\/613"}],"wp:attachment":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}