mirror of
https://github.com/facebook/sapling.git
synced 2025-01-07 22:21:40 +03:00
localrepo: store requirements sorted
This commit is contained in:
parent
ff0cc1a7f9
commit
26b3c84619
@ -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()
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user