{"id":117,"date":"2009-01-30T07:33:28","date_gmt":"2009-01-30T07:33:28","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2009\/01\/30\/common-problems-in-cvs\/"},"modified":"2017-12-26T00:01:22","modified_gmt":"2017-12-26T00:01:22","slug":"common-problems-in-cvs","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/common-problems-in-cvs\/","title":{"rendered":"List of 5 Common Problems in CVS &#8211; Troubleshooting Guide"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3980 aligncenter\" src=\"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2009\/01\/cvs-common-problems.png\" alt=\"cvs-common-problems\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2009\/01\/cvs-common-problems.png 600w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2009\/01\/cvs-common-problems-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><strong>List of 5 Common Problems in CVS &#8211; Troubleshooting Guide<\/strong><\/p>\n<ul>\n<li><span style=\"color: #0000ff;\"><strong>Problem 1:- How will we modify our conflict occurred files ?<\/strong><\/span><\/li>\n<\/ul>\n<hr size=\"2\" width=\"100%\" \/>\n<p>While updating if you will get message like bellow, then check,<\/p>\n<p>This will list:<\/p>\n<p>* &#8220;A filename&#8221; for files that you added<br \/>\n* &#8220;M filename&#8221; for files that you modified<br \/>\n* &#8220;C filename&#8221; for files that have conflicts<\/p>\n<p>Conflicts are files that you modified and that were modified on the head revision as well.<\/p>\n<p>@ If u ll get C or conflict then go to that file and remove that lines and duplicate line then it will recover, it because, if more than two developer working on same file and comming on same time then conflict occures,<\/p>\n<p>Files with conflicts will have conflict markers in them. Conflict markers look like:<\/p>\n<p>&lt;&lt;&lt;&lt;&lt;&lt;&lt; filename<br \/>\nyour lines<br \/>\n=======<br \/>\nother person&#8217;s lines<br \/>\n&gt;&gt;&gt;&gt;&gt;&gt;&gt; current version<\/p>\n<ul>\n<li><strong><span style=\"color: #0000ff;\">Problem 2:-<\/span><\/strong><\/li>\n<\/ul>\n<p><span style=\"color: #0000ff;\">If you are using your colleague&#8217;s checked out code for some changes, after that If you made any changes in code and then if you will try to check-in the code in CVS from your machine,after that if\u00a0 it will ask your colleague&#8217;s password for checking-in. So How will we resolve this one ?<\/span><\/p>\n<hr size=\"2\" width=\"100%\" \/>\n<p>Soln:-<br \/>\nPlease fine the CVS dir on your present code directory, then go to CVS dirctory, there, you will find Entries, Root, Repository like files , So now open that Rot file and change that username then your problem will solve, else let me know.<br \/>\nSteps:<br \/>\ncd CVS<br \/>\nvim Root<br \/>\nedit present urername to your username<br \/>\n@cvs:<br \/>\n:wq\u00a0\u00a0 \/\/ save and quit<br \/>\ncd ..\u00a0 \/\/ come to parent directory<br \/>\nthen do your work ..<br \/>\nit will fine<\/p>\n<ul>\n<li><span style=\"color: #0000ff;\"><strong>Problem 3:-<br \/>\n<span style=\"font-family: Arial; font-size: small;\"><span style=\"font-size: 10pt; font-family: Arial;\">Is there any way to identify the information of deleted lines in a file through CVS annotate or any other means?<\/span><\/span><\/strong><\/span><\/li>\n<\/ul>\n<p>Soln:-<\/p>\n<p><span style=\"color: #333399;\">\u00a0 <span style=\"color: #0000ff;\">\u00a0 \u00a0 \u00a0\u00a0 <span style=\"color: #000000;\">You deleted from CVS or local server ? if u deleted from both server then i have to see, else if u deleted from\u00a0\u00a0\u00a0\u00a0\u00a0 either local server or CVS server\u00a0 then do <em><span style=\"color: #333399;\">&#8220;cvs -q up -Pd\u00a0 &#8220;<\/span><\/em><\/span><\/span><\/span><\/p>\n<p><span style=\"color: #333399;\"><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">else do<span style=\"color: #000080;\"> &#8220;<em> cvs -q up -Pd -r\u00a0 &#8221; .<\/em><\/span><\/span><\/span><\/span><\/p>\n<ul>\n<li>\u00a0<span style=\"color: #0000ff;\"><strong>Problem4:-<\/strong><\/span><\/li>\n<\/ul>\n<p><span style=\"color: #0000ff;\"><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 When I view the &#8220;cvs log&#8221;, the log report is fetching the file but says <\/strong><\/span><\/p>\n<p><span style=\"color: #0000ff;\"><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;date: 2008\/12\/31 06:00:51;\u00a0 author: amareshcd;\u00a0 state: Exp;\u00a0 lines: +0 -0&#8221;<br \/>\nBut I have added with 130 lines. Why the log is not showing &#8220;+130 -0&#8221; in its report.\u00a0\u00a0 ?<\/strong><\/span><\/p>\n<p>Soln:-<\/p>\n<p>Use ,<em>&#8220;cvs log -d date1 logfile.log&#8221; <\/em><\/p>\n<ul>\n<li>\u00a0<span style=\"color: #0000ff;\"><strong>Problem5:-<\/strong><\/span><\/li>\n<\/ul>\n<p><span style=\"color: #0000ff;\"><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 I have files that went into the Attic.\u00a0 How do I restore them back? Viewing\u00a0 the files\u00a0 revealed that they&#8217;re in DEAD State. Someone has &#8216;cvs remove&#8217;d the files. Just restore them with &#8216;cvs add&#8217;. How ?<\/strong><\/span><\/p>\n<p>Soln:-<\/p>\n<p>Step1:-<br \/>\ncvs log<br \/>\nStep2:-<br \/>\nFind til newest non-dead version<br \/>\nstep 3:-<br \/>\ncvs update -r<br \/>\nstep4:-<br \/>\nmv foo<br \/>\nstep 5:-<br \/>\ncvs update -A<br \/>\nstep 6:-<br \/>\nmv foo<br \/>\nstep 7:-<br \/>\ncvs add<br \/>\nstep 8:-<br \/>\ncvs commit -m &#8220;bring out your dead&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>List of 5 Common Problems in CVS &#8211; Troubleshooting Guide Problem 1:- How will we modify our conflict occurred files ? While updating if you will get message like bellow, then check, This will list: * &#8220;A filename&#8221; for files that you added * &#8220;M filename&#8221; for files that you modified * &#8220;C filename&#8221; for&#8230;<\/p>\n","protected":false},"author":1,"featured_media":3980,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[20],"tags":[1979,2950,1026,369,2957,2954,2956,2955,2958,2961,2962,2959,2960,2731,2951,2953,255,507,1028,2952,1509,1594,2949,670],"class_list":["post-117","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cvs-concurrent-version-system","tag-common","tag-common-issues","tag-common-problems","tag-cvs","tag-cvs-common-issues","tag-cvs-common-problems","tag-cvs-issues","tag-cvs-problems","tag-cvs-troubleshooting","tag-cvs-troubleshooting-guide","tag-cvs-troubleshooting-instructions","tag-cvs-troubleshooting-techniques","tag-cvs-troubleshooting-tutorial","tag-general","tag-general-problems","tag-issues-in-cvs","tag-issues","tag-list","tag-problems","tag-problems-in-cvs","tag-resolve","tag-solutions","tag-trouble","tag-what"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/117","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=117"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/117\/revisions"}],"predecessor-version":[{"id":3981,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/117\/revisions\/3981"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/3980"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}