You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_vcs/hg: add a helper function to detect Mercurial repository
This helper ascends to the parent directories of PWD one by one, tests
if the directory contains .hg, or the path eventually hits /.
Using loops instead recursions saved a lot of time, 0.16s on recursions
and 0.01s on loops, when $PWD is 127 directories deep.
0 commit comments