changeset 15312:8d862e7b96d4 stable

largefiles: remove 1.9 compat code
author Eli Carter <eli.carter@tektronix.com>
date Wed, 19 Oct 2011 15:37:03 -0500
parents 2bed4d0578a0
children 3eb1a90ea409
files hgext/largefiles/reposetup.py
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/largefiles/reposetup.py	Wed Oct 19 17:16:25 2011 -0500
+++ b/hgext/largefiles/reposetup.py	Wed Oct 19 15:37:03 2011 -0500
@@ -402,11 +402,7 @@
     def checkrequireslfiles(ui, repo, **kwargs):
         if 'largefiles' not in repo.requirements and lfutil.any_(
                 lfutil.shortname+'/' in f[0] for f in repo.store.datafiles()):
-            # workaround bug in Mercurial 1.9 whereby requirements is
-            # a list on newly-cloned repos
-            repo.requirements = set(repo.requirements)
-
-            repo.requirements |= set(['largefiles'])
+            repo.requirements.add('largefiles')
             repo._writerequirements()
 
     checkrequireslfiles(ui, repo)