Skip to content
Snippets Groups Projects
Commit 412a6e74 authored by timeless developer's avatar timeless developer
Browse files

relink/progress: Adding progress for pruning stage

parent f2b25e8e
No related branches found
No related tags found
No related merge requests found
......@@ -90,4 +90,6 @@
return st
targets = []
total = len(candidates)
pos = 0
for fn, st in candidates:
......@@ -93,4 +95,5 @@
for fn, st in candidates:
pos += 1
srcpath = os.path.join(src, fn)
tgt = os.path.join(dst, fn)
ts = linkfilter(srcpath, tgt, st)
......@@ -98,4 +101,5 @@
ui.debug(_('not linkable: %s\n') % fn)
continue
targets.append((fn, ts.st_size))
ui.progress(_('pruning'), pos, fn, _(' files'), total)
......@@ -101,4 +105,5 @@
ui.progress(_('pruning'), None)
ui.status(_('pruned down to %d probably relinkable files\n') % len(targets))
return targets
......
......@@ -15,4 +15,5 @@
collected 5 candidate storage files
not linkable: 00changelog.i
not linkable: 00manifest.i
pruning: data/a.i 3/5 files (60.00%)
not linkable: data/b.i
......@@ -18,4 +19,5 @@
not linkable: data/b.i
pruning: data/dummy.i 5/5 files (100.00%)
pruned down to 2 probably relinkable files
relinking: data/a.i 1/2 files (50.00%)
not linkable: data/dummy.i
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment