Commit 791869eb authored by Dan Nicolaescu's avatar Dan Nicolaescu
Browse files

* vc-hg.el (vc-hg-registered): Set the vc-state property.

parent 8f069875
......@@ -9,6 +9,7 @@
* vc.el (vc-directory-exclusion-list): Add .git and .hg.
* vc-hg.el (vc-hg-revision-completion-table): Re-enable.
(vc-hg-registered): Set the vc-state property.
* diff-mode.el (diff-mode-menu): New entries.
......@@ -138,7 +138,7 @@
(defun vc-hg-registered (file)
"Return non-nil if FILE is registered with hg."
(when (vc-hg-root file) ; short cut
(vc-hg-state file))) ; expensive
(vc-file-setprop file 'vc-state (vc-hg-state file)))) ; expensive
(defun vc-hg-state (file)
"Hg-specific version of `vc-state'."
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment