This PR is prints a progress bar for operations where a per-file rate and progress is not possible.
Affected operations
Commit: Adding files during a commit involves computing hashes. There's no straightforward way to get the progress of a hashing operation for a single file.
Lock: Same as commit (lock is an 'add' operation).
Unlock: Involves copying a file in place of its symlink. The annex unlock command does not expose any kind of progress information.
Remove content: Involves checking if content is available on the server and then removing the local data.
When any of these operations is being performed, a progress bar is printed which displays the progress of the overall operation and the filecount. See attached image for a demonstration.
Internally, in order to create the progress, before each operation, some precalculation is performed to figure out the number of files that will be affected. This overhead is small and I think is acceptable in order to have a progress indicator.
This PR is prints a progress bar for operations where a per-file rate and progress is not possible.
Affected operations
When any of these operations is being performed, a progress bar is printed which displays the progress of the overall operation and the filecount. See attached image for a demonstration.
Internally, in order to create the progress, before each operation, some precalculation is performed to figure out the number of files that will be affected. This overhead is small and I think is acceptable in order to have a progress indicator.
Closes #173.