Show More
@@ -6,7 +6,7 b'' | |||||
6 | # GNU General Public License version 2 or any later version. |
|
6 | # GNU General Public License version 2 or any later version. | |
7 |
|
7 | |||
8 | from node import hex |
|
8 | from node import hex | |
9 | import patch, util, error |
|
9 | import patch, scmutil, util, error | |
10 | import hbisect |
|
10 | import hbisect | |
11 |
|
11 | |||
12 | # This helper class allows us to handle both: |
|
12 | # This helper class allows us to handle both: | |
@@ -400,7 +400,7 b' def showphaseidx(repo, ctx, templ, **arg' | |||||
400 |
|
400 | |||
401 | def showrev(repo, ctx, templ, **args): |
|
401 | def showrev(repo, ctx, templ, **args): | |
402 | """:rev: Integer. The repository-local changeset revision number.""" |
|
402 | """:rev: Integer. The repository-local changeset revision number.""" | |
403 | return ctx.rev() |
|
403 | return scmutil.intrev(ctx.rev()) | |
404 |
|
404 | |||
405 | def showsubrepos(**args): |
|
405 | def showsubrepos(**args): | |
406 | """:subrepos: List of strings. Updated subrepositories in the changeset.""" |
|
406 | """:subrepos: List of strings. Updated subrepositories in the changeset.""" |
@@ -51,6 +51,12 b' Second branch starting at nullrev:' | |||||
51 | 8 t |
|
51 | 8 t | |
52 | 7 f |
|
52 | 7 f | |
53 |
|
53 | |||
|
54 | Working-directory revision has special identifiers, though they are still | |||
|
55 | experimental: | |||
|
56 | ||||
|
57 | $ hg log -r 'wdir()' -T '{rev}:{node}\n' | |||
|
58 | 2147483647:ffffffffffffffffffffffffffffffffffffffff | |||
|
59 | ||||
54 | Some keywords are invalid for working-directory revision, but they should |
|
60 | Some keywords are invalid for working-directory revision, but they should | |
55 | never cause crash: |
|
61 | never cause crash: | |
56 |
|
62 |
General Comments 0
You need to be logged in to leave comments.
Login now