Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tortoise SVN: Resolve conflict using 'theirs'. What does it mean?

Can someone please explain the difference between the following two options of Tortoise SVN on conflicted files:

  • Resolve conflict using 'theirs'.
  • Resolve conflict using 'mine'.

On a side note. Why on earth no one has ever reported this confusing use of terminology as a bug?

like image 319
Muhammad Hasan Khan Avatar asked Oct 25 '10 15:10

Muhammad Hasan Khan


People also ask

What does Tortoise SVN resolve do?

You can use the Resolved command for multiple files if you right click on the parent folder and select TortoiseSVN → Resolved... This will bring up a dialog listing all conflicted files in that folder, and you can select which ones to mark as resolved.

How do I resolve conflicts in svn?

To resolve a conflict do one of three things: Merge the conflicted text by hand (by examining and editing the conflict markers within the file). Copy one of the temporary files on top of the working file. Run svn revert FILENAME to throw away all of the local changes.

How does TortoiseMerge resolve conflict?

When you update your working copy you can right-click in the log list and chose how to resolve the conflict: resolve using an editor / TortoiseMerge (or whatever merge tool you configured) resolve using "theirs", i.e. the version in the repository. resolve using "mine", i.e. your version of the file.

What causes svn conflicts?

When you merge your branch back into the trunk, SVN tries to do the same again: It sees that a file was created in your branch, and tries to create it in your trunk in the merge commit, but it already exists! This creates a tree conflict. The way to avoid this, is to do a special merge, a reintegration.


2 Answers

Resolve conflict using 'theirs' means that when you try to check in two files that have conflicting edits, SVN will discard your changes and use the other persons change instead.

Resolve conflict using 'mine' means that you will discard their changes, and use your version of the file instead.

like image 199
Brandon Avatar answered Sep 20 '22 18:09

Brandon


I wanted to add the whole list for further reference:

(e)  edit             - change merged file in an editor (df) diff-full        - show all changes made to merged file (r)  resolved         - accept merged version of file  (dc) display-conflict - show all conflicts (ignoring merged version) (mc) mine-conflict    - accept my version for all conflicts (same) (tc) theirs-conflict  - accept their version for all conflicts (same)  (mf) mine-full        - accept my version of entire file (even non-conflicts) (tf) theirs-full      - accept their version of entire file (same)  (p)  postpone         - mark the conflict to be resolved later (l)  launch           - launch external tool to resolve conflict (s)  show all         - show this list 
like image 22
nerkn Avatar answered Sep 19 '22 18:09

nerkn