aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2007-07-20 06:54:40 +0000
committerDan Nicolaescu2007-07-20 06:54:40 +0000
commit727bdea1064ff35f32e3055ba20d807625e5fe05 (patch)
treef918726944ac7f35717c01ed2f764fc30eda23dc
parentad54692916a0b5352369d5ead8d81f20adf6e9d7 (diff)
downloademacs-727bdea1064ff35f32e3055ba20d807625e5fe05.tar.gz
emacs-727bdea1064ff35f32e3055ba20d807625e5fe05.zip
(vc-hg-workfile-unchanged-p): New function.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/vc-hg.el6
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4aeeddf5633..74984f03789 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12007-07-20 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * vc-hg.el (vc-hg-workfile-unchanged-p): New function.
4
12007-07-19 Dan Nicolaescu <dann@ics.uci.edu> 52007-07-19 Dan Nicolaescu <dann@ics.uci.edu>
2 6
3 * vc-hg.el (vc-hg-registered): Replace if with when. 7 * vc-hg.el (vc-hg-registered): Replace if with when.
diff --git a/lisp/vc-hg.el b/lisp/vc-hg.el
index 8df01a2cc60..946a47e8f72 100644
--- a/lisp/vc-hg.el
+++ b/lisp/vc-hg.el
@@ -45,7 +45,7 @@
45;; * workfile-version (file) OK 45;; * workfile-version (file) OK
46;; - latest-on-branch-p (file) ?? 46;; - latest-on-branch-p (file) ??
47;; * checkout-model (file) OK 47;; * checkout-model (file) OK
48;; - workfile-unchanged-p (file) ?? 48;; - workfile-unchanged-p (file) OK
49;; - mode-line-string (file) NOT NEEDED 49;; - mode-line-string (file) NOT NEEDED
50;; - dired-state-info (file) OK 50;; - dired-state-info (file) OK
51;; STATE-CHANGING FUNCTIONS 51;; STATE-CHANGING FUNCTIONS
@@ -392,6 +392,10 @@ REV is the revision to check out into WORKFILE."
392(defun vc-hg-checkout-model (file) 392(defun vc-hg-checkout-model (file)
393 'implicit) 393 'implicit)
394 394
395;; Modelled after the similar function in vc-bzr.el
396(defun vc-hg-workfile-unchanged-p (file)
397 (eq 'up-to-date (vc-hg-state file)))
398
395(defun vc-hg-dired-state-info (file) 399(defun vc-hg-dired-state-info (file)
396 "Hg-specific version of `vc-dired-state-info'." 400 "Hg-specific version of `vc-dired-state-info'."
397 (let ((hg-state (vc-state file))) 401 (let ((hg-state (vc-state file)))