In the process of developing with SVN, I use SVN diff to see the difference between the content of this commit and the repository before each commit, but SVN diff defaults to print out the differences between the two codes, in order to be able to do a good code comparison in. subversion/ Config to modify the SVN diff Execution command, as follows:
#!/bin/sh# Configure your favorite diff program here. Diff= "/etc/alternatives/vimdiff" # Subversion provides the paths we need as the sixth and seventh # parameters. left=${6}right=${7}# Call the diff command (change the following line to make sense for# your merge program). $DIFF $RIGHT $LEFT # Return An errorcode of 0 if no differences were detected, 1 if some were.# any other errorcode would be treated as Fatal.
Later, each time you perform SVN diff, you will perform the above steps, which is very convenient for code checking. Because SVN diff is a comparison of all the changed files in the current directory, if there are too many files and exits in the middle, you can use: Diffoff (Exit all: diffoff!) to end the comparison.
vimdiff| | SVN diff