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