Reputation: 97
I have few question while implementing the subversion for my project using svnkit library.
1) I checkout a file from repository and made changes locally, before i commit other user checkout the same file and made changes and committed the file. But if i commit now it will throw an error.
So it is possible to update the latest svn changes in my local checkout file without overridden my local changes. i.e. something like update to head we do in eclipse.
[or]
2) It is possible to check whether conflict will occur or not before committing a file. because once conflict occurs it automatically creates duplicate version of the file with local and repository changes.How to avoid this case
Upvotes: 0
Views: 531
Reputation: 6660
So it is possible to update the latest svn changes in my local checkout file without overridden my local changes. i.e. something like update to head we do in eclipse.
This is just what svn update
does. In case there is a conflict (you and the other edited the same part of the file), you will end up with three files in you working copy:
file
file.mine
file.rXXX
file.mine
will contain your own modifications, file.rXXX
the other's modifications, and file
will be an attempt at merging the file, which you should edit before marking the conflict as resolved and committing.
Upvotes: 1