Mercurial: Difference between revisions

365 bytes removed ,  10 June 2020
Put example Mercurial configuration to the bottom.
(→‎Submitting patches: Bitbucket no longer supports Mercurial.)
(Put example Mercurial configuration to the bottom.)
Line 39: Line 39:
  hg clone http://hg.code.sf.net/p/octave/signal octave-signal
  hg clone http://hg.code.sf.net/p/octave/signal octave-signal


== Mercurial configuration ==


You can use the following to start your hgrc
{{File||<pre>
[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
## Custom colors
color.gray = 244
color.orange = 202
color.lightyellow = 191
color.darkorange = 220
color.brightyellow = 226
status.modified = magenta bold
status.added = green bold
status.removed = red bold
status.deleted = cyan bold
status.unknown = gray bold
status.ignored = gray bold
## Colours for each label
log.branch = cyan
log.summary = lightyellow
log.description = lightyellow
log.bookmark = green
log.tag = darkorange
log.graph = blue
## Colors for each phase
changeset.secret = blue bold
changeset.draft  = red bold
changeset.public = orange
desc.here = bold blue_background
[bookmarks]
track.current = True
[alias]
glog = log --graph
top = log --graph -l
</pre>}}


== Submitting patches ==
== Submitting patches ==
Line 198: Line 138:
</ol>
</ol>


== Mercurial Tips for SoC mentors ==
== Example Mercurial configuration ==
 
Place the following file in your home directory, e.g. {{Path|/home/username/.hgrc}}.
 
{{File|.hgrc|<pre>
[ui]
username = Your Name <your@email>
 
[extensions]
color =
histedit =
pager =
rebase =
strip =


Will fill in this section after trying out the above procedure at least once with a student and actually pushing his changes to the main repo.
[pager]
<!---
pager = LESS='FSRX' less
<code>
attend = help, annotate, cat, diff, export, glog, log, outgoing, incoming
hg pull http://student.repo.url
</code>


<code>
[diff]
hg pull http://www.octave.org/hg/octave
showfunc = True
</code>


<code>
[color]
hg up -r @
mode = terminfo
</code>


<code>
## Custom colors
hg merge student_bookmark
color.gray = 244
</code>
color.orange = 202
color.lightyellow = 191
color.darkorange = 220
color.brightyellow = 226


<code>
status.modified = magenta bold
hg log --style=changelog --user student
status.added = green bold
</code>
status.removed = red bold
-->
status.deleted = cyan bold
status.unknown = gray bold
status.ignored = gray bold
 
## Colours for each label
log.branch = cyan
log.summary = lightyellow
log.description = lightyellow
log.bookmark = green
log.tag = darkorange
log.graph = blue
 
## Colors for each phase
changeset.secret = blue bold
changeset.draft  = red bold
changeset.public = orange
 
desc.here = bold blue_background
 
[bookmarks]
track.current = True
 
[alias]
glog = log --graph
top = log --graph -l
</pre>}}


==External links==
==External links==