From magnus.ihse.bursie at oracle.com Wed Oct 12 09:57:23 2016 From: magnus.ihse.bursie at oracle.com (Magnus Ihse Bursie) Date: Wed, 12 Oct 2016 11:57:23 +0200 Subject: RFR: CODETOOLS-7901819 hg tstatus does not work well with pager Message-ID: When running hg tstatus using the pager, the separating newlines gets presented in incorrect order (for somewhat unclear reasons). The fix is however trivial, just move the printing of the newline slightly. Bug: https://bugs.openjdk.java.net/browse/CODETOOLS-7901819 Patch inline: diff --git a/trees.py b/trees.py --- a/trees.py +++ b/trees.py @@ -241,9 +241,9 @@ if o[1] in cmdopts: del cmdopts[o[1]] trc = cmd(ui, repo, *args, **cmdopts) + ui.status('\n') rc = trc != None and trc or 0 for subtree in _subtreelist(ui, repo, opts): - ui.status('\n') lr = hg.repository(ui, repo.wjoin(subtree)) trc = _docmd1(cmd, lr.ui, lr, *args, **opts) rc += trc != None and trc or 0 /Magnus