Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey guys,

If 2 users are working on the same file, and the first user commits it in the repository. What will happen if the second user also commits to the repository? Will it create a duplicate or something else?

Thanks,
Posted

1 solution

SVN will not allow second user to commit his/her file. It will display message saying file is updated by another user.
So second user should take update, resolve conflicts(if any) and then only this file can be committed to svn.
 
Share this answer
 
Comments
KatsuneShinsengumi 30-Apr-14 9:02am    
What to dyou mean when you say "So second user should take update"?
Tanuj Rastogi 1-May-14 10:15am    
Since first user has already committed his file, so second user's file becomes outdated (as compared to current version in repository). In order to commit your file, update it from svn with latest version.
KatsuneShinsengumi 9-May-14 0:00am    
Thanks,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900