Hello, I really like cmder but it's really slow in my repo. Each command, or even pressing enter requires like 2 seconds. How can I disable the source control stuff in cmder? I tried deleting checkGit in the profile.ps1 but no luck
edit using mercurial (hg). The process hangs after each command running an hg executable. I assume to do like hg status. It's probably more of a problem with hg being slow, but I'd like to just turn off the source control info to avoid this.
You'll want to look at get_hg_status in vendor/clink.lua. One quick fix might be to have that function just return true all the time, e.g. just comment out the part that calls hg:
function get_hg_status()
-- Commented out to skip slow call to hg
-- for line in io.popen("hg status -0"):lines() do
-- return false
-- end
return true
end
I've done something similar in my own get_svn_status function in that same file -- I updated the svn options to avoid recursing into subdirectories as that is painfully slow on a large repository I work on.
@jeffwitthuhn please test with https://ci.appveyor.com/project/MartiUK/cmder/build/1.0.522-master/artifacts
I still have this problem with the latest version. I tried to comment the get_hg_status() function as suggested previously but this method does not exist in my vendor/clink,lua file, nor any reference to "hg status". Commands are executing at normal (expected) speed, but it takes ages (~10 seconds) to get the prompt back. I don't have that problem in a normal directory (not a mercurial repository).
the answer of @glucas led me to my solution, which was to comment out the hg function as well as the SVN function under it. Thanks!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contribution.
This issue has been automatically closed due to it not having any activity since it was marked as stale. Thank you for your contribution.
Most helpful comment
You'll want to look at get_hg_status in vendor/clink.lua. One quick fix might be to have that function just return true all the time, e.g. just comment out the part that calls hg:
I've done something similar in my own get_svn_status function in that same file -- I updated the svn options to avoid recursing into subdirectories as that is painfully slow on a large repository I work on.