Mercurial: Difference between revisions

Jump to navigation Jump to search
834 bytes added ,  9 April 2018
→‎Mercurial configuration: Add missing color "gray". Minor changes of spelling and whitespace.
(start updating. Specially drop, usage of the mercurial patch system)
(→‎Mercurial configuration: Add missing color "gray". Minor changes of spelling and whitespace.)
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[wikipedia:Mercurial|Mercurial]] (sometimes referred to as {{codeline|hg}}) is
[[wikipedia:Mercurial|Mercurial]] (sometimes referred to as {{codeline|hg}})
the version control tool used by Octave.  This page contains some helpful
is the source code management system currently used to develop
commands to use when interacting with the GNU Octave mercurial repository.
Octave.


== Introduction to mercurial ==
== Introduction to Mercurial ==


An introduction to mercurial is completely outside the scope of this document.
An introduction to Mercurial is completely outside the scope of this document.
There are plenty of available documentation on the topic.  Some recommendations
There are plenty of available documentation on the topic.  Some recommendations
are:
are:


* [http://hginit.com/ Hg Init]
* [http://hginit.com/ Hg Init]
* [https://mercurial.selenic.com/wiki/Tutorial Mercurial tutorial]
* [https://www.mercurial-scm.org/wiki/Tutorial Mercurial tutorial]
* [https://mercurial.selenic.com/wiki/QuickStart Mercurial Quickstart]
* [https://www.mercurial-scm.org/wiki/QuickStart Mercurial quick start]
 
== Contributing to Octave ==
 
The preferred method to contribute to Octave is with Mercurial changesets.
Other forms of contributions (e.g., simple diff patches) are
also acceptable, but they slow down the review process.
 
If you plan on contributing to Octave:
 
* See other [[Contribution guidelines]]
* Always include commit messages in changesets.  Please follow the Octave [[commit message guidelines]]
* Follow the style guides for both [[Octave style guide|Octave]] and [[C++ style guide|C++]] languages.


== Getting the development sources ==
== Getting the development sources ==
Line 31: Line 43:
You can use the following to start your hgrc
You can use the following to start your hgrc


  [ui]
{{File||<pre>
  username = Your Name <your@email>
[ui]
username = Your Name <your@email>
 
[extensions]
color =
histedit =
pager =
rebase =
strip =
 
[pager]
pager = LESS='FSRX' less
attend = help, annotate, cat, diff, export, glog, log, outgoing, incoming
 
[diff]
showfunc = True
 
[color]
mode = terminfo


  [extensions]
## Custom colors
  color =
color.gray = 244
  rebase =
color.orange = 202
  bookmarks =
color.lightyellow = 191
  strip =
color.darkorange = 220
  histedit =
color.brightyellow = 226
  hgext.pager =


  [pager]
status.modified = magenta bold
  pager = LESS='FSRX' less
status.added = green bold
  attend = help, annotate, cat, diff, export, glog, log, qdiff, status, outgoing, incoming
status.removed = red bold
status.deleted = cyan bold
status.unknown = gray bold
status.ignored = gray bold


  [diff]
## Colours for each label
  showfunc = true
log.branch = cyan
log.summary = lightyellow
log.description = lightyellow
log.bookmark = green
log.tag = darkorange
log.graph = blue


  [color]
## Colors for each phase
  status.modified = magenta bold
changeset.secret = blue bold
  status.added = green bold
changeset.draft  = red bold
  status.removed = red bold
changeset.public = orange
  status.deleted = cyan bold
  status.unknown = gray  bold
  status.ignored = gray bold


  [bookmarks]
desc.here = bold blue_background
  track.current = True


  [alias]
[bookmarks]
  log = log --graph
track.current = True


[alias]
glog = log --graph
top = log --graph -l
</pre>}}


== Submitting patches ==
== Submitting patches ==
Line 165: Line 202:
   <code>hg commit </code><br/>
   <code>hg commit </code><br/>
   <code>hg export @ > mid-term-review.changeset </code><br/>
   <code>hg export @ > mid-term-review.changeset </code><br/>
   the file mid-term-review.changeset can then be sent to the [[mailto:octave-maintainers@octave.org mailing list]] or posted
   the file mid-term-review.changeset can then be sent to the [mailto:octave-maintainers@octave.org mailing list] or posted
   to the [[http://savannah.gnu.org/patch/?group=octave patch tracker]]</li>
   to the [https://savannah.gnu.org/patch/?group=octave patch tracker]</li>
   </ol> </li>
   </ol> </li>
</ol>
</ol>
Line 197: Line 234:
==External links==
==External links==


* [http://mercurial.selenic.com/ Official website]
* [https://www.mercurial-scm.org/ Official website]


[[Category:Development]]
[[Category:Development]]

Navigation menu