]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-hg-workfile-unchanged-p): New function.
authorDan Nicolaescu <dann@ics.uci.edu>
Fri, 20 Jul 2007 06:54:40 +0000 (06:54 +0000)
committerDan Nicolaescu <dann@ics.uci.edu>
Fri, 20 Jul 2007 06:54:40 +0000 (06:54 +0000)
lisp/ChangeLog
lisp/vc-hg.el

index 4aeeddf5633764428b9afaa93aa875387041337a..74984f03789329834b5aaf44618457f43574946a 100644 (file)
@@ -1,3 +1,7 @@
+2007-07-20  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * vc-hg.el (vc-hg-workfile-unchanged-p): New function.
+
 2007-07-19  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * vc-hg.el (vc-hg-registered): Replace if with when.
index 8df01a2cc60a845da4a36d1f1fee9594a00742e6..946a47e8f7223c1aaa7ad6fe5afaf5c69d50911f 100644 (file)
@@ -45,7 +45,7 @@
 ;; * workfile-version (file)                   OK
 ;; - latest-on-branch-p (file)                 ??
 ;; * checkout-model (file)                     OK
-;; - workfile-unchanged-p (file)               ??
+;; - workfile-unchanged-p (file)               OK
 ;; - mode-line-string (file)                   NOT NEEDED
 ;; - dired-state-info (file)                   OK
 ;; STATE-CHANGING FUNCTIONS
@@ -392,6 +392,10 @@ REV is the revision to check out into WORKFILE."
 (defun vc-hg-checkout-model (file)
   'implicit)
 
+;; Modelled after the similar function in vc-bzr.el
+(defun vc-hg-workfile-unchanged-p (file)
+  (eq 'up-to-date (vc-hg-state file)))
+
 (defun vc-hg-dired-state-info (file)
   "Hg-specific version of `vc-dired-state-info'."
   (let ((hg-state (vc-state file)))