##// END OF EJS Templates
relink: ensure deterministic directory walk in collect
Martin Geisler -
r11357:7914628b default
parent child Browse files
Show More
@@ -72,8 +72,9 b' def collect(src, ui):'
72 ui.status(_("tip has %d files, estimated total number of files: %s\n")
72 ui.status(_("tip has %d files, estimated total number of files: %s\n")
73 % (live, total))
73 % (live, total))
74 for dirpath, dirnames, filenames in os.walk(src):
74 for dirpath, dirnames, filenames in os.walk(src):
75 dirnames.sort()
75 relpath = dirpath[len(src) + seplen:]
76 relpath = dirpath[len(src) + seplen:]
76 for filename in filenames:
77 for filename in sorted(filenames):
77 if not filename[-2:] in ('.d', '.i'):
78 if not filename[-2:] in ('.d', '.i'):
78 continue
79 continue
79 st = os.stat(os.path.join(dirpath, filename))
80 st = os.stat(os.path.join(dirpath, filename))
@@ -15,9 +15,9 b' relinking .hg/store'
15 tip has 2 files, estimated total number of files: 3
15 tip has 2 files, estimated total number of files: 3
16 collecting: 00changelog.i 1/3 files (33.33%)
16 collecting: 00changelog.i 1/3 files (33.33%)
17 collecting: 00manifest.i 2/3 files (66.67%)
17 collecting: 00manifest.i 2/3 files (66.67%)
18 collecting: dummy.i 3/3 files (100.00%)
18 collecting: a.i 3/3 files (100.00%)
19 collecting: b.i 4/3 files (133.33%)
19 collecting: b.i 4/3 files (133.33%)
20 collecting: a.i 5/3 files (166.67%)
20 collecting: dummy.i 5/3 files (166.67%)
21 collected 5 candidate storage files
21 collected 5 candidate storage files
22 not linkable: 00changelog.i
22 not linkable: 00changelog.i
23 not linkable: 00manifest.i
23 not linkable: 00manifest.i
General Comments 0
You need to be logged in to leave comments. Login now