SVN Diff against changes in the remote repository.

A useful svn wrapper scripts. Get a diff of your local repostitory against the upstream repository changes. I wonder why it is not builtins though like a svn status -u but for dif.

#!/bin/bash

IFS="
"
for line in `svn status -u`;do
    [[ $line != "   "* ]] && continue
    rev=`echo $line|awk '{print $2}'`
    ff=`echo $line|awk '{print $3}'`
    svn diff -r${rev}:HEAD $ff
done
  • Pingback:   svndiff by bigredswitch

  • Sam

    Hi Chmouel

    Not sure if there is some crucial difference, but


    svn diff -r HEAD

    seems to work for me.

    Cheers,
    Sam

    • http://www.chmouel.com/ chmouel

      It’s actually work pretty well thanks for that….