From: Dan Nicolaescu Date: Fri, 20 Jul 2007 03:15:19 +0000 (+0000) Subject: (vc-hg-workfile-unchanged-p): New function. X-Git-Tag: emacs-pretest-23.0.90~11828 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a272e668c92ad0a4e0d986f7536862c3abb52bc2;p=emacs.git (vc-hg-workfile-unchanged-p): New function. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6f388723a28..8f5460ef4d7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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. 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 @@ ;; * 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)))