Question

I'm a bit of newcomer to using svn on a mac. I'm using Versions.

I've been getting reports that I've been overwriting other devs work, so I'm hoping someone here can make sure I'm doing things properly.

I committed my work last night, the other team members have been working through the night so the first thing I do today is update my repository.

After doing so I receive various files back, I'll use the css file as an example:

myfile.css.r1593
myfile.css.r1587
myfile.css.mine
myfile.css

I have a few questions.

What do each of these files represent?

How should I go about fixing the conflict?

What is the safest way for me to work with svn to avoid overwriting other peoples work and avoid making unnecessary copies of files outside of the repo?

Was it helpful?

Solution

The myfile.css.rXYWZ represent the myfile.css at XYWZ revision.

The .mine file is your original file.

When the file is in conflict in the original file (myfile.css) some markers are added.

To fix the conflict, usually you need to check the files that are marked with conflict and see the differences inside.

Usually your part is marked <<<<<<< .mine The repository part is marked with >>>>>>> .rXYWZ.

Resolve manually the conflict, remove the mine and rXYWZ lines and then type:

svn resolved myfile.css

and then you can commit your file.

OTHER TIPS

first thing I do today is update my repository

If you didn't get any warning about merge conflicts and started merge-tool, you (I think) have to configure Versions or use more smart tool

What do each of these files represent?

Free files (revisions of myfile.css), needed for resolving confilcts. Oldest revision r1587 - common parent of final files, mine - your file, r1593 - version of your coworker

How should I go about fixing the conflict?

Check conflicted string, tells with authors, find correct4all variation

Please have a look at this alternative.

I have a conflict.

  • Go to the conflicted file on the file system

enter image description here

  • Open "pdf_invoice.php.mine" (or .r4510, or .r4529 if you want to use "theirs") in a text editor.
  • Select all + Copy.
  • Open "pdf_invoice.php".
  • Paste
  • Save it
  • Mark the file as resolved
  • Commit again
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top