Mercurial > hg
comparison hgext/parentrevspec.py @ 9213:ee0af2f28794
parentrevspec: change list to a literal block
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Thu, 23 Jul 2009 00:24:34 +0200 |
parents | 1933220e0284 |
children | 1746da638d95 |
comparison
equal
deleted
inserted
replaced
9212:dfc1d5da98f0 | 9213:ee0af2f28794 |
---|---|
8 '''interpret suffixes to refer to ancestor revisions | 8 '''interpret suffixes to refer to ancestor revisions |
9 | 9 |
10 This extension allows you to use git-style suffixes to refer to the ancestors | 10 This extension allows you to use git-style suffixes to refer to the ancestors |
11 of a specific revision. | 11 of a specific revision. |
12 | 12 |
13 For example, if you can refer to a revision as "foo", then: | 13 For example, if you can refer to a revision as "foo", then:: |
14 | 14 |
15 - foo^N = Nth parent of foo | 15 foo^N = Nth parent of foo |
16 foo^0 = foo | 16 foo^0 = foo |
17 foo^1 = first parent of foo | 17 foo^1 = first parent of foo |
18 foo^2 = second parent of foo | 18 foo^2 = second parent of foo |
19 foo^ = foo^1 | 19 foo^ = foo^1 |
20 | 20 |
21 - foo~N = Nth first grandparent of foo | 21 foo~N = Nth first grandparent of foo |
22 foo~0 = foo | 22 foo~0 = foo |
23 foo~1 = foo^1 = foo^ = first parent of foo | 23 foo~1 = foo^1 = foo^ = first parent of foo |
24 foo~2 = foo^1^1 = foo^^ = first parent of first parent of foo | 24 foo~2 = foo^1^1 = foo^^ = first parent of first parent of foo |
25 ''' | 25 ''' |
26 from mercurial import error | 26 from mercurial import error |