Patchwork D531: obsolete: fix old typo

login
register
mail settings
Submitter phabricator
Date Aug. 28, 2017, 2:40 p.m.
Message ID <0732496790ee8086427309c3adfb2834@localhost.localdomain>
Download mbox | patch
Permalink /patch/23401/
State Not Applicable
Headers show

Comments

phabricator - Aug. 28, 2017, 2:40 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG54c21114e41d: obsolete: fix old typo (authored by lothiraldan).

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D531?vs=1335&id=1354#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D531?vs=1335&id=1354

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

AFFECTED FILES
  mercurial/obsutil.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/obsutil.py b/mercurial/obsutil.py
--- a/mercurial/obsutil.py
+++ b/mercurial/obsutil.py
@@ -562,9 +562,9 @@ 
                 # remove duplicated and subset
                 seen = []
                 final = []
-                candidate = sorted((s for s in succssets if s),
-                                   key=len, reverse=True)
-                for cand in candidate:
+                candidates = sorted((s for s in succssets if s),
+                                    key=len, reverse=True)
+                for cand in candidates:
                     for seensuccs in seen:
                         if cand.canmerge(seensuccs):
                             seensuccs.markers.update(cand.markers)