Mercurial > public > mercurial-scm > hg-stable
diff mercurial/obsutil.py @ 52736:0cf5f9312b33
change-detection: reduce the amount of context used when comparing diff
Including more context yield more false positive when detecting patch
modification.
The impact of this change is mostly seen in evolve's tests.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 01 Feb 2025 13:47:56 +0100 |
parents | 5cc8deb96b48 |
children |
line wrap: on
line diff
--- a/mercurial/obsutil.py Sat Feb 01 13:04:32 2025 +0100 +++ b/mercurial/obsutil.py Sat Feb 01 13:47:56 2025 +0100 @@ -417,7 +417,10 @@ This is a first and basic implementation, with many shortcoming. """ - diffopts = diffutil.diffallopts(leftctx.repo().ui, {b'git': True}) + diffopts = diffutil.diffallopts( + leftctx.repo().ui, + {b'git': True, b'unified': 1}, + ) # Leftctx or right ctx might be filtered, so we need to use the contexts # with an unfiltered repository to safely compute the diff