zsh_completion: add descriptive branch names to head revisions
authorJohannes Schlatow <johannes@schlatow.name>
Thu, 17 Jan 2013 01:06:00 +0100
changeset 18421 e8982483f9dc
parent 18420 c2792fe15025
child 18422 f009804e2a43
zsh_completion: add descriptive branch names to head revisions
contrib/zsh_completion
--- 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