summaryrefslogtreecommitdiff
path: root/lisp/vc/vc-hg.el
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2014-12-01 08:24:27 -0500
committerEric S. Raymond <esr@thyrsus.com>2014-12-01 08:24:27 -0500
commitf82f3f1f177c1a9cc2c2236f51acd1be1809ae1f (patch)
tree76163b25a84c8416f7f529b9331778020cb7dc8b /lisp/vc/vc-hg.el
parent2532d74a5fb5168955aa900f597bf7efc14efb12 (diff)
downloademacs-f82f3f1f177c1a9cc2c2236f51acd1be1809ae1f.tar.gz
API simplification: remove vc-workfile-unchanged-p from pubic methods.
* vc/vc.el, vc-hooks.el, and all backends: API simplification; vc-workfile-unchanged-p is no longer a public method (but the RCS and SCCS back ends retain it as a private method used in state computation). This method was redundant with vc-state and usually implemented as a trivial call to same. Fixes the failure mode described in bug#694.
Diffstat (limited to 'lisp/vc/vc-hg.el')
-rw-r--r--lisp/vc/vc-hg.el5
1 files changed, 0 insertions, 5 deletions
diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el
index 337107f2ef4..52d5ceb12ca 100644
--- a/lisp/vc/vc-hg.el
+++ b/lisp/vc/vc-hg.el
@@ -51,7 +51,6 @@
;; * working-revision (file) OK
;; - latest-on-branch-p (file) ??
;; * checkout-model (files) OK
-;; - workfile-unchanged-p (file) OK
;; - mode-line-string (file) NOT NEEDED
;; STATE-CHANGING FUNCTIONS
;; * register (files &optional rev comment) OK
@@ -531,10 +530,6 @@ REV is the revision to check out into WORKFILE."
;; Modeled after the similar function in vc-bzr.el
-(defun vc-hg-workfile-unchanged-p (file)
- (eq 'up-to-date (vc-hg-state file)))
-
-;; Modeled after the similar function in vc-bzr.el
(defun vc-hg-revert (file &optional contents-done)
(unless contents-done
(with-temp-buffer (vc-hg-command t 0 file "revert"))))