Mercurial > public > mercurial-scm > hg
diff mercurial/cmdutil.py @ 35430:058c725925e3 stable
diff: disable diff.noprefix option for diffstat (issue5759)
We could use patch.diffhunks() instead of patch.diff() to get filenames
without parsing patch content, but that isn't always possible because we
sometimes feed raw patch data to patch.diffstat().
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 17 Dec 2017 18:43:05 +0900 |
parents | 691524f0bbf6 |
children | 786289423e97 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Sun Dec 17 18:28:15 2017 +0900 +++ b/mercurial/cmdutil.py Sun Dec 17 18:43:05 2017 +0900 @@ -1514,7 +1514,7 @@ match.uipath(matchroot), uirelroot)) if stat: - diffopts = diffopts.copy(context=0) + diffopts = diffopts.copy(context=0, noprefix=False) width = 80 if not ui.plain(): width = ui.termwidth()