Feature #1149
file size display with Bazaar repositories
| Status: | Closed | Start: | 2008-04-30 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | SCM | |||
| Target version: | 0.8 | |||
| Resolution: | Fixed |
Description
Currently, the file size is shown as "?" when browsing a Bazaar repository. The attached patch (partly) fixes that issue.
Please note that this patch is far from ideal since:
a) it does not work if the bazaar branch does not have a working tree
b) it only works for the latest revision
c) wrong file sizes may be displayed if the working tree is not up to date with the bazaar branch
A better solution would be to use something like:
$ bzr cat -r 10 /file/in/repo | wc -c
However that does not work on windows platforms.
As workaround, maybe one could execute 'bzr cat -r 10 /file/in/repo' as via IO.popen and determine the byte count in Ruby then.
Associated revisions
File size display with Bazaar repositories (#1149).
History
2008-05-02 08:35 - Andreas Deininger
- File bzr_size.patch added
Oops, here it comes.
Please note that the shortcoming of bazaar concerning file size display has been addressed meanwhile:
https://bugs.launchpad.net/bzr/+bug/224965