--- 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