Mercurial > hg-stable
changeset 22524:8c8fe120670f
largefiles: avoid using 'lfiles' variable for two purposes
The variable 'lfiles' is first used for a set of the names of all the
large files. It is then overwritten with a tuple like the ones
returned from status(). To reduce confusion, let's create a separate
variable for the second use.
author | Martin von Zweigbergk <martinvonz@gmail.com> |
---|---|
date | Tue, 16 Sep 2014 22:50:38 -0700 |
parents | 8cd91f481ffd |
children | 764127f58903 |
files | hgext/largefiles/reposetup.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/largefiles/reposetup.py Mon Sep 22 13:05:36 2014 -0700 +++ b/hgext/largefiles/reposetup.py Tue Sep 16 22:50:38 2014 -0700 @@ -224,9 +224,10 @@ normals = [[fn for fn in filelist if not lfutil.isstandin(fn)] for filelist in result] - lfiles = (modified, added, removed, missing, [], [], clean) + lfstatus = (modified, added, removed, missing, [], [], + clean) result = [sorted(list1 + list2) - for (list1, list2) in zip(normals, lfiles)] + for (list1, list2) in zip(normals, lfstatus)] else: def toname(f): if lfutil.isstandin(f):