<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Svn_merging</title><link>https://sourceforge.net/p/pencil-code/wiki/Svn_merging/</link><description>Recent changes to Svn_merging</description><atom:link href="https://sourceforge.net/p/pencil-code/wiki/Svn_merging/feed" rel="self"/><language>en</language><lastBuildDate>Sun, 22 Mar 2015 20:27:06 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pencil-code/wiki/Svn_merging/feed" rel="self" type="application/rss+xml"/><item><title>Svn_merging modified by Anonymous</title><link>https://sourceforge.net/p/pencil-code/wiki/Svn_merging/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;If you work on a temporary branch, you should periodically merge in changes from trunk. &lt;/p&gt;
&lt;h1 id="the-procedure"&gt;The procedure&lt;/h1&gt;
&lt;p&gt;0. Have a look at the documentation, skipping anything that doesn't refer to subversion &amp;gt;= 1.5 and going to a depth where the `svn mergeinfo' command is discussed. &lt;/p&gt;
&lt;p&gt;1. Make sure that you have a SVN 1.5 client. &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Stop doing &lt;em&gt;anything&lt;/em&gt; related to merging if you don't. If a 1.4 client gets anywhere near the merging procedure, strange things will happen. &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;2. Delete your existing working directory for that branch and check out the branch from scratch with that SVN 1.5 client. Yes, you have to. &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;(But you want to use a separate check-out (i.e. a directory different from your working directory) for merging anyway.) &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;3. In that checked-out version of the branch, use &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;svn revert -R . svn update &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;to make sure you have a clean copy of the current state of the branch. &lt;/p&gt;
&lt;p&gt;4. Run &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;svn mergeinfo --show-revs eligible &lt;a href="https://bla.bla/trunk" rel="nofollow"&gt;https://bla.bla/trunk&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;to see which revisions can be merged. &lt;/p&gt;
&lt;p&gt;5. Run &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;svn merge &lt;a href="https://bla.bla/trunk" rel="nofollow"&gt;https://bla.bla/trunk&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;to merge in the changes. &lt;/p&gt;
&lt;p&gt;Up to this point, you have not done anything to the repository, so just try out items 0. to 5. &lt;/p&gt;
&lt;p&gt;6. Now (successfully run the test suite and then) commit the changes: &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;svn commit -m 'Merged revs. 12345,12347-12351,12353-12354 from &lt;a href="https://bla.bla/trunk" rel="nofollow"&gt;https://bla.bla/trunk&lt;/a&gt;'&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The list of merged revisions is the one that `svn mergeinfo' gave you before. &lt;/p&gt;
&lt;p&gt;Repeat 3.-6. whenever you want to merge again (and I suggest to merge about every 10-15 commits on trunk). &lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;PS: to check out the anelastic branch, say &lt;/p&gt;
&lt;p&gt;svn co &lt;a href="https://pencil-code.googlecode.com/svn/branches/anelastic-branch" rel="nofollow"&gt;https://pencil-code.googlecode.com/svn/branches/anelastic-branch&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;PPS: to merge the latest changes from the main trunk into the anelastic branch, say &lt;/p&gt;
&lt;p&gt;svn merge &lt;a href="https://pencil-code.googlecode.com/svn/trunk" rel="nofollow"&gt;https://pencil-code.googlecode.com/svn/trunk/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;PPPS: to go back to the main trunk, use &lt;/p&gt;
&lt;p&gt;svn merge --reintegrate &lt;a href="https://pencil-code.googlecode.com/svn/branches/anelastic-branch" rel="nofollow"&gt;https://pencil-code.googlecode.com/svn/branches/anelastic-branch&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sun, 22 Mar 2015 20:27:06 -0000</pubDate><guid>https://sourceforge.netfa2701365c9f82bc7ad549abc2ac9d41204f2c43</guid></item></channel></rss>