# HG changeset patch # User Boris Feld # Date 2017-07-03 01:56:53 # Node ID 54c21114e41d9e1676fbe1fe69c487a0a48ba3e9 # Parent c0bbaefc2c5a29c0d6253ab8c8fde3f3e1a756b5 obsolete: fix old typo Clean an old typo in successorssets. Differential Revision: https://phab.mercurial-scm.org/D531 diff --git a/mercurial/obsutil.py b/mercurial/obsutil.py --- a/mercurial/obsutil.py +++ b/mercurial/obsutil.py @@ -562,9 +562,9 @@ def successorssets(repo, initialnode, cl # 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)