diff --git a/themes/bobthefish/fish_prompt.fish b/themes/bobthefish/fish_prompt.fish
index 23c9f0de5166cadedb8df746625358c412c005a2..85bbaf1bf26a210891312787a538f640a46b8bd9 100644
--- a/themes/bobthefish/fish_prompt.fish
+++ b/themes/bobthefish/fish_prompt.fish
@@ -72,7 +72,7 @@ function __bobthefish_in_git -d 'Check whether pwd is inside a git repo'
 end
 
 function __bobthefish_in_hg -d 'Check whether pwd is inside a hg repo'
-  command hg stat > /dev/null 2>&1
+  command hg root > /dev/null 2>&1
 end
 
 function __bobthefish_git_branch -d 'Get the current git branch (or commitish)'