Giving an example to explain the problem.
I made some changes in source files e.g: in folders:
project/foo/src
project/fun/src
.
.
The diff can be viewed as:
# svn diff -r 2000:2001 <svn url>
Then I made some changes in unit tests for the project, in folders:
project/foo/tst
project/fun/tst
.
.
The diff for these particular changes can be viewed as:
# svn diff -r 2001:2002 <svn url>
Later, I found some mistakes in source code, and made some changes in project/foo/src.
The diff for these particular changes can be viewed as:
# svn diff -r 2002:2003 <svn url>
Now, I need a single svn diff command to view the changes in source code alone (excluding unit test changes).
I could not find a single command to view non-consecutive changes (i.e 2000-2001, and 2002-2003). Is this possible some how (Note: I know with 2 separate diff command it is possible, I am trying to find out whether it is possible with a single command).
Or else, is it possible to give regular expression in svn url in the command.
i.e Something like:
# svn diff -r 2000:2001 <svn url pattern>
//where 'pattern' lists folders that does not contain 'tst' in name.
I got the answer. 🙂
You can create changelist for this.
More details at: http://svnbook.red-bean.com/en/1.5/svn.advanced.changelists.html
So I can create a changelist for source code changes, and another changelist for unit test changes.
There is a drawback, that it can be used only on the working copy.