[RFC] bzr revert -r X..Y / -c X behavior

John Arbash Meinel john at arbash-meinel.com
Fri Mar 20 17:19:35 GMT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

So at the moment I'm quite happy with "bzr revert" and "bzr revert -r X"
behavior. I was thinking, though, that we keep getting user requests for
how to do "bzr merge . -r X..X-1" and thought that the command might be
well handled by "bzr revert -c X".

Considering that 'bzr revert -r -2' should do the same thing as 'bzr
merge . -r -1..-2'.

I realize it makes the 'bzr revert' command handle 2 different cases.
One being revert to the exact content at X, and the other be revert the
*changes* between X and Y.

Probably the main issue is that we have a shorthand for cherrypicking
merges (-c X) but not for revert cherrypicking (-r X..X-1, or -r
X..before:X). We could possible do it with "bzr merge -C X", rather than
on 'revert'.

Thoughts?

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknD0CcACgkQJdeBCYSNAAOqUgCg1EEq4bzvuTm2r26INlMzdYMp
siQAn1Yqruio7jgsJ9L7o7BLabnLnoV+
=oQ/p
-----END PGP SIGNATURE-----



More information about the bazaar mailing list