changeset 33960:54c21114e41d

obsolete: fix old typo Clean an old typo in successorssets. Differential Revision: https://phab.mercurial-scm.org/D531
author Boris Feld <boris.feld@octobus.net>
date Mon, 03 Jul 2017 03:56:53 +0200
parents c0bbaefc2c5a
children fa187801f4b8
files mercurial/obsutil.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/obsutil.py	Mon Jul 03 03:54:24 2017 +0200
+++ b/mercurial/obsutil.py	Mon Jul 03 03:56:53 2017 +0200
@@ -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)