<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tech Wisdom &#187; Netbeans</title>
	<atom:link href="http://blog.ujjwalkumar.com/category/netbeans/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ujjwalkumar.com</link>
	<description>Its all about Zeroes or Ones</description>
	<lastBuildDate>Sun, 11 Sep 2011 05:19:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Synchronisation of code with Subversion and Netbeans</title>
		<link>http://blog.ujjwalkumar.com/2008/06/12/synchronisation-of-code-with-collabnet-subversion-and-netbeans/</link>
		<comments>http://blog.ujjwalkumar.com/2008/06/12/synchronisation-of-code-with-collabnet-subversion-and-netbeans/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 09:25:18 +0000</pubDate>
		<dc:creator>ujjwal</dc:creator>
				<category><![CDATA[Netbeans]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Collabnet]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[Synchronization of code]]></category>

		<guid isPermaLink="false">http://techwisdom.wordpress.com/?p=17</guid>
		<description><![CDATA[For the synchronization of code, you must be having an online repository or an offline one, on your intranet.. A very good example of online repository is assembla. You need to invite all the members of the project to this online repository.. now, I am giving u a short tutorial on how to configure assembla [...]]]></description>
			<content:encoded><![CDATA[<p>For the synchronization of code, you must be having an online repository or an offline one, on your intranet.. A very good example of online repository is <a href="http://www.assembla.com/">assembla</a>. You need to invite all the members of the project to this online repository..</p>
<p>now, I am giving u a short tutorial on how to configure assembla and svn with Netbeans..</p>
<ol>
<li>install <a href="http://dlc.sun.com.edgesuite.net/netbeans/6.1/final/">netbeans 6.1</a>.</li>
<li>install <a href="http://www.collab.net/downloads/subversion/">collabnet subversion</a>.. here you will be asked to register..</li>
<li>open netbeans, open the versioning menu, click subversion, and then checkout..</li>
<li>enter the home folder of the collabnet subversion.. it should be somthing like this.. D:\Program Files\CollabNet Subversion ..</li>
<li>Restart Netbeans..</li>
<li>again click on checkout, enter the url of your repository, it can be found here found at <strong>assembla home&gt;Project Name&gt;Trac/SVN&gt;SVN</strong> <strong>url</strong>, and, your assembla <strong>username</strong> and <strong>password.</strong>.</li>
<li>then, browse the repository folder for Project Folder.. make sure that the scan for netbeans projects after checkout has been checked.. click on the open project which comes after checking out..</li>
</ol>
<p>now, you will find that, a project has been created.. this is the project which all the team members will be using at the same time.. Team members will be editing it at their pcs and then uploading it to the repository..</p>
<p>Steps to follow, while adding the source code for the first time:</p>
<ol>
<li>Create a project in your netbeans.</li>
<li>Configure the collabnet subversion as told above.</li>
<li>Select the project in the projects tab.</li>
<li>Click <strong>Versioning&gt;Subversion&gt;Import</strong> to repository.</li>
<li>Provide the necessary settings, such as url, username and password.</li>
</ol>
<p>Lets know about some <strong>svn commands</strong> (which can be found after right clicking the project&gt;subversion..</p>
<p><strong>Important Commands:</strong></p>
<p><strong>Show Changes:</strong> This command shows the changes between the code thats there in the repo, and that at your pc.. There can be 7 types of changes, <strong>locally new, locally modified, locally deleted, remotely new, remotely modified, and remotely deleted</strong>.. One special kind of Change can be <strong>local conflict</strong>.. This happens when 2 members edit one piece of code at the same time differently.. One example can be, if I edit ideas_controller.rb to something, and Amit edits it to something else, and then, I commit my code.. when I submit, there was no error.. but as soon as amit commits the code, an error creeps out, showing that Amit has been using an older version of the code.. this is called local conflict.. now, at this point of time, Amit has to resolve this conflict (it has to be manual, it can&#8217;t be computerized) .. One of the healthy practices is to have a look at the remotely changed files, and perform actions accordingly, like if a new migration is run, you must migrate your database to the current version (this you will come to know once u get acquainted with rails) &#8230;</p>
<p><strong>Update:</strong> It updates the code at the pc, to the code at the repository.. Note that, locally modified changes can&#8217;t be updated..</p>
<p><strong>Commit:</strong> It submits the code at ur PC to the code at repository.. Its important to commit only those file, which you have changed.. Files like, development logs, and PC specific settings (database configuration) and all, should be excluded from commit.. This can be achieved by Clicking commit, and selecting &#8216;exclude from commit&#8217; in the Commit action..</p>
<p><strong>Other Commands:</strong></p>
<p><strong>Diff:</strong> It shows the actual difference between the code at the repository and the code on ur pc..</p>
<p><strong>Search History:</strong> It shows the actual history of a file, i.e, who has modified the file at what place..</p>
<p>It would be good, if youhave a look <a href="http://svnbook.red-bean.com/nightly/en/svn.basic.vsn-models.html">over here</a>, how subversion works, and its file sharing operations..</p>
<p>You people must get acquainted with these tools, as these are inseparable from any kind of software development..</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ujjwalkumar.com/2008/06/12/synchronisation-of-code-with-collabnet-subversion-and-netbeans/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

