SVN Place an order in one catalog

Here is my dilemma:

I want to check one directory (let it be A) from SVN, but to be able to make svn to A from the parent directory on the computer is issued.

ig I'm in ~ / coolstuff. I want to check from A and put it in ~ / coolstuff, and when I'm in ~ / coolstuff, I want to release svn and update A.

Here's the trick for this in the base scenario: In SVN, the parent directory is Z. I am doing an SVN check of Z in ~ / coolstuff. I then mv ~ / coolstuff / Z / .svn to ~ / coolstuff. Walla, I can do svn, and it works, and it pulls A inside ~ / coolstuff.

My scenario: I am doing the same thing above, except that the problem is not only that Z has not only child A, but also child B. So svn up in ~ / coolstuff will reset A and B. But I do not want B to withdraw.

Here is the solution: I edit the files ~ / coolstuff / .svn / entries and delete the link to B. Now svn does not see B, only A.

The solution above, still the initial one, resets A, when I do the first check, I don't want to do this. It also seems very hack-ish. Is there a better / cleaner way to do this, and hopefully no need to pull out “B” at all?

+6
source share
1 answer

I think this is what you want to do:

svn co --depth empty file://path/to/AB/parent coolstuff cd coolstuff svn up A 

Now you can svn up from inside the cooler to update A without having to retract B automatically.

+9
source

Source: https://habr.com/ru/post/896357/


All Articles