# HG changeset patch # User Sushil khanchi # Date 2019-02-14 12:58:27 # Node ID 35158796f52f295dd8e6cab98a44f2862e1d6842 # Parent ebbc4e70ebd135baf61b9f77f3aa143beaa4e0fa copies: return True instead of filename as it is expected to return boolean As the function documentation says this function should True if we hit a match and False otherwise. And I see that we are not using that returned filename anywhere. Differential Revision: https://phab.mercurial-scm.org/D5964 diff --git a/mercurial/copies.py b/mercurial/copies.py --- a/mercurial/copies.py +++ b/mercurial/copies.py @@ -776,7 +776,7 @@ def _related(f1, f2): """ if f1 == f2: - return f1 # a match + return True # a match g1, g2 = f1.ancestors(), f2.ancestors() try: