D6276: copies: clarify mutually exclusive cases in _chain() with a s/if/elif/
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Sun Apr 28 03:01:11 EDT 2019
martinvonz updated this revision to Diff 14950.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D6276?vs=14848&id=14950
REVISION DETAIL
https://phab.mercurial-scm.org/D6276
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
@@ -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
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list