aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond2007-10-10 19:39:23 +0000
committerEric S. Raymond2007-10-10 19:39:23 +0000
commit5b5afd508a5ca3643e1cd435fa60d197b7c2f9f7 (patch)
tree585cf39728175c17a483204b38d1a3bac42a0127
parenta888f521f0d727300f821ff346375d357ba1e2c7 (diff)
downloademacs-5b5afd508a5ca3643e1cd435fa60d197b7c2f9f7.tar.gz
emacs-5b5afd508a5ca3643e1cd435fa60d197b7c2f9f7.zip
Carry through today's big terminology change to a few places where I
missed it in the back ends.
-rw-r--r--lisp/vc-bzr.el18
-rw-r--r--lisp/vc-git.el16
-rw-r--r--lisp/vc-hg.el28
-rw-r--r--lisp/vc-mcvs.el30
-rw-r--r--lisp/vc-mtn.el2
-rw-r--r--lisp/vc-sccs.el20
-rw-r--r--lisp/vc-svn.el18
7 files changed, 66 insertions, 66 deletions
diff --git a/lisp/vc-bzr.el b/lisp/vc-bzr.el
index e889ea86c1e..5ed46431fda 100644
--- a/lisp/vc-bzr.el
+++ b/lisp/vc-bzr.el
@@ -284,7 +284,7 @@ If any error occurred in running `bzr status', then return nil."
284 "Register FILE under bzr. 284 "Register FILE under bzr.
285Signal an error unless REV is nil. 285Signal an error unless REV is nil.
286COMMENT is ignored." 286COMMENT is ignored."
287 (if rev (error "Can't register explicit version with bzr")) 287 (if rev (error "Can't register explicit revision with bzr"))
288 (vc-bzr-command "add" nil 0 files)) 288 (vc-bzr-command "add" nil 0 files))
289 289
290;; Could run `bzr status' in the directory and see if it succeeds, but 290;; Could run `bzr status' in the directory and see if it succeeds, but
@@ -313,7 +313,7 @@ or a superior directory.")
313(defun vc-bzr-checkin (files rev comment) 313(defun vc-bzr-checkin (files rev comment)
314 "Check FILE in to bzr with log message COMMENT. 314 "Check FILE in to bzr with log message COMMENT.
315REV non-nil gets an error." 315REV non-nil gets an error."
316 (if rev (error "Can't check in a specific version with bzr")) 316 (if rev (error "Can't check in a specific revision with bzr"))
317 (vc-bzr-command "commit" nil 0 files "-m" comment)) 317 (vc-bzr-command "commit" nil 0 files "-m" comment))
318 318
319(defun vc-bzr-checkout (file &optional editable rev destfile) 319(defun vc-bzr-checkout (file &optional editable rev destfile)
@@ -365,11 +365,11 @@ EDITABLE is ignored."
365 (unless (fboundp 'vc-default-log-view-mode) 365 (unless (fboundp 'vc-default-log-view-mode)
366 (add-hook 'log-view-mode-hook 'vc-bzr-log-view-mode))) 366 (add-hook 'log-view-mode-hook 'vc-bzr-log-view-mode)))
367 367
368(defun vc-bzr-show-log-entry (version) 368(defun vc-bzr-show-log-entry (revision)
369 "Find entry for patch name VERSION in bzr change log buffer." 369 "Find entry for patch name REVISION in bzr change log buffer."
370 (goto-char (point-min)) 370 (goto-char (point-min))
371 (let (case-fold-search) 371 (let (case-fold-search)
372 (if (re-search-forward (concat "^-+\nrevno: " version "$") nil t) 372 (if (re-search-forward (concat "^-+\nrevno: " revision "$") nil t)
373 (beginning-of-line 0) 373 (beginning-of-line 0)
374 (goto-char (point-min))))) 374 (goto-char (point-min)))))
375 375
@@ -394,8 +394,8 @@ EDITABLE is ignored."
394(defalias 'vc-bzr-diff-tree 'vc-bzr-diff) 394(defalias 'vc-bzr-diff-tree 'vc-bzr-diff)
395 395
396 396
397;; FIXME: vc-{next,previous}-version need fixing in vc.el to deal with 397;; FIXME: vc-{next,previous}-revision need fixing in vc.el to deal with
398;; straight integer versions. 398;; straight integer revisions.
399 399
400(defun vc-bzr-delete-file (file) 400(defun vc-bzr-delete-file (file)
401 "Delete FILE and delete it in the bzr repository." 401 "Delete FILE and delete it in the bzr repository."
@@ -412,12 +412,12 @@ EDITABLE is ignored."
412 "Internal use.") 412 "Internal use.")
413(make-variable-buffer-local 'vc-bzr-annotation-table) 413(make-variable-buffer-local 'vc-bzr-annotation-table)
414 414
415(defun vc-bzr-annotate-command (file buffer &optional version) 415(defun vc-bzr-annotate-command (file buffer &optional revision)
416 "Prepare BUFFER for `vc-annotate' on FILE. 416 "Prepare BUFFER for `vc-annotate' on FILE.
417Each line is tagged with the revision number, which has a `help-echo' 417Each line is tagged with the revision number, which has a `help-echo'
418property containing author and date information." 418property containing author and date information."
419 (apply #'vc-bzr-command "annotate" buffer 0 file "--long" "--all" 419 (apply #'vc-bzr-command "annotate" buffer 0 file "--long" "--all"
420 (if version (list "-r" version))) 420 (if revision (list "-r" revision)))
421 (with-current-buffer buffer 421 (with-current-buffer buffer
422 ;; Store the tags for the annotated source lines in a hash table 422 ;; Store the tags for the annotated source lines in a hash table
423 ;; to allow saving space by sharing the text properties. 423 ;; to allow saving space by sharing the text properties.
diff --git a/lisp/vc-git.el b/lisp/vc-git.el
index 6ea04a1e45b..4bf6506dcb1 100644
--- a/lisp/vc-git.el
+++ b/lisp/vc-git.el
@@ -77,11 +77,11 @@
77;; wouldn't be identified as a merge by git, 77;; wouldn't be identified as a merge by git,
78;; so it's probably not a good idea. 78;; so it's probably not a good idea.
79;; - merge-news (file) see `merge' 79;; - merge-news (file) see `merge'
80;; - steal-lock (file &optional version) NOT NEEDED 80;; - steal-lock (file &optional revision) NOT NEEDED
81;; HISTORY FUNCTIONS 81;; HISTORY FUNCTIONS
82;; * print-log (files &optional buffer) OK 82;; * print-log (files &optional buffer) OK
83;; - log-view-mode () OK 83;; - log-view-mode () OK
84;; - show-log-entry (version) NOT NEEDED, DEFAULT IS GOOD 84;; - show-log-entry (revision) NOT NEEDED, DEFAULT IS GOOD
85;; - wash-log (file) COULD BE SUPPORTED 85;; - wash-log (file) COULD BE SUPPORTED
86;; - logentry-check () NOT NEEDED 86;; - logentry-check () NOT NEEDED
87;; - comment-history (file) ?? 87;; - comment-history (file) ??
@@ -100,8 +100,8 @@
100;; MISCELLANEOUS 100;; MISCELLANEOUS
101;; - make-version-backups-p (file) NOT NEEDED 101;; - make-version-backups-p (file) NOT NEEDED
102;; - repository-hostname (dirname) NOT NEEDED 102;; - repository-hostname (dirname) NOT NEEDED
103;; - previous-version (file rev) OK 103;; - previous-revision (file rev) OK
104;; - next-version (file rev) OK 104;; - next-revision (file rev) OK
105;; - check-headers () COULD BE SUPPORTED 105;; - check-headers () COULD BE SUPPORTED
106;; - clear-headers () NOT NEEDED 106;; - clear-headers () NOT NEEDED
107;; - delete-file (file) OK 107;; - delete-file (file) OK
@@ -372,8 +372,8 @@
372 372
373;;; MISCELLANEOUS 373;;; MISCELLANEOUS
374 374
375(defun vc-git-previous-version (file rev) 375(defun vc-git-previous-revision (file rev)
376 "Git-specific version of `vc-previous-version'." 376 "Git-specific version of `vc-previous-revision'."
377 (let ((default-directory (file-name-directory (expand-file-name file))) 377 (let ((default-directory (file-name-directory (expand-file-name file)))
378 (file (file-name-nondirectory file))) 378 (file (file-name-nondirectory file)))
379 (vc-git-symbolic-commit 379 (vc-git-symbolic-commit
@@ -390,8 +390,8 @@
390 (point) 390 (point)
391 (1- (point-max)))))))) 391 (1- (point-max))))))))
392 392
393(defun vc-git-next-version (file rev) 393(defun vc-git-next-revision (file rev)
394 "Git-specific version of `vc-next-version'." 394 "Git-specific version of `vc-next-revision'."
395 (let* ((default-directory (file-name-directory 395 (let* ((default-directory (file-name-directory
396 (expand-file-name file))) 396 (expand-file-name file)))
397 (file (file-name-nondirectory file)) 397 (file (file-name-nondirectory file))
diff --git a/lisp/vc-hg.el b/lisp/vc-hg.el
index 62d7024a91d..2e90d06fbc5 100644
--- a/lisp/vc-hg.el
+++ b/lisp/vc-hg.el
@@ -66,11 +66,11 @@
66;; - rollback (files) ?? PROBABLY NOT NEEDED 66;; - rollback (files) ?? PROBABLY NOT NEEDED
67;; - merge (file rev1 rev2) NEEDED 67;; - merge (file rev1 rev2) NEEDED
68;; - merge-news (file) NEEDED 68;; - merge-news (file) NEEDED
69;; - steal-lock (file &optional version) NOT NEEDED 69;; - steal-lock (file &optional revision) NOT NEEDED
70;; HISTORY FUNCTIONS 70;; HISTORY FUNCTIONS
71;; * print-log (files &optional buffer) OK 71;; * print-log (files &optional buffer) OK
72;; - log-view-mode () OK 72;; - log-view-mode () OK
73;; - show-log-entry (version) NOT NEEDED, DEFAULT IS GOOD 73;; - show-log-entry (revision) NOT NEEDED, DEFAULT IS GOOD
74;; - wash-log (file) ?? 74;; - wash-log (file) ??
75;; - logentry-check () NOT NEEDED 75;; - logentry-check () NOT NEEDED
76;; - comment-history (file) NOT NEEDED 76;; - comment-history (file) NOT NEEDED
@@ -89,8 +89,8 @@
89;; MISCELLANEOUS 89;; MISCELLANEOUS
90;; - make-version-backups-p (file) ?? 90;; - make-version-backups-p (file) ??
91;; - repository-hostname (dirname) ?? 91;; - repository-hostname (dirname) ??
92;; - previous-version (file rev) OK 92;; - previous-revision (file rev) OK
93;; - next-version (file rev) OK 93;; - next-revision (file rev) OK
94;; - check-headers () ?? 94;; - check-headers () ??
95;; - clear-headers () ?? 95;; - clear-headers () ??
96;; - delete-file (file) TEST IT 96;; - delete-file (file) TEST IT
@@ -277,7 +277,7 @@
277 ("^summary:[ \t]+\\(.+\\)" (1 'log-view-message)))))) 277 ("^summary:[ \t]+\\(.+\\)" (1 'log-view-message))))))
278 278
279(defun vc-hg-diff (files &optional oldvers newvers buffer) 279(defun vc-hg-diff (files &optional oldvers newvers buffer)
280 "Get a difference report using hg between two versions of FILES." 280 "Get a difference report using hg between two revisions of FILES."
281 (let ((working (vc-working-revision (car files)))) 281 (let ((working (vc-working-revision (car files))))
282 (if (and (equal oldvers working) (not newvers)) 282 (if (and (equal oldvers working) (not newvers))
283 (setq oldvers nil)) 283 (setq oldvers nil))
@@ -312,10 +312,10 @@
312(defun vc-hg-diff-tree (file &optional oldvers newvers buffer) 312(defun vc-hg-diff-tree (file &optional oldvers newvers buffer)
313 (vc-hg-diff (list file) oldvers newvers buffer)) 313 (vc-hg-diff (list file) oldvers newvers buffer))
314 314
315(defun vc-hg-annotate-command (file buffer &optional version) 315(defun vc-hg-annotate-command (file buffer &optional revision)
316 "Execute \"hg annotate\" on FILE, inserting the contents in BUFFER. 316 "Execute \"hg annotate\" on FILE, inserting the contents in BUFFER.
317Optional arg VERSION is a version to annotate from." 317Optional arg REVISION is a revision to annotate from."
318 (vc-hg-command buffer 0 file "annotate" "-d" "-n" (if version (concat "-r" version))) 318 (vc-hg-command buffer 0 file "annotate" "-d" "-n" (if revision (concat "-r" revision)))
319 (with-current-buffer buffer 319 (with-current-buffer buffer
320 (goto-char (point-min)) 320 (goto-char (point-min))
321 (re-search-forward "^[0-9]") 321 (re-search-forward "^[0-9]")
@@ -338,22 +338,22 @@ Optional arg VERSION is a version to annotate from."
338 (beginning-of-line) 338 (beginning-of-line)
339 (if (looking-at vc-hg-annotate-re) (match-string-no-properties 1)))) 339 (if (looking-at vc-hg-annotate-re) (match-string-no-properties 1))))
340 340
341(defun vc-hg-previous-version (file rev) 341(defun vc-hg-previous-revision (file rev)
342 (let ((newrev (1- (string-to-number rev)))) 342 (let ((newrev (1- (string-to-number rev))))
343 (when (>= newrev 0) 343 (when (>= newrev 0)
344 (number-to-string newrev)))) 344 (number-to-string newrev))))
345 345
346(defun vc-hg-next-version (file rev) 346(defun vc-hg-next-revision (file rev)
347 (let ((newrev (1+ (string-to-number rev))) 347 (let ((newrev (1+ (string-to-number rev)))
348 (tip-version 348 (tip-revision
349 (with-temp-buffer 349 (with-temp-buffer
350 (vc-hg-command t 0 nil "tip") 350 (vc-hg-command t 0 nil "tip")
351 (goto-char (point-min)) 351 (goto-char (point-min))
352 (re-search-forward "^changeset:[ \t]*\\([0-9]+\\):") 352 (re-search-forward "^changeset:[ \t]*\\([0-9]+\\):")
353 (string-to-number (match-string-no-properties 1))))) 353 (string-to-number (match-string-no-properties 1)))))
354 ;; We don't want to exceed the maximum possible version number, ie 354 ;; We don't want to exceed the maximum possible revision number, ie
355 ;; the tip version. 355 ;; the tip revision.
356 (when (<= newrev tip-version) 356 (when (<= newrev tip-revision)
357 (number-to-string newrev)))) 357 (number-to-string newrev))))
358 358
359;; Modelled after the similar function in vc-bzr.el 359;; Modelled after the similar function in vc-bzr.el
diff --git a/lisp/vc-mcvs.el b/lisp/vc-mcvs.el
index 7893e47adb9..6df12202c03 100644
--- a/lisp/vc-mcvs.el
+++ b/lisp/vc-mcvs.el
@@ -267,7 +267,7 @@ This is only possible if Meta-CVS is responsible for FILE's directory.")
267 267
268(defun vc-mcvs-checkin (files rev comment) 268(defun vc-mcvs-checkin (files rev comment)
269 "Meta-CVS-specific version of `vc-backend-checkin'." 269 "Meta-CVS-specific version of `vc-backend-checkin'."
270 (unless (or (not rev) (vc-mcvs-valid-version-number-p rev)) 270 (unless (or (not rev) (vc-mcvs-valid-revision-number-p rev))
271 (if (not (vc-mcvs-valid-symbolic-tag-name-p rev)) 271 (if (not (vc-mcvs-valid-symbolic-tag-name-p rev))
272 (error "%s is not a valid symbolic tag name" rev) 272 (error "%s is not a valid symbolic tag name" rev)
273 ;; If the input revision is a valid symbolic tag name, we create it 273 ;; If the input revision is a valid symbolic tag name, we create it
@@ -302,7 +302,7 @@ This is only possible if Meta-CVS is responsible for FILE's directory.")
302 (goto-char (point-min)) 302 (goto-char (point-min))
303 (shrink-window-if-larger-than-buffer) 303 (shrink-window-if-larger-than-buffer)
304 (error "Check-in failed")))) 304 (error "Check-in failed"))))
305 ;; Single-file commit? Then update the version by parsing the buffer. 305 ;; Single-file commit? Then update the revision by parsing the buffer.
306 ;; Otherwise we can't necessarily tell what goes with what; clear 306 ;; Otherwise we can't necessarily tell what goes with what; clear
307 ;; its properties so they have to be refetched. 307 ;; its properties so they have to be refetched.
308 (if (= (length files) 1) 308 (if (= (length files) 1)
@@ -348,7 +348,7 @@ This is only possible if Meta-CVS is responsible for FILE's directory.")
348 (vc-mcvs-command nil 0 file "edit") 348 (vc-mcvs-command nil 0 file "edit")
349 (set-file-modes file (logior (file-modes file) 128)) 349 (set-file-modes file (logior (file-modes file) 128))
350 (if (equal file buffer-file-name) (toggle-read-only -1)))) 350 (if (equal file buffer-file-name) (toggle-read-only -1))))
351 ;; Check out a particular version (or recreate the file). 351 ;; Check out a particular revision (or recreate the file).
352 (vc-file-setprop file 'vc-working-revision nil) 352 (vc-file-setprop file 'vc-working-revision nil)
353 (apply 'vc-mcvs-command nil 0 file 353 (apply 'vc-mcvs-command nil 0 file
354 (if editable "-w") 354 (if editable "-w")
@@ -364,7 +364,7 @@ This is only possible if Meta-CVS is responsible for FILE's directory.")
364 (vc-mcvs-command nil 0 new "move" (file-relative-name old))) 364 (vc-mcvs-command nil 0 new "move" (file-relative-name old)))
365 365
366(defun vc-mcvs-revert (file &optional contents-done) 366(defun vc-mcvs-revert (file &optional contents-done)
367 "Revert FILE to the version it was based on." 367 "Revert FILE to the working revision it was based on."
368 (vc-default-revert 'MCVS file contents-done) 368 (vc-default-revert 'MCVS file contents-done)
369 (unless (eq (vc-checkout-model file) 'implicit) 369 (unless (eq (vc-checkout-model file) 'implicit)
370 (if vc-mcvs-use-edit 370 (if vc-mcvs-use-edit
@@ -372,13 +372,13 @@ This is only possible if Meta-CVS is responsible for FILE's directory.")
372 ;; Make the file read-only by switching off all w-bits 372 ;; Make the file read-only by switching off all w-bits
373 (set-file-modes file (logand (file-modes file) 3950))))) 373 (set-file-modes file (logand (file-modes file) 3950)))))
374 374
375(defun vc-mcvs-merge (file first-version &optional second-version) 375(defun vc-mcvs-merge (file first-revision &optional second-revision)
376 "Merge changes into current working copy of FILE. 376 "Merge changes into current working copy of FILE.
377The changes are between FIRST-VERSION and SECOND-VERSION." 377The changes are between FIRST-REVISION and SECOND-REVISION."
378 (vc-mcvs-command nil 0 file 378 (vc-mcvs-command nil 0 file
379 "update" "-kk" 379 "update" "-kk"
380 (concat "-j" first-version) 380 (concat "-j" first-revision)
381 (concat "-j" second-version)) 381 (concat "-j" second-revision))
382 (vc-file-setprop file 'vc-state 'edited) 382 (vc-file-setprop file 'vc-state 'edited)
383 (with-current-buffer (get-buffer "*vc*") 383 (with-current-buffer (get-buffer "*vc*")
384 (goto-char (point-min)) 384 (goto-char (point-min))
@@ -396,7 +396,7 @@ The changes are between FIRST-VERSION and SECOND-VERSION."
396 ;; file properties accordingly. 396 ;; file properties accordingly.
397 (with-current-buffer (get-buffer "*vc*") 397 (with-current-buffer (get-buffer "*vc*")
398 (goto-char (point-min)) 398 (goto-char (point-min))
399 ;; get new workfile version 399 ;; get new working revision
400 (if (re-search-forward 400 (if (re-search-forward
401 "^Merging differences between [0-9.]* and \\([0-9.]*\\) into" nil t) 401 "^Merging differences between [0-9.]* and \\([0-9.]*\\) into" nil t)
402 (vc-file-setprop file 'vc-working-revision (match-string 1)) 402 (vc-file-setprop file 'vc-working-revision (match-string 1))
@@ -447,7 +447,7 @@ The changes are between FIRST-VERSION and SECOND-VERSION."
447 files "log"))) 447 files "log")))
448 448
449(defun vc-mcvs-diff (files &optional oldvers newvers buffer) 449(defun vc-mcvs-diff (files &optional oldvers newvers buffer)
450 "Get a difference report using Meta-CVS between two versions of FILES." 450 "Get a difference report using Meta-CVS between two revisions of FILES."
451 (let* ((async (and (not vc-disable-async-diff) 451 (let* ((async (and (not vc-disable-async-diff)
452 (vc-stay-local-p files) 452 (vc-stay-local-p files)
453 (fboundp 'start-process))) 453 (fboundp 'start-process)))
@@ -476,13 +476,13 @@ The changes are between FIRST-VERSION and SECOND-VERSION."
476 (and rev2 (concat "-r" rev2)) 476 (and rev2 (concat "-r" rev2))
477 (vc-switches 'MCVS 'diff))))) 477 (vc-switches 'MCVS 'diff)))))
478 478
479(defun vc-mcvs-annotate-command (file buffer &optional version) 479(defun vc-mcvs-annotate-command (file buffer &optional revision)
480 "Execute \"mcvs annotate\" on FILE, inserting the contents in BUFFER. 480 "Execute \"mcvs annotate\" on FILE, inserting the contents in BUFFER.
481Optional arg VERSION is a version to annotate from." 481Optional arg REVISION is a revision to annotate from."
482 (vc-mcvs-command 482 (vc-mcvs-command
483 buffer 483 buffer
484 (if (and (vc-stay-local-p file) (fboundp 'start-process)) 'async 0) 484 (if (and (vc-stay-local-p file) (fboundp 'start-process)) 'async 0)
485 file "annotate" (if version (concat "-r" version))) 485 file "annotate" (if revision (concat "-r" revision)))
486 (with-current-buffer buffer 486 (with-current-buffer buffer
487 (goto-char (point-min)) 487 (goto-char (point-min))
488 (re-search-forward "^[0-9]") 488 (re-search-forward "^[0-9]")
@@ -496,7 +496,7 @@ Optional arg VERSION is a version to annotate from."
496;;; 496;;;
497 497
498(defun vc-mcvs-create-snapshot (dir name branchp) 498(defun vc-mcvs-create-snapshot (dir name branchp)
499 "Assign to DIR's current version a given NAME. 499 "Assign to DIR's current revision a given NAME.
500If BRANCHP is non-nil, the name is created as a branch (and the current 500If BRANCHP is non-nil, the name is created as a branch (and the current
501workspace is immediately moved to that new branch)." 501workspace is immediately moved to that new branch)."
502 (if (not branchp) 502 (if (not branchp)
@@ -596,7 +596,7 @@ and that it passes `vc-mcvs-global-switches' to it before FLAGS."
596 (forward-line 1)))) 596 (forward-line 1))))
597 597
598(defalias 'vc-mcvs-valid-symbolic-tag-name-p 'vc-cvs-valid-symbolic-tag-name-p) 598(defalias 'vc-mcvs-valid-symbolic-tag-name-p 'vc-cvs-valid-symbolic-tag-name-p)
599(defalias 'vc-mcvs-valid-version-number-p 'vc-cvs-valid-version-number-p) 599(defalias 'vc-mcvs-valid-revision-number-p 'vc-cvs-valid-revision-number-p)
600 600
601(provide 'vc-mcvs) 601(provide 'vc-mcvs)
602 602
diff --git a/lisp/vc-mtn.el b/lisp/vc-mtn.el
index a4739c633e0..5365b4d9289 100644
--- a/lisp/vc-mtn.el
+++ b/lisp/vc-mtn.el
@@ -163,7 +163,7 @@
163 '(("^[ |]+Author: \\(.*\\)" (1 'change-log-email)) 163 '(("^[ |]+Author: \\(.*\\)" (1 'change-log-email))
164 ("^[ |]+Date: \\(.*\\)" (1 'change-log-date-face)))))) 164 ("^[ |]+Date: \\(.*\\)" (1 'change-log-date-face))))))
165 165
166;; (defun vc-mtn-show-log-entry (version) 166;; (defun vc-mtn-show-log-entry (revision)
167;; ) 167;; )
168 168
169(defun vc-mtn-wash-log (file)) 169(defun vc-mtn-wash-log (file))
diff --git a/lisp/vc-sccs.el b/lisp/vc-sccs.el
index fd5e24ae5e5..06fcff3ceb5 100644
--- a/lisp/vc-sccs.el
+++ b/lisp/vc-sccs.el
@@ -148,10 +148,10 @@ For a description of possible values, see `vc-check-master-templates'."
148(defun vc-sccs-working-revision (file) 148(defun vc-sccs-working-revision (file)
149 "SCCS-specific version of `vc-working-revision'." 149 "SCCS-specific version of `vc-working-revision'."
150 (with-temp-buffer 150 (with-temp-buffer
151 ;; The workfile version is always the latest version number. 151 ;; The working revision is always the latest revision number.
152 ;; To find this number, search the entire delta table, 152 ;; To find this number, search the entire delta table,
153 ;; rather than just the first entry, because the 153 ;; rather than just the first entry, because the
154 ;; first entry might be a deleted ("R") version. 154 ;; first entry might be a deleted ("R") revision.
155 (vc-insert-file (vc-name file) "^\001e\n\001[^s]") 155 (vc-insert-file (vc-name file) "^\001e\n\001[^s]")
156 (vc-parse-buffer "^\001d D \\([^ ]+\\)" 1))) 156 (vc-parse-buffer "^\001d D \\([^ ]+\\)" 1)))
157 157
@@ -230,7 +230,7 @@ expanded if `vc-keep-workfiles' is non-nil, otherwise, delete the workfile."
230 (vc-switches 'SCCS 'checkout))) 230 (vc-switches 'SCCS 'checkout)))
231 231
232(defun vc-sccs-checkout (file &optional editable rev) 232(defun vc-sccs-checkout (file &optional editable rev)
233 "Retrieve a copy of a saved version of SCCS controlled FILE. 233 "Retrieve a copy of a saved revision of SCCS controlled FILE.
234EDITABLE non-nil means that the file should be writable and 234EDITABLE non-nil means that the file should be writable and
235locked. REV is the revision to check out." 235locked. REV is the revision to check out."
236 (let ((file-buffer (get-file-buffer file)) 236 (let ((file-buffer (get-file-buffer file))
@@ -258,7 +258,7 @@ locked. REV is the revision to check out."
258 switches)))) 258 switches))))
259 (message "Checking out %s...done" file))) 259 (message "Checking out %s...done" file)))
260 260
261(defun vc-sccs-cancel-version (files) 261(defun vc-sccs-rollback (files)
262 "Roll back, undoing the most recent checkins of FILES." 262 "Roll back, undoing the most recent checkins of FILES."
263 (if (not files) 263 (if (not files)
264 (error "SCCS backend doesn't support directory-level rollback.")) 264 (error "SCCS backend doesn't support directory-level rollback."))
@@ -275,8 +275,8 @@ locked. REV is the revision to check out."
275 "Revert FILE to the version it was based on." 275 "Revert FILE to the version it was based on."
276 (vc-do-command nil 0 "unget" (vc-name file)) 276 (vc-do-command nil 0 "unget" (vc-name file))
277 (vc-do-command nil 0 "get" (vc-name file)) 277 (vc-do-command nil 0 "get" (vc-name file))
278 ;; Checking out explicit versions is not supported under SCCS, yet. 278 ;; Checking out explicit revisions is not supported under SCCS, yet.
279 ;; We always "revert" to the latest version; therefore 279 ;; We always "revert" to the latest revision; therefore
280 ;; vc-working-revision is cleared here so that it gets recomputed. 280 ;; vc-working-revision is cleared here so that it gets recomputed.
281 (vc-file-setprop file 'vc-working-revision nil)) 281 (vc-file-setprop file 'vc-working-revision nil))
282 282
@@ -322,7 +322,7 @@ locked. REV is the revision to check out."
322;;; 322;;;
323 323
324(defun vc-sccs-assign-name (file name) 324(defun vc-sccs-assign-name (file name)
325 "Assign to FILE's latest version a given NAME." 325 "Assign to FILE's latest revision a given NAME."
326 (vc-sccs-add-triple name file (vc-working-revision file))) 326 (vc-sccs-add-triple name file (vc-working-revision file)))
327 327
328 328
@@ -388,7 +388,7 @@ find any project directory."
388 388
389(defun vc-sccs-parse-locks () 389(defun vc-sccs-parse-locks ()
390 "Parse SCCS locks in current buffer. 390 "Parse SCCS locks in current buffer.
391The result is a list of the form ((VERSION . USER) (VERSION . USER) ...)." 391The result is a list of the form ((REVISION . USER) (REVISION . USER) ...)."
392 (let (master-locks) 392 (let (master-locks)
393 (goto-char (point-min)) 393 (goto-char (point-min))
394 (while (re-search-forward "^\\([0-9.]+\\) [0-9.]+ \\([^ ]+\\) .*\n?" 394 (while (re-search-forward "^\\([0-9.]+\\) [0-9.]+ \\([^ ]+\\) .*\n?"
@@ -409,8 +409,8 @@ The result is a list of the form ((VERSION . USER) (VERSION . USER) ...)."
409 (kill-buffer (current-buffer)))) 409 (kill-buffer (current-buffer))))
410 410
411(defun vc-sccs-lookup-triple (file name) 411(defun vc-sccs-lookup-triple (file name)
412 "Return the numeric version corresponding to a named snapshot of FILE. 412 "Return the numeric revision corresponding to a named snapshot of FILE.
413If NAME is nil or a version number string it's just passed through." 413If NAME is nil or a revision number string it's just passed through."
414 (if (or (null name) 414 (if (or (null name)
415 (let ((firstchar (aref name 0))) 415 (let ((firstchar (aref name 0)))
416 (and (>= firstchar ?0) (<= firstchar ?9)))) 416 (and (>= firstchar ?0) (<= firstchar ?9))))
diff --git a/lisp/vc-svn.el b/lisp/vc-svn.el
index a4e1d19a90c..43643b931d9 100644
--- a/lisp/vc-svn.el
+++ b/lisp/vc-svn.el
@@ -185,14 +185,14 @@ If you want to force an empty list of arguments, use t."
185 ((eq svn-state 'needs-patch) "(patch)") 185 ((eq svn-state 'needs-patch) "(patch)")
186 ((eq svn-state 'needs-merge) "(merge)")))) 186 ((eq svn-state 'needs-merge) "(merge)"))))
187 187
188(defun vc-svn-previous-version (file rev) 188(defun vc-svn-previous-revision (file rev)
189 (let ((newrev (1- (string-to-number rev)))) 189 (let ((newrev (1- (string-to-number rev))))
190 (when (< 0 newrev) 190 (when (< 0 newrev)
191 (number-to-string newrev)))) 191 (number-to-string newrev))))
192 192
193(defun vc-svn-next-version (file rev) 193(defun vc-svn-next-revision (file rev)
194 (let ((newrev (1+ (string-to-number rev)))) 194 (let ((newrev (1+ (string-to-number rev))))
195 ;; The "workfile version" is an uneasy conceptual fit under Subversion; 195 ;; The "working revision" is an uneasy conceptual fit under Subversion;
196 ;; we use it as the upper bound until a better idea comes along. If the 196 ;; we use it as the upper bound until a better idea comes along. If the
197 ;; workfile version W coincides with the tree's latest revision R, then 197 ;; workfile version W coincides with the tree's latest revision R, then
198 ;; this check prevents a "no such revision: R+1" error. Otherwise, it 198 ;; this check prevents a "no such revision: R+1" error. Otherwise, it
@@ -328,7 +328,7 @@ The changes are between FIRST-VERSION and SECOND-VERSION."
328 ;; file properties accordingly. 328 ;; file properties accordingly.
329 (with-current-buffer (get-buffer "*vc*") 329 (with-current-buffer (get-buffer "*vc*")
330 (goto-char (point-min)) 330 (goto-char (point-min))
331 ;; get new workfile version 331 ;; get new working revision
332 (if (re-search-forward 332 (if (re-search-forward
333 "^\\(Updated to\\|At\\) revision \\([0-9]+\\)" nil t) 333 "^\\(Updated to\\|At\\) revision \\([0-9]+\\)" nil t)
334 (vc-file-setprop file 'vc-working-revision (match-string 2)) 334 (vc-file-setprop file 'vc-working-revision (match-string 2))
@@ -393,7 +393,7 @@ The changes are between FIRST-VERSION and SECOND-VERSION."
393 buffer 393 buffer
394 (if (and (= (length files) 1) (vc-stay-local-p (car files)) (fboundp 'start-process)) 'async 0) 394 (if (and (= (length files) 1) (vc-stay-local-p (car files)) (fboundp 'start-process)) 'async 0)
395 files "log" 395 files "log"
396 ;; By default Subversion only shows the log upto the working version, 396 ;; By default Subversion only shows the log upto the working revision,
397 ;; whereas we also want the log of the subsequent commits. At least 397 ;; whereas we also want the log of the subsequent commits. At least
398 ;; that's what the vc-cvs.el code does. 398 ;; that's what the vc-cvs.el code does.
399 "-rHEAD:0"))) 399 "-rHEAD:0")))
@@ -404,7 +404,7 @@ The changes are between FIRST-VERSION and SECOND-VERSION."
404 nil) 404 nil)
405 405
406(defun vc-svn-diff (files &optional oldvers newvers buffer) 406(defun vc-svn-diff (files &optional oldvers newvers buffer)
407 "Get a difference report using SVN between two versions of fileset FILES." 407 "Get a difference report using SVN between two revisions of fileset FILES."
408 (and oldvers 408 (and oldvers
409 (catch 'no 409 (catch 'no
410 (dolist (f files) 410 (dolist (f files)
@@ -446,7 +446,7 @@ The changes are between FIRST-VERSION and SECOND-VERSION."
446;;; 446;;;
447 447
448(defun vc-svn-create-snapshot (dir name branchp) 448(defun vc-svn-create-snapshot (dir name branchp)
449 "Assign to DIR's current version a given NAME. 449 "Assign to DIR's current revision a given NAME.
450If BRANCHP is non-nil, the name is created as a branch (and the current 450If BRANCHP is non-nil, the name is created as a branch (and the current
451workspace is immediately moved to that new branch). 451workspace is immediately moved to that new branch).
452NAME is assumed to be a URL." 452NAME is assumed to be a URL."
@@ -602,8 +602,8 @@ information about FILENAME and return its status."
602 (and (string-match "^[a-zA-Z]" tag) 602 (and (string-match "^[a-zA-Z]" tag)
603 (not (string-match "[^a-z0-9A-Z-_]" tag)))) 603 (not (string-match "[^a-z0-9A-Z-_]" tag))))
604 604
605(defun vc-svn-valid-version-number-p (tag) 605(defun vc-svn-valid-revision-number-p (tag)
606 "Return non-nil if TAG is a valid version number." 606 "Return non-nil if TAG is a valid revision number."
607 (and (string-match "^[0-9]" tag) 607 (and (string-match "^[0-9]" tag)
608 (not (string-match "[^0-9]" tag)))) 608 (not (string-match "[^0-9]" tag))))
609 609