I have a file that I checked out from SVN and now after few changes I checked it back in. The question I am working on this file all the time. if I check the file in and start editing it locally, Will it affect during the build process?.
TU
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If your build process involves checking out or exporting the code from your Subversion repository into production, having local (uncommitted) modifications to the file you are working on won’t affect the code in the repository.
However, if you continue working on the file as a working copy, you should not commit your changes if the file is itself in a non-working state, or in a state that would cause other components in the repository to fail. Only commit when your code works or won’t negatively affect anything else involved in the build.
When there is a large amount of work to be done on an area of the codebase that will be under development for a while, the more appropriate action is often to create a branch rather than to work on the trunk directly.
Now if your build is done from your local working copy rather than the central repository, your local changes will affect the build.
Update:
You seem to misunderstand how Subversion handles checkout and commit. Unless your repository is setup to lock a checked out file, where others would not be able to commit to that file, the repository does not keep track of what has been checked out. It will not care if you have not committed changes — the build will work from what is current in the repository without regard to any local modifications you have.