# HG changeset patch # User Yuya Nishihara # Date 1468156054 -32400 # Node ID d29fbf97cc9f7ad1f054cd1a9c2de2c3c802095d # Parent 47e48931263e3c899d776b8909381ca7a45538df debugextensions: unindent nested if diff -r 47e48931263e -r d29fbf97cc9f mercurial/commands.py --- 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 "")