Admun's Tech Journey

thoughts, ideas, projects, and discoveries on technologies

  • Main
  • Tag Cloud
  • Archives

08

Feb

svn + meld...

Posted by Admun  Tags: svn, tips
The easiest way to setup code diff on command-line I can found.

I modify it a bit so it works on MacOS X.

First, you need to install meld from homebrew.

Then create a shell script "svn-diff-meld" in ~/bin:

#!/bin/sh
# SVN Diff Wrapper for Meld
# KOG 2008-02

# This line is only need if you use it on MacOS, assuming meld installed by homebrew
export PYTHONPATH=/usr/local/lib/python2.7/site-packages

left="$6"
right="$7"

meld "$left" "$right"


add alais to do svn diff w/ meld:

alias svn-diff='svn diff --diff-cmd=/Users/me/bin/svn-diff-meld'
Leave a comment

About Me

admun My passion has always been on software development, and I know it since I wrote my first program on an Apple II. I worked on cellular wireless system in the past (C/C++) and now focus on web application (LAMP, PHP, MySQL, CakePHP, Symfony, jQuery, Google AppEngine/python).

Tags

abit android apache app engine audio bandwidth benchmark bing blogroll bluetooth boinc bookmark botnet bt cakephp cdma cellphone chinese chrome clouds coding crash crawler date dns drm dsl fedora friendster g1 gaim gdesklets gmail google grid h323 hardware html ie6 instant messaging internet javascript jquery language lifestreaming linux liunx meetup ming motorola msi mysql nas nat networking nokia ntp nucleus opinion optimization os p2p palm parrot php power reblog redhat regex rss sdk se search security shell skype social network spam stats string svn syntax sysadmin t-mobile teksavvy telecom thinkpad time tips tuning tv twitter unix voip web web app web2.0 webos wordpress

Archives

  • Full archive
  • May, 2013
  • Feb, 2013
  • May, 2012
  • Aug, 2011

Search

Powered by LMNucleus CMS v3.66 | Copyright Edmond Hui
This page takes 0.056 sec/26 queries to process | NP_BadBehavior blocked 334 spams for the past 7 days
Theme Design by short funny jokes | Ported to Nucleus CMS by BABOCHTA
[Valid XHTML 1.0 Strict]