# HG changeset patch # User Martin von Zweigbergk # Date 1413092594 25200 # Node ID 7d754b7acd550062decfff3bf90744f4e3c1e61a # Parent 2d0b60b5abc0bdfaac1f7d11e0001aa215eecbe8 subrepo: use separate instances of empty lists in status We do modify the lists that make up the status in several places, so it seems risky to use the same instance of a list for several different status types. Use a separate empty list for each type instead. diff -r 2d0b60b5abc0 -r 7d754b7acd55 mercurial/subrepo.py --- a/mercurial/subrepo.py Fri Oct 03 09:29:48 2014 -0700 +++ b/mercurial/subrepo.py Sat Oct 11 22:43:14 2014 -0700 @@ -1582,7 +1582,7 @@ elif status == 'D': removed.append(f) - deleted = unknown = ignored = clean = [] + deleted, unknown, ignored, clean = [], [], [], [] return scmutil.status(modified, added, removed, deleted, unknown, ignored, clean)