Show More
@@ -90,7 +90,10 b' def prune(candidates, src, dst, ui):' | |||||
90 | return st |
|
90 | return st | |
91 |
|
91 | |||
92 | targets = [] |
|
92 | targets = [] | |
|
93 | total = len(candidates) | |||
|
94 | pos = 0 | |||
93 | for fn, st in candidates: |
|
95 | for fn, st in candidates: | |
|
96 | pos += 1 | |||
94 | srcpath = os.path.join(src, fn) |
|
97 | srcpath = os.path.join(src, fn) | |
95 | tgt = os.path.join(dst, fn) |
|
98 | tgt = os.path.join(dst, fn) | |
96 | ts = linkfilter(srcpath, tgt, st) |
|
99 | ts = linkfilter(srcpath, tgt, st) | |
@@ -98,7 +101,9 b' def prune(candidates, src, dst, ui):' | |||||
98 | ui.debug(_('not linkable: %s\n') % fn) |
|
101 | ui.debug(_('not linkable: %s\n') % fn) | |
99 | continue |
|
102 | continue | |
100 | targets.append((fn, ts.st_size)) |
|
103 | targets.append((fn, ts.st_size)) | |
|
104 | ui.progress(_('pruning'), pos, fn, _(' files'), total) | |||
101 |
|
105 | |||
|
106 | ui.progress(_('pruning'), None) | |||
102 | ui.status(_('pruned down to %d probably relinkable files\n') % len(targets)) |
|
107 | ui.status(_('pruned down to %d probably relinkable files\n') % len(targets)) | |
103 | return targets |
|
108 | return targets | |
104 |
|
109 |
@@ -15,7 +15,9 b' relinking .hg/store' | |||||
15 | collected 5 candidate storage files |
|
15 | collected 5 candidate storage files | |
16 | not linkable: 00changelog.i |
|
16 | not linkable: 00changelog.i | |
17 | not linkable: 00manifest.i |
|
17 | not linkable: 00manifest.i | |
|
18 | pruning: data/a.i 3/5 files (60.00%) | |||
18 | not linkable: data/b.i |
|
19 | not linkable: data/b.i | |
|
20 | pruning: data/dummy.i 5/5 files (100.00%) | |||
19 | pruned down to 2 probably relinkable files |
|
21 | pruned down to 2 probably relinkable files | |
20 | relinking: data/a.i 1/2 files (50.00%) |
|
22 | relinking: data/a.i 1/2 files (50.00%) | |
21 | not linkable: data/dummy.i |
|
23 | not linkable: data/dummy.i |
General Comments 0
You need to be logged in to leave comments.
Login now