# HG changeset patch # User Mads Kiilerich # Date 1533503783 -7200 # Node ID b6b3c6dc49aa4cedf88591a5c30b3fbcb163117b # Parent eca8f0c071623b0c260d40f9e6a85f31d5d67413 hg: don't use custom diff arguments when generating diffstats for rss feed With Mercurial 4.7, it is no longer possible to pass arguments like `git=True` to `ctx.diff()`. This will change the reported data slightly, but the difference isn't important. Also, the code should be refactored to do something similar to what we do in other places. diff -r eca8f0c07162 -r b6b3c6dc49aa kallithea/lib/vcs/backends/hg/changeset.py --- a/kallithea/lib/vcs/backends/hg/changeset.py Sun Aug 05 23:16:10 2018 +0200 +++ b/kallithea/lib/vcs/backends/hg/changeset.py Sun Aug 05 23:16:23 2018 +0200 @@ -214,10 +214,9 @@ if not branch or branch == cs.branch: return cs - def diff(self, ignore_whitespace=True, context=3): - return ''.join(self._ctx.diff(git=True, - ignore_whitespace=ignore_whitespace, - context=context)) + def diff(self): + # Only used for feed diffstat + return ''.join(self._ctx.diff()) def _fix_path(self, path): """