Defect #999
closedFile size is shown as "?" when browsing an Hg repository
0%
Description
File size is shown as "?" when browsing an Hg repository. See http://dev.keltia.net/repositories/show/calife for an example.
Files
Updated by Jean-Philippe Lang over 16 years ago
Actually it's not a bug, there's no way to get the size of the files that are under control (hg locate
only gives the file names).
If you know a way to do it, please let me know.
Updated by Thomas Lecavelier over 16 years ago
Just to precise JP point: a way without having to keep up to date the whole hg repository somewhere ;)
Updated by Ollivier Robert over 16 years ago
What about using "hg locate -f" to get the full paths and File::Stat.size on each one?
Updated by Jean-Philippe Lang over 16 years ago
File::Stat.size won't give the file size at a given revision.
Updated by Jean-Philippe Lang over 16 years ago
- Status changed from New to Closed
- Resolution set to Fixed
Fix committed in r1333.
Files size will be displayed using File::Stat.size unless you're browsing a specific revision.
Updated by Ollivier Robert over 16 years ago
- File redmine-hg.png redmine-hg.png added
- Status changed from Closed to Reopened
It seems that some changes since the closing of the ticket have reintroduced the problem.
I can not give you access to that particular project/repository though. The weird thing is that for the repository I opened the ticket for, it still shows the sizes but not in another one created afterwards.
See the attached image for an example.
Updated by Pierre Paysant-Le Roux over 16 years ago
Hi Olivier,
can you give us the differences between the working reporitory and the not one ? Are the two repositories tracked by the same instance of Redmine ? See SubmittingBugs.
For the moment, I can't reproduce the bug you described.
Note, that Redmine can discover the size (and display correct values) of a file of a Mercurial repository only if the working directory of that repository is up to date. If it's not the case, Redmine will display wrong file sizes or no size at all if the file doesn't exists in the working directory.
Updated by Thomas Lecavelier over 16 years ago
- Status changed from Reopened to Closed
No activity on that ticket for long. Reopen if needed.