[Bug 4755] New: diff.noprefix breaks {diffstat}

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Thu Jul 16 15:44:55 CDT 2015


          Priority: normal
            Bug ID: 4755
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: diff.noprefix breaks {diffstat}
          Severity: bug
    Classification: Unclassified
                OS: All
          Reporter: gregory.szorc at gmail.com
          Hardware: All
            Status: UNCONFIRMED
           Version: 3.4
         Component: Mercurial
           Product: Mercurial

diff.noprefix breaks the {diffstat} template keyword, causing all input to
render as "0: +0/-0". The reason is that mercurial.patch.diffstatdata() is
looking for the "a/" prefix in filenames.

It's quite possible you also need diff.git enabled to trigger this issue.

I'm not sure if the proper fix is to teach diffstatdata() to parse diffs
without filename prefixes or whether diff.noprefix should not be honored when
templatekw.showdiffstat() calls into changectx.diff().

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Mercurial-devel mailing list