-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
svnversion
should not be executed by default
#6681
Comments
Blergh. Yeah, it would be lovely if svn had a thing that can just display the branch, which is why the git prompt is so much faster (well, that and git just being faster than svn and hg in general). I see we do |
|
Hummm... so what part of that output would be of interest in a prompt? I'm probably too used to git et al, so I'd be expecting a branch. Is that useful for svn? Or would we use the revision? Or just an indication that you are in an svn repo? |
svn doesn't have a concept of "branch". You're branch is just part of the URL, and that's too long for the prompt. I don't think the revision would be useful, either. |
So what should this show? Is there a useful thing to show other than the full file information (which we've ascertained is too slow)? |
Probably not. In this case I don't think there's anything that's really better than nothing. (For git directories, though, I am liking the branch name). |
It's a shame, but I just commented it in fish_vcs_prompt now. That gives it a fighting chance to be discovered. |
Thanks for the quick fix! |
This is apparently quite slow on large svn repos (like 40 seconds slow), and we don't have a good thing to display other than the full file information. So we'll have to disable it for now. Fixes #6681. [ci skip]
Cherry-picked to 3.1.1 as c37a425. |
Upstream bug #6681 causes fish to run _very_ slowly inside of large Subversion repositories. The bug will be fixed in release 3.1.1. But it's worthwhile to cherry-pick the fix since all FreeBSD developers use large Subversion repositories. fish-shell/fish-shell#6681 git-svn-id: svn+ssh://svn.freebsd.org/ports/head@532045 35697150-7ecd-e111-bb59-0022644237b5
Upstream bug #6681 causes fish to run _very_ slowly inside of large Subversion repositories. The bug will be fixed in release 3.1.1. But it's worthwhile to cherry-pick the fix since all FreeBSD developers use large Subversion repositories. fish-shell/fish-shell#6681
Upstream bug #6681 causes fish to run _very_ slowly inside of large Subversion repositories. The bug will be fixed in release 3.1.1. But it's worthwhile to cherry-pick the fix since all FreeBSD developers use large Subversion repositories. fish-shell/fish-shell#6681 git-svn-id: svn+ssh://svn.freebsd.org/ports/head@532045 35697150-7ecd-e111-bb59-0022644237b5
Upstream bug #6681 causes fish to run _very_ slowly inside of large Subversion repositories. The bug will be fixed in release 3.1.1. But it's worthwhile to cherry-pick the fix since all FreeBSD developers use large Subversion repositories. fish-shell/fish-shell#6681
Fish 3.1.0 "helpfully" runs
svnversion
andsvn status
in order to change the prompt, whenever it detects that the pwd is part of a subversion working copy. That feature is probably handy when working in small repositories. But in a large repository, those commands take far too much time, especially so if the pwd lies on a remote file system. For example, on my system I have /usr/home mounted over NFS. In my FreeBSD source tree,svnversion
andsvn status
take a combined 42 seconds to run. And fish runs them after every single command. That makes the shell entirely unusable.I notice that fish runs
git branch
in git repositories. That's fine;git branch
is fast. But I believe that no command that traverses the entire tree should be run by default, just to change the prompt.The text was updated successfully, but these errors were encountered: