Mercurial > hg
changeset 37753:f450a3be62ec
tests: manually print list in test-hook.t
Changes the output a bit, but not in an important way.
Differential Revision: https://phab.mercurial-scm.org/D3362
author | Augie Fackler <augie@google.com> |
---|---|
date | Sat, 14 Apr 2018 00:10:17 -0400 |
parents | 63b7415e37a5 |
children | 9bbb13c0f982 |
files | tests/test-hook.t |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-hook.t Sat Apr 14 00:08:59 2018 -0400 +++ b/tests/test-hook.t Sat Apr 14 00:10:17 2018 -0400 @@ -444,7 +444,7 @@ > ui.note(b'verbose output from hook\n') > > def printtags(ui, repo, **args): - > ui.write(b'%s\n' % sorted(repo.tags())) + > ui.write(b'[%s]\n' % b', '.join(sorted(repo.tags()))) > > class container: > unreachable = 1 @@ -766,7 +766,7 @@ $ echo 'pretxncommit.printtags = python:hooktests.printtags' >> .hg/hgrc $ hg tag -f foo - ['a', 'foo', 'tip'] + [a, foo, tip] post-init hooks must not crash (issue4983) This also creates the `to` repo for the next test block.