1,860
edits
(→Footnotes: Add section.) |
|||
Line 40: | Line 40: | ||
== Mercurial Tips for SoC students == | == Mercurial Tips for SoC students == | ||
This section is meant to provide tips for | This section is meant to provide tips for [[Summer of Code]] students working on new Octave features. | ||
Students should publish their work as it progresses in a public repository | Students should publish their work as it progresses in a public repository. In this section we use for example <code>public.server.org/octave</code>. | ||
code | |||
=== Using bookmarks === | |||
[https://www.mercurial-scm.org/wiki/Bookmarks Bookmarks] are useful for identifying a series of commits. They are a "lightweight" solution to [https://www.mercurial-scm.org/wiki/NamedBranches named branches], which are not automatically updated for example. To create a bookmark <code>my-gsoc</code> use | |||
<syntaxhighlight lang="bash"> | |||
< | hg clone https://www.octave.org/hg/octave </code> | ||
hg bookmark my-gsoc | |||
</syntaxhighlight> | |||
To make the bookmark visible in the public repository use | |||
</ | <syntaxhighlight lang="bash"> | ||
hg push --bookmark ssh://student@public.server.org/octave | |||
</syntaxhighlight> | |||
=== Staying up-to-date with the main | === Staying up-to-date with the main repository === | ||
As the students development proceeds, | As the students development proceeds, | ||
the savannah repository gets updated, too. | the savannah repository gets updated, too. | ||
Line 83: | Line 82: | ||
=== Preparing for code reviews === | === Preparing for code reviews === | ||
At the time of the mid-term or final review (or whenever the mentor requires it) students should prepare their code | At the time of the mid-term or final review (or whenever the mentor requires it) students should prepare their code | ||
for review and possibly inclusion into the main development branch. To this end students should: | for review and possibly inclusion into the main development branch. To this end students should: |