svn diff is a very usefull and used command to getÂ the differences between two revisions or paths. One common use is to get differences on current working copy related with a new feature/change we are working on. This use case typically happens when we are not using a branch for these features/changes and want to share the differences with someone else or, if we are maintaining a set of local customizations to apply that won’t be ever shared with the community.
However, there is a problem with this command: new files won’t be added to generated patch! This happens because we often forget to execute a very simple command prior to ‘svn diff’ – svn add!
svn add pom.xml
svn diff .