aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog1
-rw-r--r--lisp/vc-hg.el6
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6f388723a28..8f5460ef4d7 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -11,6 +11,7 @@
11 (vc-hg-checkout): Re-enable. 11 (vc-hg-checkout): Re-enable.
12 (vc-hg-create-repo): Fix typos. 12 (vc-hg-create-repo): Fix typos.
13 (vc-hg-print-log): Fix for multiple files. 13 (vc-hg-print-log): Fix for multiple files.
14 (vc-hg-workfile-unchanged-p): New function.
14 15
15 * vc.el: Fix typo. 16 * vc.el: Fix typo.
16 (vc-print-log): Fix call to print-log. 17 (vc-print-log): Fix call to print-log.
diff --git a/lisp/vc-hg.el b/lisp/vc-hg.el
index b2b72f38c29..596e95a70b2 100644
--- a/lisp/vc-hg.el
+++ b/lisp/vc-hg.el
@@ -48,7 +48,7 @@
48;; * workfile-version (file) OK 48;; * workfile-version (file) OK
49;; - latest-on-branch-p (file) ?? 49;; - latest-on-branch-p (file) ??
50;; * checkout-model (file) OK 50;; * checkout-model (file) OK
51;; - workfile-unchanged-p (file) ?? 51;; - workfile-unchanged-p (file) OK
52;; - mode-line-string (file) NOT NEEDED 52;; - mode-line-string (file) NOT NEEDED
53;; - dired-state-info (file) OK 53;; - dired-state-info (file) OK
54;; STATE-CHANGING FUNCTIONS 54;; STATE-CHANGING FUNCTIONS
@@ -407,6 +407,10 @@ REV is the revision to check out into WORKFILE."
407(defun vc-hg-checkout-model (file) 407(defun vc-hg-checkout-model (file)
408 'implicit) 408 'implicit)
409 409
410;; Modelled after the similar function in vc-bzr.el
411(defun vc-hg-workfile-unchanged-p (file)
412 (eq 'up-to-date (vc-hg-state file)))
413
410(defun vc-hg-dired-state-info (file) 414(defun vc-hg-dired-state-info (file)
411 "Hg-specific version of `vc-dired-state-info'." 415 "Hg-specific version of `vc-dired-state-info'."
412 (let ((hg-state (vc-state file))) 416 (let ((hg-state (vc-state file)))