changeset 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 f009804e2a43
files contrib/zsh_completion
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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