Checkout
Branko ─îibej
committed
on 25 Nov 18
Teach 'svn info' to show human-readable file sizes.

* subversion/svn/cl.h (svn_cl__get_base2_unit_file_size): New prototype.

* subversion/… Show more
Teach 'svn info' to show human-readable file sizes.

* subversion/svn/cl.h (svn_cl__get_base2_unit_file_size): New prototype.

* subversion/svn/filesize.c: New file.

 (svn_cl__get_base2_unit_file_size): Implement. Moved here from list-cmd.c.

* subversion/svn/list-cmd.c: Remove unused includes.

 (get_human_readable_size): Remove. Implementation moved to filesize.c.

 (print_dirent): Use svn_cl__get_base2_unit_file_size().

* subversion/svn/info-cmd.c

 (print_info_baton_t): New member 'human_readable'.

 (print_info): Optionally print human-readable file sizes.

 (svn_cl__info): Handle option --human-readable.

* subversion/svn/svn.c (svn_cl__cmd_table): Add -H to 'svn info'.

Show less