comparison lisp/vc-svn.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 883c17cb4544
comparison
equal deleted inserted replaced
95019:dacdc18f78bd 95020:4da572dc4992
463 ;; For some reason `svn diff' does not return a useful 463 ;; For some reason `svn diff' does not return a useful
464 ;; status w.r.t whether the diff was empty or not. 464 ;; status w.r.t whether the diff was empty or not.
465 (buffer-size (get-buffer buffer))))) 465 (buffer-size (get-buffer buffer)))))
466 466
467 ;;; 467 ;;;
468 ;;; Snapshot system 468 ;;; Tag system
469 ;;; 469 ;;;
470 470
471 (defun vc-svn-create-snapshot (dir name branchp) 471 (defun vc-svn-create-tag (dir name branchp)
472 "Assign to DIR's current revision a given NAME. 472 "Assign to DIR's current revision a given NAME.
473 If BRANCHP is non-nil, the name is created as a branch (and the current 473 If BRANCHP is non-nil, the name is created as a branch (and the current
474 workspace is immediately moved to that new branch). 474 workspace is immediately moved to that new branch).
475 NAME is assumed to be a URL." 475 NAME is assumed to be a URL."
476 (vc-svn-command nil 0 dir "copy" name) 476 (vc-svn-command nil 0 dir "copy" name)
477 (when branchp (vc-svn-retrieve-snapshot dir name nil))) 477 (when branchp (vc-svn-retrieve-tag dir name nil)))
478 478
479 (defun vc-svn-retrieve-snapshot (dir name update) 479 (defun vc-svn-retrieve-tag (dir name update)
480 "Retrieve a snapshot at and below DIR. 480 "Retrieve a tag at and below DIR.
481 NAME is the name of the snapshot; if it is empty, do a `svn update'. 481 NAME is the name of the tag; if it is empty, do a `svn update'.
482 If UPDATE is non-nil, then update (resynch) any affected buffers. 482 If UPDATE is non-nil, then update (resynch) any affected buffers.
483 NAME is assumed to be a URL." 483 NAME is assumed to be a URL."
484 (vc-svn-command nil 0 dir "switch" name) 484 (vc-svn-command nil 0 dir "switch" name)
485 ;; FIXME: parse the output and obey `update'. 485 ;; FIXME: parse the output and obey `update'.
486 ) 486 )