Mercurial
Log
hg log -u USERNAME
hg log <branch name> -G # -G for graph view
To ignore specific files .hgignore
# .hgignore
dumps\*
tmp\*
Branches
hg log -b
hg branch <Branch name> # current working area as a new branch
Patching
hg diff > local_changes.patch
hg import --no-commit local_changes.patch
Updating
hg up
hg clean
Reverting
hg revert <file>
hg revert --all
Check all subrepos
``` bash hg st -S hg diff -S ```
Hg relative args
``` bash hg st –rev -2 ```
bisect subdivision search of changesets:
hg bisect [-gbsr] [-U] [-c CMD] [REV]
This command helps to find changesets which introduce problems.