Skip to content

Commit

Permalink
shells/fish: cherry-pick upstream fix for SVN performance
Browse files Browse the repository at this point in the history
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
  • Loading branch information
asomers committed Apr 18, 2020
1 parent 4d734cc commit cbf2da9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions shells/fish/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

PORTNAME= fish
PORTVERSION= 3.1.0
PORTREVISION= 1
CATEGORIES= shells
MASTER_SITES= https://github.com/fish-shell/fish-shell/releases/download/${PORTVERSION}/

Expand Down
12 changes: 12 additions & 0 deletions shells/fish/files/patch-share_functions_fish__vcs__prompt.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- share/functions/fish_vcs_prompt.fish.orig 2020-04-18 20:32:19 UTC
+++ share/functions/fish_vcs_prompt.fish
@@ -3,5 +3,8 @@ function fish_vcs_prompt --description "Print the prom
# This is so we don't try svn if git already worked.
fish_git_prompt
or fish_hg_prompt
- or fish_svn_prompt
+ # The svn prompt is disabled by default because it's quite slow on common svn repositories.
+ # To enable it uncomment it.
+ # You can also only use it in specific directories by checking $PWD.
+ # or fish_svn_prompt
end

0 comments on commit cbf2da9

Please sign in to comment.