プロジェクト

全般

プロフィール

Vote #63137

完了

file size display with Bazaar repositories

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
SCM_3
対象バージョン:
開始日:
2008/04/30
期日:
進捗率:

0%

予定工数:
category_id:
3
version_id:
2
issue_org_id:
1149
author_id:
922
assigned_to_id:
0
comments:
6
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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.


journals

No patch attached...
--------------------------------------------------------------------------------
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
--------------------------------------------------------------------------------
Committed in r1537.
I think @bzr cat -r 10 /file/in/repo | wc -c@ would be really slow with big/lots of files.
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • カテゴリSCM_3 にセット
  • 対象バージョン0.8_2 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0