Mercurial > hg-stable
changeset 18356:752f77ef7202
localrepo: store requirements sorted
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 12 Dec 2012 02:38:14 +0100 |
parents | 2330d97e7707 |
children | a4ab37ca887b |
files | mercurial/localrepo.py tests/test-init.t tests/test-lfconvert.t |
diffstat | 3 files changed, 12 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Tue Jan 15 02:59:12 2013 +0100 +++ b/mercurial/localrepo.py Wed Dec 12 02:38:14 2012 +0100 @@ -262,7 +262,7 @@ def _writerequirements(self): reqfile = self.opener("requires", "w") - for r in self.requirements: + for r in sorted(self.requirements): reqfile.write("%s\n" % r) reqfile.close()
--- a/tests/test-init.t Tue Jan 15 02:59:12 2013 +0100 +++ b/tests/test-init.t Wed Dec 12 02:38:14 2012 +0100 @@ -18,10 +18,10 @@ $ checknewrepo local store created 00changelog.i created - revlogv1 + dotencode fncache + revlogv1 store - dotencode $ echo this > local/foo $ hg ci --cwd local -A -m "init" adding foo @@ -47,8 +47,8 @@ $ checknewrepo old3 store created 00changelog.i created + fncache revlogv1 - fncache store test failure @@ -149,10 +149,10 @@ $ checknewrepo local/sub/repo store created 00changelog.i created - revlogv1 + dotencode fncache + revlogv1 store - dotencode prepare test of init of url configured from paths @@ -166,10 +166,10 @@ $ checknewrepo "url from paths" store created 00changelog.i created - revlogv1 + dotencode fncache + revlogv1 store - dotencode verify that clone also expand urls @@ -179,10 +179,10 @@ $ checknewrepo "another paths url" store created 00changelog.i created - revlogv1 + dotencode fncache + revlogv1 store - dotencode clone bookmarks
--- a/tests/test-lfconvert.t Tue Jan 15 02:59:12 2013 +0100 +++ b/tests/test-lfconvert.t Wed Dec 12 02:38:14 2012 +0100 @@ -96,11 +96,11 @@ "lfconvert" adds 'largefiles' to .hg/requires. $ cat .hg/requires + dotencode + fncache largefiles revlogv1 - fncache store - dotencode "lfconvert" includes a newline at the end of the standin files. $ cat .hglf/large .hglf/sub/maybelarge.dat