# HG changeset patch # User Ludovic Chabant # Date 1444114302 25200 # Node ID 5168645017dd82a245441f460e61a2c7d19ba3bc # Parent a290dc47e534def98a4c3a127afb57b7558cb6f2 Check for `.hg` directory instead of `.hg/store`. This fixes problems with repositories shared with the `share` extension. diff -r a290dc47e534 -r 5168645017dd plugin/lawrencium.vim --- a/plugin/lawrencium.vim Mon Oct 05 22:56:31 2015 -0700 +++ b/plugin/lawrencium.vim Mon Oct 05 23:51:42 2015 -0700 @@ -134,7 +134,7 @@ let l:path = s:stripslash(a:path) let l:previous_path = "" while l:path != l:previous_path - if isdirectory(l:path . '/.hg/store') + if isdirectory(l:path . '/.hg') return s:normalizepath(simplify(fnamemodify(l:path, ':p'))) endif let l:previous_path = l:path