[PATCH 2 of 2] bash_completion: allow remove to complete normal files
Kevin Bullock
kbullock+mercurial at ringworld.org
Thu Mar 14 17:08:15 CDT 2013
On 14 Mar 2013, at 4:42 PM, Bryan O'Sullivan wrote:
> # HG changeset patch
> # User Bryan O'Sullivan <bryano at fb.com>
> # Date 1363297271 25200
> # Node ID 9fac83b980b22c7a296e96026d67f32ba88c150b
> # Parent 3e6874c851bebe2ca4b3e010a67291f5b654f256
> bash_completion: allow remove to complete normal files
>
> Previously, we only completed files that had been manually deleted. That
> behaviour made no sense.
>
> diff --git a/contrib/bash_completion b/contrib/bash_completion
> --- a/contrib/bash_completion
> +++ b/contrib/bash_completion
> @@ -255,7 +255,7 @@ shopt -s extglob
> _hg_status "mar"
> ;;
> remove)
> - _hg_status "d"
> + _hg_status "nmd"
What's the 'n' supposed to do? _hg_status() already passes '-n' to 'hg status'...
Don't we want to be able to remove 'madc' here?
pacem in terris / мир / शान्ति / سَلاَم / 平和
Kevin R. Bullock
More information about the Mercurial-devel
mailing list