klenwell information services : DevMercurial

Wiki source for DevMercurial


Show raw source

=====Mercurial (Hg)=====
return to CategoryDevelopment

Notes and references for the usage of Mercurial in development.

====Topics====
[[MercurialBranches | Branches]]

====Commands====
==List Files Changed between Two Revisions==
ref: [[http://stackoverflow.com/questions/2024510/generating-a-list-of-which-files-changed-between-hg-versions/2024591#2024591 | stackoverflow.com]]
%%# hg status --rev x:y
$ hg status --rev default:dev-branch | grep -i '^M'%%

==Untrack a File==
ref: [[http://stevelosh.com/blog/entry/2009/5/29/what-i-hate-about-mercurial/#hg-rm-is-a-confusing-mess | 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====
""<tt>vim ~/.hgrc</tt>""

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====
[[http://mercurial.selenic.com/wiki/Mercurial | Mercurial Wiki]] (selenic.com)