[bobthefish] One more hg speedup.

Send along the directory where we already found the .hg to throw hg a bone.
This commit is contained in:
Justin Hileman 2014-11-23 14:41:29 -08:00 committed by Bruno Pinto
parent e17a6871b4
commit 2a2532b752

View File

@ -108,7 +108,7 @@ function __bobthefish_hg_project_dir -d 'Print the current hg project base direc
set d (pwd)
while not [ $d = / ]
if [ -e $d/.hg ]
command hg root ^/dev/null
command hg root --cwd "$d" ^/dev/null
return
end
set d (dirname $d)