<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Devel</title><link>https://sourceforge.net/p/codeaster/wiki/Devel/</link><description>Recent changes to Devel</description><atom:link href="https://sourceforge.net/p/codeaster/wiki/Devel/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 25 Aug 2020 07:37:00 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/codeaster/wiki/Devel/feed" rel="self" type="application/rss+xml"/><item><title>Devel modified by codeaster</title><link>https://sourceforge.net/p/codeaster/wiki/Devel/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -149,6 +149,6 @@

 [codeaster/src]: http://hg.code.sf.net/p/codeaster/src
-[configure-and-first-build]: Tutorial#markdown-header-configuration-and-first-build-of-code_aster
+[configure-and-first-build]: Tutorial/#configuration-and-first-build-of-code_aster

 [Mercurial docs]: http://www.selenic.com/mercurial/wiki/Tutorial
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">codeaster</dc:creator><pubDate>Tue, 25 Aug 2020 07:37:00 -0000</pubDate><guid>https://sourceforge.netf7b6add8bb6b7790821fe63f276bc0429cf4f7b4</guid></item><item><title>Devel modified by codeaster</title><link>https://sourceforge.net/p/codeaster/wiki/Devel/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Table of contents:&lt;/p&gt;
&lt;div class="toc"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#developments-in-code_aster"&gt;Developments in code_aster&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="#code_aster-branches"&gt;code_aster branches&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#keeping-your-repository-up-to-date"&gt;Keeping your repository up to date&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#update-your-developments-to-the-last-reference-revision"&gt;Update your developments to the last reference revision&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;h1 id="developments-in-code_aster"&gt;Developments in code_aster&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;This page does not explain how to use Mercurial for your developments.&lt;/em&gt;&lt;br/&gt;
&lt;em&gt;See &lt;a href="http://www.selenic.com/mercurial/wiki/Tutorial" rel="nofollow"&gt;Mercurial docs&lt;/a&gt; for that.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id="code_aster-branches"&gt;code_aster branches&lt;/h2&gt;
&lt;p&gt;The main branches in the reference repository &lt;a href="http://hg.code.sf.net/p/codeaster/src" rel="nofollow"&gt;codeaster/src&lt;/a&gt; are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;default&lt;/code&gt;: the default branch containing all the history of the development version&lt;br/&gt;
  from and to the next &lt;code&gt;testing&lt;/code&gt; state (ex.: 14.1.9).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;v13&lt;/code&gt;: maintenance branch for the version 13, starting from 13.4.0.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Only bugfixes are integrated in the branch &lt;code&gt;v13&lt;/code&gt;. All new features are&lt;br/&gt;
