[PATCH STABLE] localrepo: make requirements attribute of newly-created repos contain a set
Andrew Pritchard
andrewp at fogcreek.com
Wed Jul 20 17:23:36 CDT 2011
# HG changeset patch
# User Andrew Pritchard <andrewp at fogcreek.com>
# Date 1311200586 14400
# Branch stable
# Node ID 228037b6ce617967dfda1bab306b651777938ed9
# Parent 95ced9f5bf2972bfb1d42fd963cbaf1e6f14df45
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 95ced9f5bf29 -r 228037b6ce61 mercurial/localrepo.py
--- a/mercurial/localrepo.py Tue Jul 19 13:43:53 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:
More information about the Mercurial-devel
mailing list