19

I'm merging trunk into my branch to keep it up to date, but the process adds <<<<<<< .working (and other, similar metadata) within the files themselves - I've been getting a large number of tree errors but I've made some extensive changes so it's to be expected (although it seems like the merge is flagging every single folder as a tree conflict)

Is there any way to prevent Tortoise SVN from adding this metadata to the file directly (that messes about with its ability to compile) and/or cleaning a large number of files without having to revert + re-merge?

APPEND: The answers so far are correct however, the problem here is that metadata was remaining after resolving the conflict. Could this just be a bug?

Izzy
  • 1,764
  • 1
  • 17
  • 31

5 Answers5

7

These markers are inserted when tortoise can't resolve merge conflicts automatically, so it marks those as conflicted with information from both files - working copy and repository. These markers will be removed after you resolve conflicts in any way - manually with TortoiseMerge, with menu items "resolve conflicts use mine"/resolve conflicts use theirs". But you have to decide what part will be used in your working copy after update.

Vasilich
  • 83
  • 7
  • I suspected they are in some way unresolved conflicts however I have already resolved them and none appear in the list, which is what is foxing me. – Izzy May 29 '13 at 11:30
  • if you resolved them with TortoiseMerge, have you pressed toolbar button "mark as resolved" after saving it? – Vasilich May 29 '13 at 11:52
  • Yes. To be honest I've just reverted and am going through the merge process again, since something obviously anomalous occurred. – Izzy May 29 '13 at 12:01
5

Those <<<<<<< markers are added by Subversion itself (it isn't a TortoiseSVN feature) but as far as I know not for tree conflicts. You must have regular file conflicts.

As far as I know, TortoiseSVN doesn't have any feature to fully automate conflict resolution. Options I can think of:

  • Choose "Prefer local" or "Prefer repository" every time the "Resolve Conflict" shows up.
  • Choose "Resolve all later" (I believe you only need to do it once) and, once finished merging, use the "Check for modifications" dialogue to select all conflicts and choose a method from the context menu.
Álvaro González
  • 142,137
  • 41
  • 261
  • 360
4

this occurs when we run merge and conflicts comes in same file more than once.

  • 1
    Subversion actually stops a merge if there's a conflict when merging one of multiple revisions. – Izzy May 30 '13 at 16:34
0

Those metadata are written by SVN because of conflicts. You can solve using this command:

svn resolved <directory>
Ernesto Schiavo
  • 1,020
  • 2
  • 12
  • 33
0

If SVN does not support "merge tracking", you might get the same conflicts every time you repeat your merge. Make sure that "merge tracking" is available.

see: How do I use the new SVN merge-tracking?

Mick
  • 954
  • 7
  • 17