implemented in the &lt;code&gt;default&lt;/code&gt; branch.&lt;/p&gt;
&lt;h2 id="keeping-your-repository-up-to-date"&gt;Keeping your repository up to date&lt;/h2&gt;
&lt;p&gt;We are supposing that you have already a local clone of the code_aster repository&lt;br/&gt;
(see &lt;a class="" href="/p/codeaster/wiki/Tutorial/"&gt;Tutorial&lt;/a&gt;) and that it is ready for compilation&lt;br/&gt;
(see &lt;a href="../Tutorial#markdown-header-configuration-and-first-build-of-code_aster"&gt;section Configuration and first build of code_aster&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;The script &lt;code&gt;install_env&lt;/code&gt; added two interesting &lt;em&gt;revsets aliases&lt;/em&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;reference&lt;/code&gt; or &lt;code&gt;refe&lt;/code&gt;: is the last revision on the reference&lt;br/&gt;
  repository in the current branch. So, that is the last official revision&lt;br/&gt;
  from which every new development must start.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;new&lt;/code&gt;: That is the set of the ancestor revisions of the current one that are unknown&lt;br/&gt;
  on the reference repository (the revisions that make the current development&lt;br/&gt;
  that are not yet integrated).&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To know the last reference revision, type (you need a connection to the &lt;a href="http://hg.code.sf.net/p/codeaster/src" rel="nofollow"&gt;codeaster/src&lt;/a&gt;&lt;br/&gt;
repository):&lt;/p&gt;
&lt;table class="codehilitetable"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="linenos"&gt;&lt;div class="linenodiv"&gt;&lt;pre&gt;1
2&lt;/pre&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;    $ hg pull
    $ hg log --rev reference
&lt;/pre&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

&lt;p&gt;Each time you start a new development and whenever you want to come back to&lt;br/&gt;
the last revision of the reference repository, you must retreive the last changes&lt;br/&gt;
into your local repository and update to the &lt;code&gt;reference&lt;/code&gt; revision:&lt;/p&gt;
&lt;table class="codehilitetable"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="linenos"&gt;&lt;div class="linenodiv"&gt;&lt;pre&gt;1
2&lt;/pre&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;    $ hg pull
    $ hg update reference
&lt;/pre&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;hg update&lt;/code&gt; will keep the current changes in the working directory.&lt;br/&gt;
Use &lt;code&gt;hg update --clean&lt;/code&gt; to discard uncommitted changes (see &lt;code&gt;hg help update&lt;/code&gt;).&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id="update-your-developments-to-the-last-reference-revision"&gt;Update your developments to the last reference revision&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Let's start with a such tree:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;[#19999]&lt;/code&gt; is the &lt;em&gt;current&lt;/em&gt; reference revision&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;[#20526]&lt;/code&gt; and &lt;code&gt;[#20145]&lt;/code&gt; are two developments you are working on&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;table class="codehilitetable"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="linenos"&gt;&lt;div class="linenodiv"&gt;&lt;pre&gt;1
2
3
4
5
6
7
8&lt;/pre&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;        @  1467:10b01de78dcb default: [#20145] another step for a second issue
        |
        o  1466:0e76dc887c63 default: [#20145] first step for a second issue
        |
        | o  1465:1b39f6c1f683 default: [#20526] commit to solve a first issue
        |/
        o  1464:0ab3abbb22dd default: [#19999] this is the last integrated revision!
        |
&lt;/pre&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

&lt;ul&gt;
&lt;li&gt;Get the new revisions from the reference repository and update to the &lt;code&gt;reference&lt;/code&gt; head:&lt;/li&gt;
&lt;/ul&gt;
&lt;table class="codehilitetable"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="linenos"&gt;&lt;div class="linenodiv"&gt;&lt;pre&gt;1
2&lt;/pre&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;        $ hg pull
        $ hg up reference
&lt;/pre&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

&lt;p&gt;The tree becomes:&lt;/p&gt;
&lt;table class="codehilitetable"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="linenos"&gt;&lt;div class="linenodiv"&gt;&lt;pre&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10&lt;/pre&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;        @  1468:12e1efd54f41 default: [#18888] a new official head
        |
        | o  1467:10b01de78dcb default: [#20145] another step for a second issue
        | |
        | o  1466:0e76dc887c63 default: [#20145] first step for a second issue
        |/
        | o  1465:1b39f6c1f683 default: [#20526] commit to solve a first issue
        |/
        o  1464:0ab3abbb22dd default: [#19999] this is the last integrated revision!
        |
&lt;/pre&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

&lt;ul&gt;
&lt;li&gt;Use &lt;code&gt;hg rebase&lt;/code&gt; to &lt;em&gt;move&lt;/em&gt; the revisions on the new head. We move the first revision&lt;br/&gt;
  of each branch, the child revisions follow.&lt;/li&gt;
&lt;/ul&gt;
&lt;table class="codehilitetable"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="linenos"&gt;&lt;div class="linenodiv"&gt;&lt;pre&gt;1
2
3
4&lt;/pre&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;        $ hg rebase -s 1b39f6c1f683 -d refe
        saved backup bundle to ***/.hg/strip-backup/1b39f6c1f683-backup.hg
        $ hg rebase -s 0e76dc887c63 -d refe
        saved backup bundle to ***/.hg/strip-backup/0e76dc887c63-backup.hg
&lt;/pre&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

&lt;p&gt;In case of conflicts, a merge is required manually or using a tool like &lt;code&gt;meld&lt;/code&gt;&lt;br/&gt;
for example.&lt;/p&gt;
&lt;p&gt;The result is:&lt;/p&gt;
&lt;table class="codehilitetable"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="linenos"&gt;&lt;div class="linenodiv"&gt;&lt;pre&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10&lt;/pre&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;        @  1468:db87dd7d8c4e default: [#20145] another step for a second issue
        |
        o  1467:54bbe7c14e0c default: [#20145] first step for a second issue
        |
        | o  1466:adb30e012987 default: [#20526] commit to solve a first issue
        |/
        o  1465:12e1efd54f41 default: [#18888] a new official head
        |
        o  1464:0ab3abbb22dd default: [#19999] this is the last integrated revision!
        |
&lt;/pre&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

&lt;p&gt;We can see that these are new revisions, they have not been &lt;em&gt;moved&lt;/em&gt; but rewritten.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Before sending a pull-request, please rebase your changes on the last &lt;code&gt;reference&lt;/code&gt; revision.&lt;/p&gt;
&lt;/blockquote&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">codeaster</dc:creator><pubDate>Tue, 25 Aug 2020 07:30:51 -0000</pubDate><guid>https://sourceforge.nete4dd9290ef691f7aaba5a37299a09db011712381</guid></item></channel></rss>