Mercurial > public > mercurial-scm > hg
diff hgext/largefiles/reposetup.py @ 22919:1982bdb7e2cc
largefiles: access status fields by name rather than index
author | Martin von Zweigbergk <martinvonz@gmail.com> |
---|---|
date | Fri, 03 Oct 2014 22:10:08 -0700 |
parents | c95db3208a33 |
children | 244dbb646ab7 |
line wrap: on
line diff
--- a/hgext/largefiles/reposetup.py Fri Oct 03 10:05:54 2014 -0700 +++ b/hgext/largefiles/reposetup.py Fri Oct 03 22:10:08 2014 -0700 @@ -161,8 +161,8 @@ # files from lfdirstate unsure, s = lfdirstate.status(match, [], False, listclean, False) - (modified, added, removed, missing, _unknown, _ignored, - clean) = s + (modified, added, removed, clean) = (s.modified, s.added, + s.removed, s.clean) if parentworking: for lfile in unsure: standin = lfutil.standin(lfile) @@ -222,7 +222,7 @@ normals = [[fn for fn in filelist if not lfutil.isstandin(fn)] for filelist in result] - lfstatus = (modified, added, removed, missing, [], [], + lfstatus = (modified, added, removed, s.deleted, [], [], clean) result = [sorted(list1 + list2) for (list1, list2) in zip(normals, lfstatus)] @@ -298,8 +298,7 @@ dirtymatch = match_.always(self.root, self.getcwd()) unsure, s = lfdirstate.status(dirtymatch, [], False, False, False) - modified, added, removed = s[:3] - modifiedfiles = unsure + modified + added + removed + modifiedfiles = unsure + s.modified + s.added + s.removed lfiles = lfutil.listlfiles(self) # this only loops through largefiles that exist (not # removed/renamed)