RFR: CODETOOLS-7901819 hg tstatus does not work well with pager
Magnus Ihse Bursie
magnus.ihse.bursie at oracle.com
Wed Oct 12 09:57:23 UTC 2016
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
More information about the hg-tools-dev
mailing list