Merge conflicting files in svn
by
Kuiyu Chang
—
last modified
Aug 25, 2008 04:42 PM
- If conflict detected after "svn update"
- affected file e.g.
affectedfile, will have conflict markers>>>>>>>inserted inline - 3 special files, in addition to
affectedfilewill be createdaffectedfile.mine- Your local working copy before
svn update
- Your local working copy before
affectedfile.r{oldrevision}- Base version before you modified your local working copy
affectedfile.r{latestrevision}- Latest version received from SVN repository
- affected file e.g.
- To resolve conflict, do one of the following:
- Edit
affectedfilemanually, noting the conflict markers>>>>>>>>>>and referencing the 3 special files, or - If you local copy is simply out-of-date, copy one of the 3 special files over to
affectedfile, and/or delete out-of-date ones amongst the 3.
- Edit
- Tell svn that you have resolved the conflict:
svn resolved affectedfile
- Commit your changes:
svn commit

