Mercurial > emacs
comparison lisp/vc-rcs.el @ 95020:4da572dc4992
Snapshot primitives globally renamed to refer to tags, documentation updated.
author | Eric S. Raymond <esr@snark.thyrsus.com> |
---|---|
date | Thu, 15 May 2008 17:38:50 +0000 |
parents | 5e64dca662f0 |
children | a25916c502ba |
comparison
equal
deleted
inserted
replaced
95019:dacdc18f78bd | 95020:4da572dc4992 |
---|---|
785 (defun vc-rcs-annotate-extract-revision-at-line () | 785 (defun vc-rcs-annotate-extract-revision-at-line () |
786 (aref (get-text-property (point) :vc-rcs-r/d/a) 0)) | 786 (aref (get-text-property (point) :vc-rcs-r/d/a) 0)) |
787 | 787 |
788 | 788 |
789 ;;; | 789 ;;; |
790 ;;; Snapshot system | 790 ;;; Tag system |
791 ;;; | 791 ;;; |
792 | 792 |
793 (defun vc-rcs-assign-name (file name) | 793 (defun vc-rcs-create-tag (backend dir name branchp) |
794 "Assign to FILE's latest version a given NAME." | 794 (when branchp |
795 (vc-do-command "*vc*" 0 "rcs" (vc-name file) (concat "-n" name ":"))) | 795 (error "RCS backend %s does not support module branches.")) |
796 (let ((result (vc-tag-precondition dir))) | |
797 (if (stringp result) | |
798 (error "File %s is not up-to-date" result) | |
799 (vc-file-tree-walk | |
800 dir | |
801 (lambda (f) | |
802 (vc-do-command "*vc*" 0 "rcs" (vc-name f) (concat "-n" name ":"))))))) | |
796 | 803 |
797 | 804 |
798 ;;; | 805 ;;; |
799 ;;; Miscellaneous | 806 ;;; Miscellaneous |
800 ;;; | 807 ;;; |