Patchwork D6276: copies: clarify mutually exclusive cases in _chain() with a s/if/elif/

login
register
mail settings
Submitter phabricator
Date May 2, 2019, 2:14 a.m.
Message ID <fd6f98646ad352efd8aac2d4701b5929@localhost.localdomain>
Download mbox | patch
Permalink /patch/39916/
State Not Applicable
Headers show

Comments

phabricator - May 2, 2019, 2:14 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG5a3979529740: copies: clarify mutually exclusive cases in _chain() with a s/if/elif/ (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6276?vs=14971&id=14983

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

AFFECTED FILES
  mercurial/copies.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/copies.py b/mercurial/copies.py
--- a/mercurial/copies.py
+++ b/mercurial/copies.py
@@ -134,7 +134,7 @@ 
             if t[v] != k:
                 # file wasn't renamed back to itself (i.e. case 4, not 3)
                 t[k] = t[v]
-        if v in src:
+        elif v in src:
             # file is a copy of an existing file, i.e. case 6.
             t[k] = v