# HG changeset patch # User Siddharth Agarwal # Date 2016-01-02 11:02:57 # Node ID 95dc67f10239e659b47798c6bd137ec0ecc51075 # Parent 198d291e9ffad20abae5e59be7e2f799487a3450 _checkunknownfiles: turn 'conflicts' into a set We'll check for membership in this set in an upcoming patch. diff --git a/mercurial/merge.py b/mercurial/merge.py --- a/mercurial/merge.py +++ b/mercurial/merge.py @@ -570,15 +570,15 @@ def _checkunknownfiles(repo, wctx, mctx, files. For some actions, the result is to abort; for others, it is to choose a different action. """ - conflicts = [] + conflicts = set() if not force: for f, (m, args, msg) in actions.iteritems(): if m in ('c', 'dc'): if _checkunknownfile(repo, wctx, mctx, f): - conflicts.append(f) + conflicts.add(f) elif m == 'dg': if _checkunknownfile(repo, wctx, mctx, f, args[0]): - conflicts.append(f) + conflicts.add(f) for f in sorted(conflicts): repo.ui.warn(_("%s: untracked file differs\n") % f)