# HG changeset patch # User Andrew Pritchard # Date 1311200586 14400 # 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 -r ff2d907a5af8 -r 207935cda6dc mercurial/localrepo.py --- 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: diff -r ff2d907a5af8 -r 207935cda6dc tests/test-init.t --- 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