localrepo: make requirements attribute of newly-created repos contain a set
authorAndrew Pritchard <andrewp@fogcreek.com>
Wed, 20 Jul 2011 18:23:06 -0400
changeset 14905 207935cda6dc
parent 14904 ff2d907a5af8
child 14906 7c3c8f37e84f
localrepo: make requirements attribute of newly-created repos contain a set This is for internal consistency, as this attribute typically contains a set
mercurial/localrepo.py
tests/test-init.t
--- a/mercurial/localrepo.py	Fri Jul 22 16:46:22 2011 -0500
+++ b/mercurial/localrepo.py	Wed Jul 20 18:23:06 2011 -0400
@@ -63,6 +63,7 @@
                     )
                 if self.ui.configbool('format', 'generaldelta', False):
                     requirements.append("generaldelta")
+                requirements = set(requirements)
             else:
                 raise error.RepoError(_("repository %s not found") % path)
         elif create:
--- a/tests/test-init.t	Fri Jul 22 16:46:22 2011 -0500
+++ b/tests/test-init.t	Wed Jul 20 18:23:06 2011 -0400
@@ -19,8 +19,8 @@
   store created
   00changelog.i created
   revlogv1
+  fncache
   store
-  fncache
   dotencode
   $ echo this > local/foo
   $ hg ci --cwd local -A -m "init"
@@ -48,8 +48,8 @@
   store created
   00changelog.i created
   revlogv1
+  fncache
   store
-  fncache
 
 test failure
 
@@ -145,8 +145,8 @@
   store created
   00changelog.i created
   revlogv1
+  fncache
   store
-  fncache
   dotencode
 
 prepare test of init of url configured from paths
@@ -162,8 +162,8 @@
   store created
   00changelog.i created
   revlogv1
+  fncache
   store
-  fncache
   dotencode
 
 verify that clone also expand urls
@@ -175,8 +175,8 @@
   store created
   00changelog.i created
   revlogv1
+  fncache
   store
-  fncache
   dotencode
 
 clone bookmarks