Patchwork [Bug,5555] New: 'ui.formatted=always|yes' causes stray trailing \r on Windows diff

login
register
mail settings
Submitter mercurial-bugs@mercurial-scm.org
Date May 2, 2017, 9:21 p.m.
Message ID <bug-5555-285@https.bz.mercurial-scm.org/>
Download mbox | patch
Permalink /patch/20383/
State Not Applicable
Headers show

Comments

mercurial-bugs@mercurial-scm.org - May 2, 2017, 9:21 p.m.
https://bz.mercurial-scm.org/show_bug.cgi?id=5555

            Bug ID: 5555
           Summary: 'ui.formatted=always|yes' causes stray trailing \r on
                    Windows diff
           Product: Mercurial
           Version: 4.2
          Hardware: PC
                OS: Windows
            Status: UNCONFIRMED
          Severity: bug
          Priority: normal
         Component: Mercurial
          Assignee: bugzilla@mercurial-scm.org
          Reporter: matt_harbison@yahoo.com
                CC: mercurial-devel@mercurial-scm.org

test-diff-color-t fails like so, unless the ui.formatted config is commented
out:

$ ./run-tests.py --local test-diff-color.t

Patch

--- c:/Users/Matt/Projects/hg/tests/test-diff-color.t
+++ c:/Users/Matt/Projects/hg/tests/test-diff-color.t.err
@@ -49,6 +49,7 @@ 
    a
    a
    c
+  \r (esc)

 (check that 'ui.color=yes' match '--color=auto')

@@ -81,6 +82,7 @@ 
    a
    a
    c
+  \r (esc)


(subsequent similar failures omitted)