# HG changeset patch # User Andrew Pritchard # Date 2011-07-20 22:23:06 # Node ID 207935cda6dcfdc3faa56281fa02c542c954f1c5 # Parent ff2d907a5af80be1172785288cc80846ba36b243 localrepo: make requirements attribute of newly-created repos contain a set This is for internal consistency, as this attribute typically contains a set diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -63,6 +63,7 @@ class localrepository(repo.repository): ) if self.ui.configbool('format', 'generaldelta', False): requirements.append("generaldelta") + requirements = set(requirements) else: raise error.RepoError(_("repository %s not found") % path) elif create: diff --git a/tests/test-init.t b/tests/test-init.t --- a/tests/test-init.t +++ b/tests/test-init.t @@ -19,8 +19,8 @@ creating 'local' 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 @@ creating repo with format.dotencode=fals store created 00changelog.i created revlogv1 + fncache store - fncache test failure @@ -145,8 +145,8 @@ creating 'local/sub/repo' store created 00changelog.i created revlogv1 + fncache store - fncache dotencode prepare test of init of url configured from paths @@ -162,8 +162,8 @@ init should (for consistency with clone) store created 00changelog.i created revlogv1 + fncache store - fncache dotencode verify that clone also expand urls @@ -175,8 +175,8 @@ verify that clone also expand urls store created 00changelog.i created revlogv1 + fncache store - fncache dotencode clone bookmarks