Show More
@@ -726,6 +726,11 b' def showpredecessors(repo, ctx, **args):' | |||||
726 | lambda x: {'ctx': repo[x], 'revcache': {}}, |
|
726 | lambda x: {'ctx': repo[x], 'revcache': {}}, | |
727 | lambda x: scmutil.formatchangeid(repo[x])) |
|
727 | lambda x: scmutil.formatchangeid(repo[x])) | |
728 |
|
728 | |||
|
729 | @templatekeyword('reporoot') | |||
|
730 | def showreporoot(repo, **args): | |||
|
731 | """String. The root directory of the current repository.""" | |||
|
732 | return repo.root | |||
|
733 | ||||
729 | @templatekeyword("successorssets") |
|
734 | @templatekeyword("successorssets") | |
730 | def showsuccessorssets(repo, ctx, **args): |
|
735 | def showsuccessorssets(repo, ctx, **args): | |
731 | """Returns a string of sets of successors for a changectx. Format used |
|
736 | """Returns a string of sets of successors for a changectx. Format used |
@@ -87,6 +87,13 b' Verify should succeed:' | |||||
87 | checking files |
|
87 | checking files | |
88 | 1 files, 1 changesets, 1 total revisions |
|
88 | 1 files, 1 changesets, 1 total revisions | |
89 |
|
89 | |||
|
90 | Repository root: | |||
|
91 | ||||
|
92 | $ hg root | |||
|
93 | $TESTTMP/t | |||
|
94 | $ hg log -l1 -T '{reporoot}\n' | |||
|
95 | $TESTTMP/t | |||
|
96 | ||||
90 | At the end... |
|
97 | At the end... | |
91 |
|
98 | |||
92 | $ cd .. |
|
99 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now