compatability options for CVS refugees

Bug #65523 reported by James Troup
2
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Wishlist
Unassigned

Bug Description

I consistently try to use CVS command line options with bzr and often fail. When these options/arguments are not already in use for something else, it might be nice to support them to help CVS refugees like me.

The ones I use a lot are:

 (o) -u option to diff (this would obviously be a no-op in bzr)
 (o) -r <n> -r <n+1> (instead of -r <n>..<n+1> or whatever the correct bzr-ese is)

Tags: cvs
James Troup (elmo)
Changed in bzr:
importance: Undecided → Wishlist
Revision history for this message
John A Meinel (jameinel) wrote :

We could add -u for diff, though I'm not positive of the benefit. I suppose when fingers are hard-wired it could be nice.

-r X -r Y is a lot more difficult to support (I'm not sure about our current parser, but the older parser wouldn't allow you to give the same option twice, I think the new one always picks the last supplied).

Which honestly I use, because I have an alias of "log = log -r -10..-1" which is really nice for just previewing what has changed recently. But I do need to override it with 'bzr log -r -40..-1' sometimes.

It is marked as a wishlist, though something like this might be a great place for a plugin. Which could enable 'cvs compatibility mode' or somesuch.

Changed in bzr:
status: Unconfirmed → Confirmed
Revision history for this message
Aaron Bentley (abentley) wrote : Re: [Bug 65523] Re: compatability options for CVS refugees

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

John A Meinel wrote:
> -r X -r Y is a lot more difficult to support (I'm not sure about our
> current parser, but the older parser wouldn't allow you to give the same
> option twice, I think the new one always picks the last supplied).

optparse supports this natively, so it's just a matter of hooking into
that support, if we choose to do this.

> It is marked as a wishlist, though something like this might be a great
> place for a plugin. Which could enable 'cvs compatibility mode' or
> somesuch.

What's interesting is that such a plugin would just need to replace the
definition for 'revision' in options.py

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFLdTS0F+nu1YWqI0RAmzxAJ9s9BFGIJqLsZ2x5BHI8KWhk1TH2gCfZBKq
I6gfGkqTrpwZXyVxONhP+U0=
=skHF
-----END PGP SIGNATURE-----

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: added: cvs
removed: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.