You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Rob Hubbard <Ro...@celoxica.com> on 2006/10/18 12:52:47 UTC
Minor Feature Suggestion: option for 'backwards' changes
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
Re: Minor Feature Suggestion: option for 'backwards' changes
Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 10/18/06, Rob Hubbard <Ro...@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