D5964: copies: return True instead of filename as it is expected to return boolean

khanchi97 (Sushil khanchi) phabricator at mercurial-scm.org
Tue Feb 19 01:13:57 EST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG35158796f52f: copies: return True instead of filename as it is expected to return boolean (authored by khanchi97, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5964?vs=14093&id=14142

REVISION DETAIL
  https://phab.mercurial-scm.org/D5964

AFFECTED FILES
  mercurial/copies.py

CHANGE DETAILS

diff --git a/mercurial/copies.py b/mercurial/copies.py
--- a/mercurial/copies.py
+++ b/mercurial/copies.py
@@ -776,7 +776,7 @@
     """
 
     if f1 == f2:
-        return f1 # a match
+        return True # a match
 
     g1, g2 = f1.ancestors(), f2.ancestors()
     try:



To: khanchi97, #hg-reviewers, martinvonz
Cc: mercurial-devel


More information about the Mercurial-devel mailing list