convert svn-whatchanged to a function to keep consistency