Aliases ignored when shortcuts are used

Bug #438651 reported by Gioele Barabucci
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Wishlist
Unassigned

Bug Description

Aliases to standards commands like "commit" are ignored when the respective shortcuts ("co" in this case) are used.

In my aliases I have

  checkout = checkout --lightweight

When I use "bzr co" the alias for "checkout" is ignored so the --lightweight option is not applied.

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 438651] [NEW] Aliases ignored when shortcuts are used

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

Gioele Barabucci wrote:
> Public bug reported:
>
> Aliases to standards commands like "commit" are ignored when the
> respective shortcuts ("co" in this case) are used.
>
> In my aliases I have
>
> checkout = checkout --lightweight
>
> When I use "bzr co" the alias for "checkout" is ignored so the
> --lightweight option is not applied.
>
> ** Affects: bzr
> Importance: Undecided
> Status: New
>

'co' is just another alias for 'checkout'. Conceptually it is the same
as doing:

co = checkout

in your config.

So really this is 'aliases don't use other aliases'. I'm not really sure
how to respond. It would probably be nice, but I don't see it happening
in the immediate future.

In the meantime, you can just do:

 co = checkout --lightweight

And things should work for you.

John
=:->

 importance wishlist
 status confirmed
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrCHrcACgkQJdeBCYSNAAPoFQCfcpkbtWZFp2tEc4vzJlJ3I2SP
6mMAnAwVt8kNCNhF17BfVzGQ8xsk4e8F
=CiMw
-----END PGP SIGNATURE-----

Changed in bzr:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Aaron Bentley (abentley) wrote :

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

John A Meinel wrote:
> So really this is 'aliases don't use other aliases'. I'm not really sure
> how to respond. It would probably be nice, but I don't see it happening
> in the immediate future.

I actually find it quite useful that I can use an alternative name to
get the default behaviour.

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

iEYEARECAAYFAkrKGf8ACgkQ0F+nu1YWqI1WzgCeLQLJqI9SKmzotLn1Ml3eXzwL
fqoAn0qOPVfgyS1zHnvoYa6/KybqqeZi
=tzDT
-----END PGP SIGNATURE-----

Revision history for this message
Aaron Bentley (abentley) wrote :

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

Aaron Bentley wrote:
> I actually find it quite useful that I can use an alternative name to
> get the default behaviour.

For example, I think that "bzr remove" should be the inverse of "bzr
add", and not delete files, so I have "bzr remove" aliased to "bzr
remove --keep" and not "bzr rm".

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

iEYEARECAAYFAkrKHzIACgkQ0F+nu1YWqI2BHQCeL0zVJ8rlI6eSfdppZsPnf35c
5bkAn0iVapVGgTuEEiMaYx3Ir/+BsAvr
=XhmE
-----END PGP SIGNATURE-----

Jelmer Vernooij (jelmer)
tags: added: 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.