[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Minor Feature Suggestion: option for 'backwards' changes

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-10-18 16:43:42 CEST

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).


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

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.