gorn.ch

Tobias Ebnöther's personal blog

Resolve subversion conflicts with Araxis Merge

I am a big fan of Araxis Merge and I also use svnmerge.py quite often. Lately I run into a bunch of nasty conflicts that weren't so easy to resolve. I wrote a little script that you can execute in the current directory to open all conflicting files in Araxis.

It opens the file diff with your working state on the left and the subversion state on the right. If you save it saves to the "real" file. You still need to execute svn resolved afterwards.

#!/bin/bash
OPTS="-2"
for FILE in `svn st | grep '^C' | awk '{print $2}'`; do
/usr/local/bin/compare $OPTS "${FILE}.working"  "${FILE}.merge-right"* "${FILE}"
done

You probably need to adjust the path to compare. I specified the full path here since Image Magick has the same command. You can add additional options like -wait to the OPTS variable to resolve one file after another.

PS: I hope someone from Araxis reads this and renews my support which is running out soon :)

 Permalink

Getting ready for the Openair Frauenfeld

Got a new nice popup tent :)

And many more camping stuff

Really really looking forward to see the most awesome lineup ever, including Wu-Tang Clan, Cypress Hill, Jan Delay with Disko No. 1 and many more!

Related Entries:
Openair Zürich
 Permalink

Hardturm Besetzt!

Super Geil! Gestern schonmal gut meinen Geburtstag angefeiert und heute geht's auf jeden Fall weiter.

Super viele Leute. Super gute Stimmung und jede menge Freaks und coole Aktionen. So habe ich auch ein paar Leute gesehen die Throwies gebaut haben ;) Leider sind die Bilder ziemlich schlecht geworden, aber ich will sie euch natürlich nicht vorenthalten.

Yallah! Throwies bauen geht länger als man denkt :) Rund 100 Stück
 Permalink
1-3/3
Powered by Flux CMS