Mercurial > public > mercurial-scm > hg
diff hgext/largefiles/reposetup.py @ 18726:431b246cfb12 stable
largefiles: missing largefiles should not be committed as removed
Largefiles can easily become missing - for example if it simply isn't available
or the download fail. It might even be convenient to be able to work that way
in some cases.
But commiting missing largefiles as if they had been 'hg remove'd is plain wrong.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 28 Feb 2013 13:45:18 +0100 |
parents | e6db64abfa87 |
children | c2d079387b2c |
line wrap: on
line diff
--- a/hgext/largefiles/reposetup.py Thu Feb 28 13:45:18 2013 +0100 +++ b/hgext/largefiles/reposetup.py Thu Feb 28 13:45:18 2013 +0100 @@ -299,9 +299,9 @@ lfdirstate = lfutil.openlfdirstate(ui, self) dirtymatch = match_.always(self.root, self.getcwd()) s = lfdirstate.status(dirtymatch, [], False, False, False) - modifiedfiles = [] - for i in s: - modifiedfiles.extend(i) + (unsure, modified, added, removed, _missing, _unknown, + _ignored, _clean) = s + modifiedfiles = unsure + modified + added + removed lfiles = lfutil.listlfiles(self) # this only loops through largefiles that exist (not # removed/renamed)