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

index 6f388723a286a8814cc2c05005fea99249866edd..8f5460ef4d76c02e583cba75c7e93b0ae0e0a079 100644 (file)
@@ -11,6 +11,7 @@
        (vc-hg-checkout): Re-enable.
        (vc-hg-create-repo): Fix typos.
        (vc-hg-print-log): Fix for multiple files.
+       (vc-hg-workfile-unchanged-p): New function.
 
        * vc.el: Fix typo.
        (vc-print-log): Fix call to print-log.
index b2b72f38c294846ff04c3fd955386af84c3a34c4..596e95a70b21ccfc3d47a814611982e665e88b78 100644 (file)
@@ -48,7 +48,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
@@ -407,6 +407,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)))