zshrc: Improve robustness of the bzr backend in vcs_info()
authorFrank Terbeck <ft@grml.org>
Fri, 29 Aug 2008 22:04:27 +0000 (00:04 +0200)
committerFrank Terbeck <ft@grml.org>
Fri, 29 Aug 2008 22:04:27 +0000 (00:04 +0200)
commitc52121b18d77d83717059a6196994e911a000f56
tree3aee6e9b6bc4aae585044e8de5948f61fbaf687e
parente89137e535aae3806887fbcc3c0539dfb3f0ee27
zshrc: Improve robustness of the bzr backend in vcs_info()

I just played a little with bzr; calling 'bzr' itself in the prompt is
painfully slow. And we do it *twice* for the base directory and the
branchname/revision-number.

I don't know enough about bzr, to change this.
Personally, I would replace the branch-root, by the base directory, that
VCS_INFO_detect_by_dir().

The branch name *could* be replaced by ${bzrbase:t}, but since it is
retrieved from the same command as the revision-number, so that will not
save us a call to 'bzr'...

Hints on this one are highly appreciated. Like this, the bzr backend
is just too slow to use (for me on my laptop at 1.5GHz).
etc/zsh/zshrc