9front provides mercurial client trough hg command.
The command does not come included in the base installation!
A sizable amount of extra software for 9front is provided trough ports, which is accessible trough mercurial.
The hg command is a python based project, so installing it will install python 2 with it.
Good luck uninstalling it.
check out repo with hg - (9front example)
hg clone https://code.9front.org/hg/werc/
working with mercurial repo
check mercurial status
Diff to current uncommited changes
Diff to changes made one commit ago (extrapolate from here)
hg diff -c -1
committing a change
Before making any commits, make sure you have set or set the editor value for mercurial:
It would seam hg, unlike git/commit, uses capitalized variable. If the editor is not set, commit will fail!
You can set the editor value for your user by putting this line in $home/lib/profile.
hg commit FILE
hg add FILE
create a branch
Create a branch and commit it.
hg branch branch-name
switching between branches
hg update branch-name