changeset 14905:207935cda6dc

localrepo: make requirements attribute of newly-created repos contain a set This is for internal consistency, as this attribute typically contains a set
author Andrew Pritchard <andrewp@fogcreek.com>
date Wed, 20 Jul 2011 18:23:06 -0400
parents ff2d907a5af8
children 7c3c8f37e84f
files mercurial/localrepo.py tests/test-init.t
diffstat 2 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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