Reorganization of svn turtle folder structure

I have an SVN repository called "Solution" (contains many projects) created without the default trunk structure, branches, etc. I would like to move this to a recommended structure.

I created a new folder structure on the server, where "Command" is the root containing the above trunk and branches. So, should I move locally to Team / Trunk or copy locally and add repos to new folders? I would like to keep a story in this process, if possible.

I read several SO posts on this topic, but it seems that there are many ways to get this right or wrong, depending on the circumstances.

Also, I'm new to SVN and development in general, so I need GUI instructions, not the command line, sorry I'm not a developer. Doing my best.

Illustration:

(Existing) Solution/ Project folders/ (Proposed) Team/ Trunk/ /Project folders Branches/ 
+4
source share
1 answer

Firstly, you do not need to create a completely new repo to reorganize your projects.

Secondly, if you can, look at the fullness of your solution repository and create and svn add branches, tags, trunk folders. DO NOT CHECK them; you will svn move each other folder (project folders) in trunk , and then do it all in one go.

To illustrate, I created a SampleRepo , checked it, then svn add ed and svn commit dragged several placeholder project folders:

Initial repo folder structure

Then I created the branch tags, tags, and trunk at the root of the repo check, then svn add ed them using TortoiseSVN:

SVN Add Option in TortoiseSVN

Repo check now looks like this:

The repo checkout after adding the branches tags trunk folders

Now I select all the project folders and drag them into the trunk folder, selecting SVN Move versioned () here :

TortoiseSVN's svn move option

The root of the SampleRepo folder now contains only branch tags , tags, and trunk . If you right-click on any space in the SampleRepo folder and select TortoiseSVN -> SVN Check for Changes , you should see something like this

The status of the repo checkout after the svn move

Finally, I right-clicked any spaces in the SampleRepo folder and select TortoiseSVN -> SVN Commit ... , add a commit message and click OK .

Now, if I right-click on any space in the folder SampleRepo -> TortoiseSVN -> SVN Show Log , I will see this

The log of the repo

Done!

NB: The reason I asked for a full repo check is because then you can minimize the number of commits that you will need to make in order to achieve the desired restructuring. You can perform server-side restructuring using the TortoiseSVN Repo Browser, but then you will need to move each folder one at a time.

Additional Information:

+10
source

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


All Articles