Mercurial > public > mercurial-scm > hg-stable
diff hgext/largefiles/lfutil.py @ 16245:a18ad914aa21
largefiles: move calculation of largefiles for updating to utility function
author | Na'Tosha Bard <natosha@unity3d.com> |
---|---|
date | Fri, 09 Mar 2012 16:45:49 +0100 |
parents | 5b0a4383cd5e |
children | d87d9d8a8e03 |
line wrap: on
line diff
--- a/hgext/largefiles/lfutil.py Thu Mar 08 15:59:47 2012 -0600 +++ b/hgext/largefiles/lfutil.py Fri Mar 09 16:45:49 2012 +0100 @@ -457,3 +457,11 @@ lfile = splitstandin(standin) standins.append((lfile, readstandin(repo, lfile))) return standins + +def getlfilestoupdate(oldstandins, newstandins): + changedstandins = set(oldstandins).symmetric_difference(set(newstandins)) + filelist = [] + for f in changedstandins: + if f[0] not in filelist: + filelist.append(f[0]) + return filelist