klenwell information services : DevMercurial

Mercurial (Hg)

return to CategoryDevelopment

Notes and references for the usage of Mercurial in development.

Topics

Branches

Commands

List Files Changed between Two Revisions
ref: stackoverflow.com
# hg status --rev x:y
$ hg status --rev default:dev-branch | grep -i '^M'


Untrack a File
ref: stevelosh.com
# hg rm -Af FILE (stops tracking without deleting file
$ hg rm -Af /home/me/hg/my-project/cake/app/conf/core.php 


Configuration Settings

vim ~/.hgrc

Some Recommended Settings
[paths]
# this can be a path or a url like googlecode
default = https://klenwell.googlecode.com/hg/

[ui]
username=Tom <klenwell@gmail.com>

# Disable automatic vim diff merge
merge=internal:merge

[web]
contact = klenwell@gmail.com
description = a short description
name = project name

# When using the serve option, use this display style
style = gitweb

[extensions]
# Enable the 'glog' graphical log extension
hgext.graphlog=
hgext.convert=

# Enable CVS style variable substitution
hgext.keyword=


References

Mercurial Wiki (selenic.com)