Differences between revisions 5 and 6
Revision 5 as of 2007-08-28 16:14:31
Size: 1002
Comment:
Revision 6 as of 2007-08-28 16:50:17
Size: 952
Comment:
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
the ancestors of a specific revision for display in (where and why would you use this?) the ancestors of a specific revision.

Parentrevspec Extension

This extension is not distributed with Mercurial.

Author: Alexis S. L. Carvalho

Download site: http://www.cecm.usp.br/~alexis/cgi-bin/hgwebdir.cgi/parentrevspec/

1. Overview

This extension allows you to use git-style suffixes to refer to the ancestors of a specific revision.

For example, if you can refer to a revision as foo, then:

1. foo^N = Nth parent of foo:

  • foo^0 = foo

  • foo^1 = first parent of foo

  • foo^2 = second parent of foo

  • foo^ = foo^1

2. foo~N = Nth first grandparent of foo

  • foo~0 = foo

  • foo~1 = foo^1 = foo^ = first parent of foo

  • foo~2 = foo^1^1 = foo^^ = first parent of first parent of foo

2. Configuration

Configure your .hgrc to enable the extension by adding the following lines:

[extensions]
parentrevspec = /path/to/parentrevspec.py


CategoryExtension

ParentrevspecExtension (last edited 2013-10-08 01:16:30 by Matthew Gabeler-Lee)