branch: externals/vc-hgcmd
commit adb7cb582ee888759e35ae25183c8ee5e28c294d
Author: muffinmad <[email protected]>
Commit: muffinmad <[email protected]>
directories are always registered
---
vc-hgcmd.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/vc-hgcmd.el b/vc-hgcmd.el
index f6407e7..13e83fe 100644
--- a/vc-hgcmd.el
+++ b/vc-hgcmd.el
@@ -376,8 +376,9 @@ Insert 'Running command' and display buffer text if COMMAND"
(defun vc-hgcmd-registered (file)
"Is file FILE is registered."
(when (vc-hgcmd-root file)
- (let ((state (vc-hgcmd-state file)))
- (and state (not (memq state '(ignored unregistered)))))))
+ (or (file-directory-p file)
+ (let ((state (vc-hgcmd-state file)))
+ (and state (not (memq state '(ignored unregistered))))))))
(defun vc-hgcmd-state (file)
"State for FILE."