largefiles: remove 1.9 compat code stable
authorEli Carter <eli.carter@tektronix.com>
Wed, 19 Oct 2011 15:37:03 -0500
branchstable
changeset 15312 8d862e7b96d4
parent 15311 2bed4d0578a0
child 15313 3eb1a90ea409
largefiles: remove 1.9 compat code
hgext/largefiles/reposetup.py
--- 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)