Can I determine the size of a working copy before checking?

I would like to see if a working copy will fit on my hard drive and does not want to waste time and bandwidth.

So, my question is: is it possible to determine the size of a working copy before registration?

I have access to the repository, but its size does not say anything.

+5
source share
4 answers

A working copy will be slightly larger than twice the corresponding files in the repository, since it stores the original version of each of the subdirectories .svn. (It also stores other admin data, such as properties, but this should not be significant.)

- ( , ), . , svn , :

svn ls -v -R file:///d:/svn/edmund/fs/trunk

2891 edmund                Oct 23  2009 ./
2867 edmund            140 Aug 14  2009 Makefile
2883 Edmund          12869 Oct 15  2009 block.c
2883 Edmund           9817 Oct 15  2009 file.c
2883 Edmund           7572 Oct 15  2009 fs-internal.h
2884 edmund           6845 Oct 16  2009 fs.c
2891 edmund           1407 Oct 23  2009 fs.h
2891 edmund                Oct 23  2009 linux/
2867 edmund            208 Aug 14  2009 linux/Makefile
2891 edmund           6684 Oct 23  2009 linux/main.c
2882 edmund           4822 Oct 15  2009 notes.txt
2891 edmund           7408 Oct 23  2009 operations.c
2891 edmund           3834 Oct 23  2009 special.c
2880 edmund                Oct 01  2009 test/
2869 edmund            695 Aug 16  2009 test/Makefile
2880 edmund          11220 Oct 01  2009 test/operations-test.c
2877 edmund           3826 Aug 20  2009 test/tree-test.c
2883 Edmund          23413 Oct 15  2009 tree.c
2883 Edmund                Oct 15  2009 win/
2883 Edmund          28590 Oct 15  2009 win/main.c

pipe , 12-26 (,).

+3

TortoiseSVN, . . .

+1

- .

pipe ( trunk/project) Subversion:

svn ls -vR file:///path/to/repo/trunk/project | awk '{if ($3 != "") sum+=$3; i++} END {printf "\n%s: %.0f\n%s: %.0f %s","files qty",i,"wc size",sum/1024/1024/1024,"GB"}'

But in the case of a working copy, you must also specify the size of the .svn directory, which also produces a check. In my case, a new working copy puts twice as much .svn. Therefore, for 10 GB of content, I plan 20 GB of storage space for a working copy, plus some for future needs.

+1
source

You cannot know the size before hand. If you know someone who checked it, you can ask them.

0
source

All Articles