changeset 82282:1414862f1a0d

(vc-rollback): Add norevert argument back. (vc-revert-buffer): Add back as obsolete alias.
author Jason Rumney <jasonr@gnu.org>
date Sun, 05 Aug 2007 21:46:00 +0000
parents a779619b8058
children 3133b68f89f1
files lisp/vc.el
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/vc.el	Sun Aug 05 14:08:50 2007 +0000
+++ b/lisp/vc.el	Sun Aug 05 21:46:00 2007 +0000
@@ -2636,6 +2636,9 @@
     (message "Reverting %s...done" file)))
 
 ;;;###autoload
+(define-obsolete-function-alias 'vc-revert-buffer 'vc-revert "23.1")
+
+;;;###autoload
 (defun vc-update ()
   "Update the current buffer's file to the latest version on its branch.
 If the file contains no changes, and is not locked, then this simply replaces
@@ -2718,8 +2721,9 @@
   (vc-resynch-buffer file t t))
 
 ;;;###autoload
-(defun vc-rollback ()
-  "Get rid of most recently checked in version of this file."
+(defun vc-rollback (&optional norevert)
+  "Get rid of most recently checked in version of this file.
+A prefix argument NOREVERT means do not revert the buffer afterwards."
   (interactive "P")
   (vc-ensure-vc-buffer)
   (let* ((file buffer-file-name)