Mercurial > hg
changeset 29702:d29fbf97cc9f
debugextensions: unindent nested if
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 10 Jul 2016 22:07:34 +0900 |
parents | 47e48931263e |
children | 3ef9aa7ad1fc |
files | mercurial/commands.py |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Sun Jul 10 22:06:13 2016 +0900 +++ b/mercurial/commands.py Sun Jul 10 22:07:34 2016 +0900 @@ -2413,12 +2413,11 @@ fm.write('name', '%s', extname) if not exttestedwith: fm.plain(_(' (untested!)\n')) + elif exttestedwith == ['internal'] or hgver in exttestedwith: + fm.plain('\n') else: - if exttestedwith == ['internal'] or hgver in exttestedwith: - fm.plain('\n') - else: - lasttestedversion = exttestedwith[-1] - fm.plain(' (%s!)\n' % lasttestedversion) + lasttestedversion = exttestedwith[-1] + fm.plain(' (%s!)\n' % lasttestedversion) fm.condwrite(ui.verbose and extsource, 'source', _(' location: %s\n'), extsource or "")