For subversion we can use svn look: http://svnbook.red-bean.com/en/1.7/svn.ref.svnlook.c.filesize.html