The use of SVN in Android development

This article uses Eclipse as an example.

1. Download and install TortoiseSVN and Subclicpse, both share a configuration by default


2. Use of Subclicpsehttp://jingyan.baidu.com/article/2c8c281daaeaaa0009252a64.html 3.


About locks: Don't talk about the entire project being set to needs-lock , otherwise it will cause problems such as the project cannot change the sdk version. It is recommended to set res, src and AndroidManifest.xml to needs-lock.
(If the entire project is set to needs-lock, project.properties is not set, it will not affect changing the sdk version, only guess, not tested)
Needs-lock method to set:
TortoiseSVN checks out the project, right-click on src-TortoiseSVN-Properties-New needs-lock, follow this step to lock res and AndroidManifest.xml, and then submit it to the server.
This method of locking is only valid for existing files, and newly added files are invalid.
Set the needs-lock automatically on commit:
TortoiseSVN settings - general settings - subversion configuration file editing, add at the end of the file
[miscellany]
enable-auto-props = yes
[auto-props]
* = svn:needs-lock
At this point, the newly created file, as long as it is submitted, will automatically set the needs-lock. Existing files, submitted after modification, do not set needs-lock.
Note: If the project.properties file is submitted, be sure to delete the needs-lock of the file

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325662526&siteId=291194637