Categories
status

Remove an erroneous revision Let’s suppose revision 3…

Remove an erroneous revision

Let’s suppose revision 3 introduced an error, then

hg backout -r 3

will remove the errors introduced in the revision.

Categories
status

Search hg Mercurial log and repository Search for…

Search hg (Mercurial) log and repository.

Search for a file

hg log file.pl

Search the list of tags

hg tags

Search log of a tag

hg log -r ver1
  1. tag is very much like a revision number.

Search a word in the log summary

hg log -k keyword

Search a log history of a file

hg log file.pl

Search a code history of a file

hg annotate file.pl
Categories
status

Search for logs by date range in Mercurial…

Search for logs by date range in Mercurial

hg log –date “2012-07-01 to 2012-7-31”

Categories
status

http stevelosh com blog 2009 08 a guide…

http://stevelosh.com/blog/2009/08/a-guide-to-branching-in-mercurial/

Categories
status

Very nice tutorial about mercurial, the …

Very nice tutorial about mercurial, the version control system
http://hginit.com/index.html

Categories
status

Use hg summary to check the status of my …

Use hg summary to check the status of my files.
Looking for (clean) to make sure the changes are committed and there is nothing to merge.

Example of clean status

> hg summary
parent: 12:267d20bf2b03 tip
 merged rev.tex
branch: default
commit: 20 unknown (clean)
update: (current)

Example when the changed is not committed and there is a merge in the repository.

parent: 8:43cedbe623e7 
 merged rev.tex
branch: default
commit: 1 modified, 20 unknown
update: 2 new changesets, 2 branch heads (merge)