Use single quotes where possible
Remove subversion legacy
Rework diff so that it fetches from remote before performing diff if it is not uptodate
Use single quotes
Simplify expressions