Mercurial > hg
diff contrib/zsh_completion @ 18421:e8982483f9dc
zsh_completion: add descriptive branch names to head revisions
author | Johannes Schlatow <johannes@schlatow.name> |
---|---|
date | Thu, 17 Jan 2013 01:06:00 +0100 |
parents | c2792fe15025 |
children | 4f1e70ef5a79 |
line wrap: on
line diff
--- a/contrib/zsh_completion Thu Jan 17 00:54:49 2013 +0100 +++ b/contrib/zsh_completion Thu Jan 17 01:06:00 2013 +0100 @@ -207,9 +207,9 @@ typeset -a heads local myrev - heads=(${(f)"$(_hg_cmd heads --template '{rev}\\n')"}) + heads=(${(f)"$(_hg_cmd heads --template '{rev}:{branch}\\n')"}) # exclude own revision - myrev=$(_hg_cmd log -r . --template '{rev}\\n') + myrev=$(_hg_cmd log -r . --template '{rev}:{branch}\\n') heads=(${heads:#$myrev}) (( $#heads )) && _describe -t heads 'heads' heads