Skip to content

Commit b8eb297

Browse files
author
Petre Mierlutiu
committed
use --template instead of -T, the latter was added in mercurial 3.0
1 parent dfcebb2 commit b8eb297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setuptools_scm/hg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def _hg_tagdist_normalize_tagcommit(root, tag, dist, node):
1111
revset = ("(branch(.) and tag('{0}')::. and file('re:^(?!\.hgtags).*$')"
1212
" - tag('{0}'))").format(str(tag))
1313
if tag != '0.0':
14-
commits = do(['hg', 'log', '-r', revset, '-T', '{node|short}'],
14+
commits = do(['hg', 'log', '-r', revset, '--template', '{node|short}'],
1515
root)
1616
else:
1717
commits = True

0 commit comments

Comments
 (0)