# HG changeset patch # User Dan Nicolaescu # Date 1184914480 0 # Node ID 252b7f091c04bd1e2df4b948d8d794dd9259d80b # Parent 516805bc79888bba4beb087275fdd1586e620e64 (vc-hg-workfile-unchanged-p): New function. diff -r 516805bc7988 -r 252b7f091c04 lisp/ChangeLog --- a/lisp/ChangeLog Thu Jul 19 23:51:28 2007 +0000 +++ b/lisp/ChangeLog Fri Jul 20 06:54:40 2007 +0000 @@ -1,3 +1,7 @@ +2007-07-20 Dan Nicolaescu + + * vc-hg.el (vc-hg-workfile-unchanged-p): New function. + 2007-07-19 Dan Nicolaescu * vc-hg.el (vc-hg-registered): Replace if with when. diff -r 516805bc7988 -r 252b7f091c04 lisp/vc-hg.el --- a/lisp/vc-hg.el Thu Jul 19 23:51:28 2007 +0000 +++ b/lisp/vc-hg.el Fri Jul 20 06:54:40 2007 +0000 @@ -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 @@ (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)))