##// END OF EJS Templates
templatekw: add {reporoot} keyword...
Yuya Nishihara -
r36261:48a6b1a2 default
parent child Browse files
Show More
@@ -726,6 +726,11 b' def showpredecessors(repo, ctx, **args):'
726 726 lambda x: {'ctx': repo[x], 'revcache': {}},
727 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 734 @templatekeyword("successorssets")
730 735 def showsuccessorssets(repo, ctx, **args):
731 736 """Returns a string of sets of successors for a changectx. Format used
@@ -87,6 +87,13 b' Verify should succeed:'
87 87 checking files
88 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 97 At the end...
91 98
92 99 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now