Re: --change and multiple changes (Issue #1213)
From: Karl Chen <quarl_at_NOSPAM.quarl.org>
Date: 2005-11-03 04:45:53 CET
To support something like "diff 5 changes before revision 123
svn diff -r 123~5:678~10 foo.txt
Thus the syntax for specifying a revision would be the usual
[N]~[+|-]C
- If N is not specified, defaults to current working version
- The '~' indicates that what follows is a difference in
- '+' means add changes; '-' means subtract changes; omitted
- C specifies the number of changes
Examples:
svn diff -r HEAD~5:HEAD~0 Diff 5 changes ago against HEAD
svn diff -r HEAD~2:HEAD~3 Diff 2 changes ago against 3
svn diff -r 123~1:123 Diff 1 change before 123
svn diff -r 123:123~+1 Diff 1 change after 123
Delimiter alternatives:
- 123-5, 456+10
- 123~-5 or 123~5, 456~+10
- 123~-5, 456~+10
- 123#-5, 456#+10
- 123<<5, 456>>10
I like 123~5 and 123<<5.
Default value alternatives:
- If N is specified but M is not, then M defaults to N[~C]; if
This could be cryptic or error-prone.
- Use '%' or other character to specify "the value of the
svn diff -r %<<5:123 Diff 5 changes before 123
svn diff -r %<<1:123<<5 Diff 1 change before 5 changes
(--change is no longer relevant; it would be extending the
-- Karl 2005-11-02 19:00 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Thu Nov 3 04:49:13 2005 |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.