Feature #1149

file size display with Bazaar repositories

Added by Andreas Deininger over 9 years ago. Updated over 8 years ago.

Status:ClosedStart date:2008-04-30
Priority:NormalDue date:
Assignee:-% 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.

bzr_size.patch Magnifier - Patch for file size display with Bazaar (778 Bytes) Andreas Deininger, 2008-05-02 08:35

Associated revisions

Revision 1537
Added by Jean-Philippe Lang over 9 years ago

File size display with Bazaar repositories (#1149).

History

#1 Updated by Jean-Philippe Lang over 9 years ago

No patch attached...

#2 Updated by Andreas Deininger over 9 years ago

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

#3 Updated by Jean-Philippe Lang over 9 years ago

  • Category set to SCM
  • Status changed from New to Closed
  • Target version set to 0.8
  • Resolution set to Fixed

Committed in r1537.
I think bzr cat -r 10 /file/in/repo | wc -c would be really slow with big/lots of files.

#4 Updated by Joe Kelk over 8 years ago

  • Status changed from Closed to Reopened

I'm on 0.8.2 stable and bazaar repositories are showing a question mark for filesizes here, even though it was supposedly fixed in 0.8.0 RC1. I'm going to see if it's fixed in 0.8.3 now but I figured this should be reopened.

#5 Updated by Joe Kelk over 8 years ago

Joe Kelk wrote:

I'm on 0.8.2 stable and bazaar repositories are showing a question mark for filesizes here, even though it was supposedly fixed in 0.8.0 RC1. I'm going to see if it's fixed in 0.8.3 now but I figured this should be reopened.

EDIT: It's still broken on 0.8.3.

#6 Updated by Jean-Philippe Lang over 8 years ago

  • Status changed from Reopened to Closed

It only works for the latest revision of files in your working tree.
If this doesn't work, please read SubmittingBugs and fill a defect report.

Also available in: Atom PDF