Mercurial > public > mercurial-scm > hg
diff tests/test-basic.t @ 36247:48a6b1a22ccf
templatekw: add {reporoot} keyword
The "%b" in filename format string will be replaced with "{reporoot|basename}".
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 08 Jan 2018 11:11:06 +0900 |
parents | 48fe4f56a3b4 |
children | 159b04de5fb0 |
line wrap: on
line diff
--- a/tests/test-basic.t Sun Jan 07 12:09:33 2018 +0900 +++ b/tests/test-basic.t Mon Jan 08 11:11:06 2018 +0900 @@ -87,6 +87,13 @@ checking files 1 files, 1 changesets, 1 total revisions +Repository root: + + $ hg root + $TESTTMP/t + $ hg log -l1 -T '{reporoot}\n' + $TESTTMP/t + At the end... $ cd ..