On 10/18/06, Rob Hubbard <Rob.Hubbard@celoxica.com> wrote:
> Hello,
>
> I was very glad to see the "-c" / "--change" option added for "diff" / "merge" in SVN 1.4. That's very convenient.
>
> Could we also have a 'reversed' version of that? Where "-c N" is short for "-r N-1:N", perhaps "--unchange N" could be short for "-r N:N-1". That would be useful, for example, for undoing a revision: "svn merge --unchange 1000" to 'unmerge' the changes in revision 1000.
>
> Obviously, having a single-letter option would also be helpful, but I'm not sure which letters are both suitable and still available. So, it could have been "-u" and "--unchange", except that "diff" now uses "-u".
>
> Alternatively, perhaps something like "-b" and "--backwards", where the 'from' and 'to' revision numbers are swapped, might be more flexible. Then "-bc N" or "--backwards --change N" could be used to express a 'backwards change', and more generally "-br N:M" would be the same as "-r M:N".
>
> The "--backwards" option could be available on other svn subcommands, e.g. "svn log -b".
svn diff -c-1000 should do what you want (i.e. just prefix the number
with a - sign, to indicate negation).
-garrett
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 18 16:44:38 2006