[PATCH] fixing an issue with zsh completion that occurs with long branch or tag names
Johannes Schlatow
johannes at schlatow.name
Thu Jan 17 01:02:07 UTC 2013
# HG changeset patch
# User Johannes Schlatow <johannes at schlatow.name>
# Date 1358384150 -3600
# Node ID 75f74f803081bc10e4d21102c9882038fd9ed434
# Parent ec4fc4474af7dcedd182c4f9153884f4e852e089
zsh_completion: fix issue with overlong branch/tag names
diff -r ec4fc4474af7 -r 75f74f803081 contrib/zsh_completion
--- a/contrib/zsh_completion Thu Jan 17 01:06:00 2013 +0100
+++ b/contrib/zsh_completion Thu Jan 17 01:55:50 2013 +0100
@@ -174,7 +174,7 @@
_hg_cmd tags | while read tag
do
- tags+=(${tag/ # [0-9]#:*})
+ tags+=(${tag/ #[0-9]#:*})
done
(( $#tags )) && _describe -t tags 'tags' tags
}
@@ -198,7 +198,7 @@
_hg_cmd branches | while read branch
do
- branches+=(${branch/ # [0-9]#:*})
+ branches+=(${branch/ #[0-9]#:*})
done
(( $#branches )) && _describe -t branches 'branches' branches
}
More information about the Mercurial-devel
mailing list