{"id":873,"date":"2010-07-25T23:09:41","date_gmt":"2010-07-26T04:09:41","guid":{"rendered":"https:\/\/www.circuitdesign.info\/blog\/2010\/07\/updates-to-cadencesubversion-cdsvn-scripts\/"},"modified":"2017-05-23T00:33:18","modified_gmt":"2017-05-23T05:33:18","slug":"updates-to-cadencesubversion-cdsvn-scripts","status":"publish","type":"post","link":"https:\/\/www.circuitdesign.info\/blog\/2010\/07\/updates-to-cadencesubversion-cdsvn-scripts\/","title":{"rendered":"Updates to Cadence\/Subversion (CDSVN) scripts"},"content":{"rendered":"<p>Our Brazilian Friends PCS and NGJr have offered the following changes to the CDSVN package:<\/p>\n<blockquote>\n<ul>\n<li>Into the file &#8220;cdsLibMgr.lib&#8221; was created the menu item &#8220;SVN Unlock Cell&#8221;<\/li>\n<li>Into the file &#8220;svnLockCell.il&#8221; were created the procedures &#8220;svnUnlockCell&#8221; and &#8220;svnUnlockCellFormCB&#8221;<\/li>\n<li>Inside the procedures &#8220;svnUnlockCellFormCB&#8221; and &#8220;svnUnlockCVFormCB&#8221; were made the following changes:<\/li>\n<\/ul>\n<ul>\n<li>where you have: if( !(rexMatchp(&#8220;.*.svn$&#8221;, file~&gt;readPath) || rexMatchp(&#8220;.*%&#8221;, file~&gt;readPath))<\/li>\n<li>was changed to: if( !(rexMatchp(&#8220;.*.svn$&#8221;, file~&gt;readPath) || rexMatchp(&#8221; &#8220;, file~&gt;readPath))<\/li>\n<\/ul>\n<p>Behaviors observed:<\/p>\n<ul>\n<li>We don\u00b4t want the files *.cd% under version control, but if for some reason they are under version control that exist the possibility to lock them or unlock them.<\/li>\n<li>Copying a &#8220;cell&#8221; or a &#8220;view&#8221; by &#8220;Library Manager&#8221; doesn\u00b4t copy files *.cd% which is not a problem because we don\u00b4t want these files under version control.<\/li>\n<li>The command &#8220;[user@host CDSVN]$ svn lock *&#8221; or &#8220;[user@host CDSVN\/bin]$ lock directory\/&#8221; locks the files *.cd%, however, the &#8220;CDSVN Unlock Cell&#8221; or &#8220;CDSVN Unlock View&#8221; does not unlock.<\/li>\n<li>The &#8220;CDSVN Lock Cell&#8221; or &#8220;CDSVN Lock View&#8221; does not unlock the files *.cd%, however, the commands &#8220;[user@host CDSVN]$ svn unlock *&#8221; or &#8220;[user@host CDSVN\/bin]$ unlock directory\/&#8221; are able to unlock.<\/li>\n<li>Copying by the command &#8220;[user@host CDSVN]$ svn copy&#8221; copies the files *.cd% only if they are already under version control. The same behavior occurs for &#8220;CDSVN Copy Cell&#8221; or &#8220;CDSVN Copy View&#8221;. This is not a problem.<\/li>\n<li>The command &#8220;[user@host CDSVN]$ svn add&#8221;, &#8220;CDSVN Add Cell&#8221; or &#8220;CDSVN Add View&#8221; does not add files *.cd% even because this type of file is in the list of ignored files as showed below:<\/li>\n<\/ul>\n<p>[user@host \/home\/user\/.subversion] vi config<br \/>\nglobal-ignores = *.cd% *.cd- *.cdslck *.Cat% *.abstract.status *.abstract.messages *.inca* *inca* .cdsvmod expand.cfg% transcript_ms<\/p>\n<p>[user@host CDSVN\/]vi cadence_ignores.txt<br \/>\n*.cd%<br \/>\n*.cd-<br \/>\n*.cdslck<br \/>\n*.Cat%<br \/>\n*.abstract.status<br \/>\n*.abstract.messages<br \/>\n*.inca*<br \/>\n*inca*<br \/>\n&#8230;.cdsvmod<br \/>\nexpand.cfg%<br \/>\ntranscript_ms<\/p><\/blockquote>\n<p>Their updated files are attached. Special thanks to PCS for coordinating this. Remember, the CDSVN scripts are licensed under GPL.<\/p>\n<p><a href=\"https:\/\/www.circuitdesign.info\/blog\/wp-content\/uploads\/2010\/07\/cdsLibMgr.il_.txt\">cdsLibMgr.il<\/a><br \/>\n<a href=\"https:\/\/www.circuitdesign.info\/blog\/wp-content\/uploads\/2010\/07\/svnLockCell.il_.txt\">svnLockCell.il<\/a><br \/>\n<a href=\"..\/wp-content\/uploads\/2010\/07\/cdsLibMgr.il_.txt\">cdsLibMgr.il<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Our Brazilian Friends PCS and NGJr have offered the following changes to the CDSVN package: Into the file &#8220;cdsLibMgr.lib&#8221; was created the menu item &#8220;SVN Unlock Cell&#8221; Into the file &#8220;svnLockCell.il&#8221; were created the procedures &#8220;svnUnlockCell&#8221; and &#8220;svnUnlockCellFormCB&#8221; Inside the procedures &#8220;svnUnlockCellFormCB&#8221; and &#8220;svnUnlockCVFormCB&#8221; were made the following changes: where you have: if( !(rexMatchp(&#8220;.*.svn$&#8221;, file~&gt;readPath) [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[33,160,42,32,161],"class_list":["post-873","post","type-post","status-publish","format-standard","hentry","category-analog-pro","tag-cadence","tag-cds","tag-revision-control","tag-subversion","tag-svn"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/poCEy-e5","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/posts\/873","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/comments?post=873"}],"version-history":[{"count":6,"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/posts\/873\/revisions"}],"predecessor-version":[{"id":1071,"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/posts\/873\/revisions\/1071"}],"wp:attachment":[{"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/media?parent=873"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/categories?post=873"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/tags?post=873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}