Naming conventions
- Tags
- Official version of Rel-x. x.x
- Branches
- Rb-x before the release. x.x
- New features Try-xxx
- Fix BUG Bug-xxxx
- Trunk
Precautions for use
Responsible and cautious to submit your own code (first updated and then submitted)
The principle of SVN update is to be updated and submitted at any time. When a small function is completed, it can be submitted carefully after compiling and testing itself.
If there is a conflict in the submission process, you need to contact the previous developer, two people to resolve the conflict together, after resolving the conflict, two people need to test together to ensure that after the conflict is resolved, the program does not affect other features.
If an update is generated during the commit process, it is also necessary to recompile and complete some of your own required tests before committing.
Keep the Atomic commit
The interval of each submission is as short as possible to one hours, two hours of development work is advisable. If you change the UI interface, you can submit it once for each modification or design of the UI interface. In the development of the function module, you can complete a small details of the function of the test, submitted once, in the modification of the bug, each modified a bug and confirmed that the bug was modified, also submitted once. We advocate multiple submissions, and we can add more insurance to the code.
Do not submit auto-generated files
Visual Studio generates a lot of automatic files during the build process, such as. suo, such as configuration files, Debug,release,obj, and other compiled files, as well as some other automatic generation, with the compiled code-independent files, these files should not be checked in at the time of submission, if accidentally checked in, You need to delete from the repository using the Delete command. This can use the SVN filtering function, set the Ignore lists inside the settings.
Do not submit code that cannot be compiled
Before committing the code, you must first confirm that you are able to compile locally. If you use a third-party class library in your code, take into account that some members of the project team may not have the appropriate third-party class libraries installed or are not in the GAC (for the. Net Framework), and the project manager needs to take this into account when preparing the project work area. Ensure that the development team members are able to compile in a unified environment after the code is checked out.
Do not submit code that you do not understand
After the code is submitted to SVN, your code will be shared by the project's members. If you do not understand the submission of code, you do not understand, others can not understand, if in the future problems will become the project quality of the hidden danger. So before you introduce any third-party code, make sure you have a clear understanding of the code.
Announce your work plan ahead of time
Before you begin to make changes to a feature, talk to the team members about their own plans, so that everyone can understand your thoughts and understand the changes you will make to the software, so as to minimize any conflicts that may arise during the development process and improve the efficiency of development. At the same time you can find yourself in the communication with the members of the shortcomings of the previous design, improve your design.
Use clear labeling of submitted information
A) indicates an increased function
m) indicates that changes have been made to some features
D) indicates that the file has been deleted, or some features have been cropped, deleted, and masked.
f) indicates that a specific bug has been fixed
Source control when the project management is a very important link, and found that testing is really important, there must be a dedicated tester.
SVN Management Specification