On Wed, 27 Dec 2017 22:58:10 +0000, Daniel Shahaf <d...@daniel.shahaf.name> wrote:
>Branko ?ibej wrote on Wed, 27 Dec 2017 12:41 +0100: >> You can only check out directories. Files in the same repository, >> however, can be linked as externals. > >The alternative to "checking out a file" is to checkout the directory at >--depth=empty and then pull just the one file. The externals definition >syntax however makes no provision for specifying depth at the time of >checkout of the parent working copy (I assume it can be effected later). Well, I have now come to the conclusion that I have to re-do the migration of the CVS repository where this is a problem (virtual CVS modules are only used for the PC repo and then only for a number of Windows projects). And before cvs2svn is done I will manually create a couple of CommonXX "projects" by copying a subset of the RCS files needed into new top level directories, or possibly into subdirectories of the Common module. Then it should be possible to use these as the externals source in the projects that need them. So, I assume I can define an external target in a project as Common and pointing it to Common/XX and another external as Lib and pointing that to Common/YY? Or do I have to put them into the root of the repository (single dir)? This would duplicate the files in the repository (I have now counted through all of them and it turns out they are 12 or possibly 15 in all and they could be divided into two dirs. Both the source dirs hold something like 40-50 files, which I don't want to clutter the projects with but having one or two extra unneeded file in one or two projects does not hurt much... Since I want to get rid of the already imported pc repository on the server (VisualSVN) so I can repeat the conversion and import of the same but with slightly tweaked contents, what is the best way to do it? Notice that I don't want to version this "change", I want to completely erase the existing repo "pc" and start over. >> You really should take time to read the book, since this the first time >> you're using Subversion. Most of your questions are answered in detail >> there. > >That's good advice. Well, I *have* read parts of the book, but it is 458 pages.... And asking here directs me to further detailed reading. ;) -- Bo Berglund Developer in Sweden