Mercurial > kallithea
changeset 5090:0c58b6dc5512
hg: show code function in diffs
Just like already done for git diffs, show the function containing the
change in the hunk header of a diff, if available:
@@ -19,7 +19,7 @@ int func(void)
instead of
@@ -19,7 +19,7 @@
author | Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> |
---|---|
date | Mon, 04 May 2015 18:47:16 +0200 |
parents | 196c46444d98 |
children | 4539d652ab08 |
files | kallithea/lib/vcs/backends/hg/repository.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/vcs/backends/hg/repository.py Fri Apr 17 12:14:19 2015 +0200 +++ b/kallithea/lib/vcs/backends/hg/repository.py Mon May 04 18:47:16 2015 +0200 @@ -264,6 +264,7 @@ return ''.join(patch.diff(self._repo, rev1, rev2, match=file_filter, opts=diffopts(git=True, + showfunc=True, ignorews=ignore_whitespace, context=context)))