--- a/mercurial/copies.py Mon Feb 11 19:41:37 2019 +0300 +++ b/mercurial/copies.py Thu Feb 14 18:28:27 2019 +0530 @@ -776,7 +776,7 @@ """ if f1 == f2: - return f1 # a match + return True # a match g1, g2 = f1.ancestors(), f2.ancestors() try: