Am 17.11.2013 22:47, schrieb Gavin Lambert:
> On 17/11/2013 23:00, Quoth Dee2000:
>> There's a repository which is many many gigabytes, 99% of which I
>> don't need. What I want to do is get/update only the *.js *.css
>> *.html .doc and *.pdf files. The rest, which are the enormous ones, I
>> want to leave up there and not waste time and disk space getting
>> because I don't need to look at them and I'll never be changing
>> them.
>
> If the files are in different folders, then you can do a shallow
> checkout at the top level and then selectively increase the depth to
> fetch only those subfolders that you actually want.
>
> If they're mixed in the same folder, then you're basically out of luck.
> SVN is designed to operate mainly at the folder level for updates.
Since 1.7 (I think) it is possible to exclude files in the "Checkout"
and the "Update to revision" dialog, not only folders. These stay
excluded when you update again later (just like excluded folders).
Note that if you exclude files, newly created files will nevertheless be
fetched during the next update, so depending on the number of newly
added files in your repository, you might have to continue excluding
files again and again.
> You may need to reorganise your source tree to accommodate what you're
> wanting to do. You'll have to decide whether or not that's worth it. :)
Usually it is, since it makes further checkouts (e. g. of branches)
easier if the stuff not needed by some/most developers is in a separate
folder.
Having .doc and .html files in the same directory sounds like a bad idea
to me (unless you are one of the few folks that indeed provide .doc
files for download on your website), since in my opinion it helps
enormously to separate source code and accompanying documentation (and
also makes deployment of the website easier).
Having large resources not necessarily needed to test the website (like
.pdf downloads or huge images) in yet another directory is also useful
in case you have to checkout some old branches for merging and testing
bugfixes later.
Regards,
Michael
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3068645
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-11-17 23:06:36 CET