{"id":113,"date":"2009-01-29T09:39:24","date_gmt":"2009-01-29T09:39:24","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2009\/01\/29\/cvs-best-practices-2\/"},"modified":"2017-12-26T00:54:49","modified_gmt":"2017-12-26T00:54:49","slug":"cvs-best-practices-2","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/cvs-best-practices-2\/","title":{"rendered":"What are the Best Practices of CVS?"},"content":{"rendered":"<p align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3997\" src=\"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2009\/01\/cvs-best-practices-1.png\" alt=\"cvs-best-practices\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2009\/01\/cvs-best-practices-1.png 600w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2009\/01\/cvs-best-practices-1-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p class=\"MsoNormal\" style=\"text-align: center;\" align=\"center\"><span style=\"font-size: 14pt;\">CVS Best Practices<\/span><span style=\"font-size: 10pt;\"><br \/>\n<\/span><\/p>\n<p class=\"MsoNormal\" style=\"text-align: center;\" align=\"center\"><span style=\"font-size: 10pt;\">\u00a0<\/span><\/p>\n<p class=\"MsoNormal\"><strong>These are list of CVS Best Practices:<\/strong><\/p>\n<p class=\"MsoNormal\"><strong>* Don\u2019t share workspaces<\/strong><\/p>\n<p class=\"MsoNormal\">Sharing workspaces compromises CVS\u2019s ability to track activity by user or task.<\/p>\n<p class=\"MsoNormal\"><strong>* Don\u2019t work outside of managed workspaces<\/strong><\/p>\n<p class=\"MsoNormal\">CVS can only track work in progress when it takes place within managed workspaces. Never copy files from others sandboxes or even from outside your sandbox since you may overwrite somebody else\u2019s code.<\/p>\n<p class=\"MsoNormal\"><strong>* Don\u2019t use jello views<\/strong><\/p>\n<p class=\"MsoNormal\">A file in your workspace should not change unless you explicitly cause the change. A &#8220;jello view&#8221; is a workspace where file changes are caused by external events beyond your control e.g. workspace built upon a tree of symbolic links to files in another workspace.<\/p>\n<p class=\"MsoNormal\"><strong>* Stay in sync with the codeline<\/strong><\/p>\n<p class=\"MsoNormal\">The quality of your work depends largely on how well it meshes with others work. In other words, as changes are checked into the codeline, you should update your workspace and integrate those changes with yours. Update your code at least once in the morning daily.<\/p>\n<p class=\"MsoNormal\"><strong>* Checkin code daily<\/strong><\/p>\n<p class=\"MsoNormal\">Integrating your development work with other peoples&#8217; work also requires you to check in your changes regularly. Don\u2019t keep your new code lying in your workspace for many days at a time. This may lead to many conflicts at a later stage when you try to merge.<\/p>\n<p class=\"MsoNormal\"><strong>* Never check in without compiling and testing your code<\/strong><\/p>\n<p class=\"MsoNormal\"><strong>* Always update your modules\/ files and resolve any conflicts before committing<\/strong><\/p>\n<p class=\"MsoBodyText\">* After committing changes, diff with previous version to make sure you did not accidentally overwrite anybody else\u2019s code<\/p>\n<p class=\"MsoNormal\"><strong>* If you overwrite somebody else\u2019s code, rollback<\/strong><\/p>\n<p class=\"MsoBodyText\">* Always communicate any changes you commit, to all those concerned with the module\/ file that was changed<\/p>\n<p class=\"MsoNormal\"><strong>* Always add comments when committing changes<\/strong><\/p>\n<p class=\"MsoNormal\">Good and meaningful comments make it easy for others to know exactly what was changed. For e.g. if it\u2019s a bug fix it should have a Bug Number.<\/p>\n<p class=\"MsoNormal\"><strong>* Add whitespaces with discretion<\/strong><\/p>\n<p class=\"MsoNormal\">Changes to whitespaces cause unnecessary updates to happen and may show conflicts during merges<\/p>\n<p class=\"MsoNormal\">\n","protected":false},"excerpt":{"rendered":"<p>CVS Best Practices \u00a0 These are list of CVS Best Practices: * Don\u2019t share workspaces Sharing workspaces compromises CVS\u2019s ability to track activity by user or task. * Don\u2019t work&#8230; <\/p>\n","protected":false},"author":1,"featured_media":4000,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[20],"tags":[647,1652,3008,369,2884,2889,2887,2854,2888,2976,2855,2885,2708,1097,213,670],"class_list":["post-113","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cvs-concurrent-version-system","tag-best","tag-best-practices","tag-best-practices-of-cvs","tag-cvs","tag-cvs-best-practices","tag-cvs-best-practices-guide","tag-cvs-best-practices-tips","tag-cvs-guide","tag-cvs-tips","tag-cvs-tips-tricks","tag-cvs-tutorial","tag-list-of-cvs-best-practices","tag-practices","tag-tips","tag-tutorial","tag-what"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=113"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/113\/revisions"}],"predecessor-version":[{"id":4001,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/113\/revisions\/4001"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/4000"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}