Sponsors


Blog powered by TypePad

« Ruby Arrays: select(), collect(), and map() | Main | Ruby Snippet: Shortening Long Strings For Display »

December 14, 2006

Resolving Files with TextMate, Subversion, and FileMerge

If you're new or semi-new to TextMate and you're collaborating with someone on the same development project, file change collisions are inevitable.  Textmate has nice support for resolving file conflicts when they show up after updating to the latest SVN depot revision.

Note: This post assumes you are on a Mac :^).

Some Context

Suppose your TextMate directory navigator looks like this after you update to SVN 'head':

Picture_1








At this point, trying to commit info.rhtml back to SVN will fail, showing the following:

Picture_3
















The Procedure

1. Alt-Shift-A on info.rhtml (the file without ".mine", ".r298", or anything else appended to it) and select Resolve Conflicts with FileMerge...

2. The FileMerge utility now appears.  Select the first red arrow (a conflict) to highlight it.

3. Select one of the FileMerge options from the lower-right select box:

Picture_5










4. Repeat the previous step until all conflicts have been assigned to the left, right, or both.

5. BEFORE you close the FileMerge window, press Apple-S.  Now, if you open your file (info.rhtml in this example) in TextMate, you'll see that the "<<<<<<< .mine", "=======", and ">>>>>>> .r298" markup has dissapeared. 

6. At this point, you may notice that all those extra ".mine" and ".r298" files are still there in your TextMate navigator.  To solve this, Alt-Shift-A and select Resolved.

Now, you can merrily check-in to SVN.

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/t/trackback/277049/7165990

Listed below are links to weblogs that reference Resolving Files with TextMate, Subversion, and FileMerge:

Comments

Did I miss something? When did Ben make "the switch"?

Hey, Shep! I moved to the Mac when I left webMethods. I loaded up one of them new fangled Intel Mac Powerbooks and never looked back. Well... actually I do look back, occasionally, to XP on Parallels. Quicken's sad online excuse for time tracking only supports IE.

Post a comment

If you have a TypeKey or TypePad account, please Sign In

My Photo

Feeds