localrepo: store requirements sorted

This commit is contained in:
Mads Kiilerich 2012-12-12 02:38:14 +01:00
parent ff0cc1a7f9
commit 26b3c84619
3 changed files with 16 additions and 16 deletions

View File

@ -262,7 +262,7 @@ class localrepository(object):
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()

View File

@ -18,10 +18,10 @@ creating 'local'
$ checknewrepo local
store created
00changelog.i created
revlogv1
fncache
store
dotencode
fncache
revlogv1
store
$ echo this > local/foo
$ hg ci --cwd local -A -m "init"
adding foo
@ -47,8 +47,8 @@ creating repo with format.dotencode=false
$ checknewrepo old3
store created
00changelog.i created
revlogv1
fncache
revlogv1
store
test failure
@ -149,10 +149,10 @@ creating 'local/sub/repo'
$ checknewrepo local/sub/repo
store created
00changelog.i created
revlogv1
fncache
store
dotencode
fncache
revlogv1
store
prepare test of init of url configured from paths
@ -166,10 +166,10 @@ init should (for consistency with clone) expand the url
$ checknewrepo "url from paths"
store created
00changelog.i created
revlogv1
fncache
store
dotencode
fncache
revlogv1
store
verify that clone also expand urls
@ -179,10 +179,10 @@ verify that clone also expand urls
$ checknewrepo "another paths url"
store created
00changelog.i created
revlogv1
fncache
store
dotencode
fncache
revlogv1
store
clone bookmarks

View File

@ -96,11 +96,11 @@ Test link+rename largefile codepath
"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