[MERGE][#56299] New option -C/--change for diff and status to show changes in one revision.
Aaron Bentley
aaron.bentley at utoronto.ca
Sat Aug 25 17:40:48 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Lukáš Lalinský wrote:
> On So, 2007-08-25 at 10:35 -0400, Aaron Bentley wrote:
> +def _parse_change_str(revstr):
> + if '..' in revstr:
> + raise errors.RangeInChangeOption()
> + return (revisionspec.RevisionSpec.from_string('before:' + revstr),
> + revisionspec.RevisionSpec.from_string(revstr))
Unfortunately, '..' doesn't always indicate a range. For example, "bzr
diff -r branch:../bzr.dev".
I think you probably need to parse -c as though it was -r and raise an
error if there are two revision specs in the result.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG0FuQ0F+nu1YWqI0RAsctAJ9mjGCQPsGn0Zb+c0UiQpLYgiB/LwCfcVWy
aUNq/PoPVNotGkefECWME/Q=
=egRV
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list