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

Minor Feature Suggestion: option for 'backwards' changes

From: Rob Hubbard <Rob.Hubbard_at_celoxica.com>
Date: 2006-10-18 14:52:47 CEST

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

Thanks,
Rob.

_____________________________________________________________________
This message has been checked for all known viruses by the MessageLabs Virus Scanning Service, on behalf of Celoxica Ltd.

This email and any files transmitted with it are confidential and
may be legally privileged. It is intended solely for the use of the
individual or entity to whom it is addressed. If you have received
this in error, please contact the sender and delete the material
immediately. Whilst this email has been swept for viruses, you
should carry out your own virus check before opening any
attachment. Celoxica Ltd accepts no liability for any loss or
damage which may be caused by software viruses or interception
or interruption of this email.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 18 14:54:05 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.