<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://sdcc.sourceforge.net/mediawiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://sdcc.sourceforge.net/mediawiki/index.php?title=HOWTO_Create_a_SDCC_Branch&amp;feed=atom&amp;action=history</id>
		<title>HOWTO Create a SDCC Branch - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://sdcc.sourceforge.net/mediawiki/index.php?title=HOWTO_Create_a_SDCC_Branch&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://sdcc.sourceforge.net/mediawiki/index.php?title=HOWTO_Create_a_SDCC_Branch&amp;action=history"/>
		<updated>2013-05-26T08:04:54Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://sdcc.sourceforge.net/mediawiki/index.php?title=HOWTO_Create_a_SDCC_Branch&amp;diff=26&amp;oldid=prev</id>
		<title>Borutr: Created page with &quot;There are two different ways to make a branch (see [http://svnbook.red-bean.com/nightly/en/svn.branchmerge.using.html Branching and Merging]): * remote copying to the URL * lo...&quot;</title>
		<link rel="alternate" type="text/html" href="http://sdcc.sourceforge.net/mediawiki/index.php?title=HOWTO_Create_a_SDCC_Branch&amp;diff=26&amp;oldid=prev"/>
				<updated>2012-12-04T10:25:39Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;There are two different ways to make a branch (see [http://svnbook.red-bean.com/nightly/en/svn.branchmerge.using.html Branching and Merging]): * remote copying to the URL * lo...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;There are two different ways to make a branch (see [http://svnbook.red-bean.com/nightly/en/svn.branchmerge.using.html Branching and Merging]):&lt;br /&gt;
* remote copying to the URL&lt;br /&gt;
* local copying to the snapshot&lt;br /&gt;
&lt;br /&gt;
Remote copying is simpler but suitable only when branching the complete tree, for example branching trunk to branches/&amp;lt;branch_name&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
svn copy https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk https://sdcc.svn.sourceforge.net/svnroot/sdcc/branches/&amp;lt;branch_name&amp;gt; -m &amp;quot;Creating branch &amp;lt;branch_name&amp;gt;.&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
In this case branches/&amp;lt;branch_name&amp;gt; will include everything that is in trunk: directories sdcc, sdcc-build, sdcc-cf, sdcc-extra, sdcc-web, ...&lt;br /&gt;
&lt;br /&gt;
Usually we want to create branch of just the sdcc directory: branches/&amp;lt;branch_name&amp;gt;/sdcc. This can be accomplished by copying to the local snapshot:&lt;br /&gt;
&lt;br /&gt;
* create branches directory under the same parent as sdcc and cd into it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir branches&lt;br /&gt;
cd branches&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* start the branches checkout:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
svn checkout https://sdcc.svn.sourceforge.net/svnroot/sdcc/branches .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* abort the checkout after some files are checkouted by pressing ^C&lt;br /&gt;
* create the &amp;lt;branch_name&amp;gt; directory and add it to the source control:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir &amp;lt;branch_name&amp;gt;&lt;br /&gt;
svn add &amp;lt;branch_name&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* svn copy the sdcc directory to branches/&amp;lt;branch_name&amp;gt;/sdcc &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
svn copy ../sdcc &amp;lt;branch_name&amp;gt;/sdcc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* commit the branch:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
svn commit &amp;lt;branch_name&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* voila, the branch is created!&lt;br /&gt;
&lt;br /&gt;
[https://sourceforge.net/users/borutr/ Borut]&lt;/div&gt;</summary>
		<author><name>Borutr</name></author>	</entry>

	</feed>