Resolving Conflicts

What to do when two people have made changes to the same project.

http://ariejan.net/2007/07/04/how-to-resolve-subversion-conflicts/

  • Scrap your local changes
    svn revert MYFILE
    svn update MYFILE
  • Keep your changes and scrap the other person's
    An ls command in the directory will show 4 files related to the one in conflict:

    • MYFILE – the original with markers
    • MYFILE.mine – your version
    • MYFILE.r5 – the original your worked with
    • MYFILE.r6 – the most update version from your colleague

    Copy your updated version over the original and tell svn you have resolved the conflicts:

    cp MYFILE.mine MYFILE
    svn resolved MYFILE
  • Merge both versions to a new version
    Manually edit MYFILE. Remove the markers and add whatever you need to add. Then mark the file as resolved:

    svn resolved MYFILE

After resolving the file with any changes, it's recommended that you test those changes first and then commit the new version.

Recent Updates

  • 6 months 3 weeks ago
    1.27.2 update
  • 7 months 5 days ago
    Drupal 10/11 config
  • 7 months 6 days ago
  • PHP
    7 months 6 days ago
    PHP 8.3.11 and AlmaLinux
  • 7 months 6 days ago
    New version of Pound