emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RCS, again: another removed functionality: undo last-checkin


From: Uwe Brauer
Subject: Re: RCS, again: another removed functionality: undo last-checkin
Date: Sun, 20 Sep 2015 17:39:49 +0200
User-agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/25.0.50 (gnu/linux)


   > Of course, you can always do this with "rcs -oREV" from the shell, I'm
   > sure you know that.


Yes I do and I came up with a lisp wrapper for that:

(defvar vc-remove-command                 "/usr/bin/rcs -o%s %s "
"*Command for removing rcs version from branch.")

(defun vc-rcs-remove-version () 
  "Remove interactively versions from the tree."
  (interactive)
  (let* ((currentname 
                  (buffer-file-name (current-buffer))))
    (save-buffer)
          (shell-command
           (format vc-remove-command
                           (read-string "version to be removed: ")
                           currentname)
           "*VC-RCS-LOG*")))

But I am not sure that anybody finds this useful.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]