Preface
As the saying goes, minutes must be combined, and minutes must be combined. SVN has a merged database, so there must be a separate database.
I read some articles on the Internet, but they are vague and I have not explained some details.
Next we will continue from the demand perspective.
Export
I spoke about classification by department, but after a long time, I found that some of them are not suitable. I want to use each department project as a separate database.
The first step that needs to be done now is to export the Department 1 Database, as you may have guessed.
Svnadmin dump E: \ repositories \ department 1> F: \ department 1. Dump
If you have any questions about the above command, read the previous article.
Separation
The information I found is that in windows, the type command is used to filter the isolated library. Is to operate the exported file. The specific command is as follows:
Type F: \ department 1. Dump | svndumpfilter include project> F: \ project. Dump
Note: The project is extracted from the department database.
Now there is a problem. I created a library named project. After I imported the filtered file, I found that the root directory of the project still exists, instead of importing files in the project folder to the project library,
How can this problem be solved?
The online documentation is very vague. I will give you an image to illustrate the meaning of this online sentence: Delete the statement about creating the project folder.
Open the project. Dump File in word, and find "project ". When encoding is selected, remember to use UTF-8. Otherwise, Chinese characters may be garbled. As for what to delete, you can find it online. Unfortunately, I deleted the example that was successfully executed during the demo process. The example I just made has not been obtained.
Import
Next, an imported sentence: svnadmin load E: \ repositories \ project <F: \ project. Dump
Because I failed to change the storage file, the result was as follows: Project/project/Project 1, rather than project/Project 1. so I 'd like to explain to you what to delete the stored file...
However, there will always be a solution to this problem. Now that we have reached a library, we can adopt the move method. However, this is troublesome !!! I don't want to write about the move operation. I 'd like to Baidu ~~
After this period of SVN maintenance, I feel that my understanding of SVN is so narrow.
Suggestions
Here, I sincerely want to talk about a solution. I hope that you can use your own example to describe it. For more information aboutVNVersionBenLibraryNoneLossMigrationShiftAndFromDynamicBackupThe number of blogs is exactly the same .. This makes it difficult for me to find a different one.
Articles can be poorly written, but you must have your own things.