aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond2007-10-06 08:56:58 +0000
committerEric S. Raymond2007-10-06 08:56:58 +0000
commit0d0e935627c816569b76b1258ea7bf70360cff09 (patch)
treefec2bf91e9561bb24bae741f7fd653d2c99137b9
parent6cff77fd8a2d80eae2ae9bb8be115455cd0de418 (diff)
downloademacs-0d0e935627c816569b76b1258ea7bf70360cff09.tar.gz
emacs-0d0e935627c816569b76b1258ea7bf70360cff09.zip
Terminology sync, workfile version -> focus version.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/vc.el67
2 files changed, 38 insertions, 33 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c727d5f7f82..96c142b3024 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12007-10-06 Eric S. Raymond <esr@snark.thyrsus.com>
2
3 * vc.el: workfile version -> focus version change.
4
12007-10-06 Aaron Hawley <aaronh@garden.org> 52007-10-06 Aaron Hawley <aaronh@garden.org>
2 6
3 * autoinsert.el (auto-insert-alist): Add a Texinfo entry. 7 * autoinsert.el (auto-insert-alist): Add a Texinfo entry.
diff --git a/lisp/vc.el b/lisp/vc.el
index 874213698ca..b9c2efff34e 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -89,7 +89,7 @@
89;; VC keeps some per-file information in the form of properties (see 89;; VC keeps some per-file information in the form of properties (see
90;; vc-file-set/getprop in vc-hooks.el). The backend-specific functions 90;; vc-file-set/getprop in vc-hooks.el). The backend-specific functions
91;; do not generally need to be aware of these properties. For example, 91;; do not generally need to be aware of these properties. For example,
92;; `vc-sys-workfile-version' should compute the workfile version and 92;; `vc-sys-workfile-version' should compute the focus version and
93;; return it; it should not look it up in the property, and it needn't 93;; return it; it should not look it up in the property, and it needn't
94;; store it there either. However, if a backend-specific function does 94;; store it there either. However, if a backend-specific function does
95;; store a value in a property, that value takes precedence over any 95;; store a value in a property, that value takes precedence over any
@@ -143,14 +143,14 @@
143;; 143;;
144;; * workfile-version (file) 144;; * workfile-version (file)
145;; 145;;
146;; Return the current workfile version of FILE. 146;; Return the current focus version of FILE.
147;; 147;;
148;; - latest-on-branch-p (file) 148;; - latest-on-branch-p (file)
149;; 149;;
150;; Return non-nil if the current workfile version of FILE is the latest 150;; Return non-nil if the focus version of FILE is the latest version
151;; on its branch. The default implementation always returns t, which 151;; on its branch (many VCSes call this the 'tip' or 'head' version).
152;; means that working with non-current versions is not supported by 152;; The default implementation always returns t, which means that
153;; default. 153;; working with non-current versions is not supported by default.
154;; 154;;
155;; * checkout-model (file) 155;; * checkout-model (file)
156;; 156;;
@@ -159,13 +159,14 @@
159;; 159;;
160;; - workfile-unchanged-p (file) 160;; - workfile-unchanged-p (file)
161;; 161;;
162;; Return non-nil if FILE is unchanged from its current workfile 162;; Return non-nil if FILE is unchanged from the focus version. This
163;; version. This function should do a brief comparison of FILE's 163;; function should do a brief comparison of FILE's contents with
164;; contents with those of the master version. If the backend does not 164;; those of the repository version. If the backend does not have
165;; have such a brief-comparison feature, the default implementation of 165;; such a brief-comparison feature, the default implementation of
166;; this function can be used, which delegates to a full 166;; this function can be used, which delegates to a full
167;; vc-BACKEND-diff. (Note that vc-BACKEND-diff must not run 167;; vc-BACKEND-diff. (Note that vc-BACKEND-diff must not run
168;; asynchronously in this case, see variable `vc-disable-async-diff'.) 168;; asynchronously in this case, see variable
169;; `vc-disable-async-diff'.)
169;; 170;;
170;; - mode-line-string (file) 171;; - mode-line-string (file)
171;; 172;;
@@ -252,7 +253,7 @@
252;; Check out revision REV of FILE into the working area. If EDITABLE 253;; Check out revision REV of FILE into the working area. If EDITABLE
253;; is non-nil, FILE should be writable by the user and if locking is 254;; is non-nil, FILE should be writable by the user and if locking is
254;; used for FILE, a lock should also be set. If REV is non-nil, that 255;; used for FILE, a lock should also be set. If REV is non-nil, that
255;; is the revision to check out (default is current workfile version). 256;; is the revision to check out (default is the focus version).
256;; If REV is t, that means to check out the head of the current branch; 257;; If REV is t, that means to check out the head of the current branch;
257;; if it is the empty string, check out the head of the trunk. 258;; if it is the empty string, check out the head of the trunk.
258;; The implementation should pass the value of vc-checkout-switches 259;; The implementation should pass the value of vc-checkout-switches
@@ -284,10 +285,10 @@
284;; 285;;
285;; - steal-lock (file &optional version) 286;; - steal-lock (file &optional version)
286;; 287;;
287;; Steal any lock on the current workfile version of FILE, or on 288;; Steal any lock on the focus version of FILE, or on VERSION if
288;; VERSION if that is provided. This function is only needed if 289;; that is provided. This function is only needed if locking is
289;; locking is used for files under this backend, and if files can 290;; used for files under this backend, and if files can indeed be
290;; indeed be locked by other users. 291;; locked by other users.
291;; 292;;
292;; HISTORY FUNCTIONS 293;; HISTORY FUNCTIONS
293;; 294;;
@@ -340,13 +341,13 @@
340;; 341;;
341;; Insert the diff for FILE into BUFFER, or the *vc-diff* buffer if 342;; Insert the diff for FILE into BUFFER, or the *vc-diff* buffer if
342;; BUFFER is nil. If REV1 and REV2 are non-nil, report differences 343;; BUFFER is nil. If REV1 and REV2 are non-nil, report differences
343;; from REV1 to REV2. If REV1 is nil, use the current workfile 344;; from REV1 to REV2. If REV1 is nil, use the focus version (as
344;; version (as found in the repository) as the older version; if 345;; found in the repository) as the older version; if REV2 is nil,
345;; REV2 is nil, use the current workfile contents as the newer 346;; use the current working-copy contents as the newer version. This
346;; version. This function should pass the value of (vc-switches 347;; function should pass the value of (vc-switches BACKEND 'diff) to
347;; BACKEND 'diff) to the backend command. It should return a status 348;; the backend command. It should return a status of either 0 (no
348;; of either 0 (no differences found), or 1 (either non-empty diff 349;; differences found), or 1 (either non-empty diff or the diff is
349;; or the diff is run asynchronously). 350;; run asynchronously).
350;; 351;;
351;; - revision-completion-table (file) 352;; - revision-completion-table (file)
352;; 353;;
@@ -754,7 +755,7 @@ List of factors, used to expand/compress the time scale. See `vc-annotate'."
754 (define-key m "L" 'vc-annotate-show-log-revision-at-line) 755 (define-key m "L" 'vc-annotate-show-log-revision-at-line)
755 (define-key m "N" 'vc-annotate-next-version) 756 (define-key m "N" 'vc-annotate-next-version)
756 (define-key m "P" 'vc-annotate-prev-version) 757 (define-key m "P" 'vc-annotate-prev-version)
757 (define-key m "W" 'vc-annotate-workfile-version) 758 (define-key m "W" 'vc-annotate-focus-version)
758 m) 759 m)
759 "Local keymap used for VC-Annotate mode.") 760 "Local keymap used for VC-Annotate mode.")
760 761
@@ -1865,8 +1866,8 @@ saving the buffer."
1865 1866
1866(defun vc-version-diff (file rev1 rev2) 1867(defun vc-version-diff (file rev1 rev2)
1867 "List the differences between FILE's versions REV1 and REV2. 1868 "List the differences between FILE's versions REV1 and REV2.
1868If REV1 is empty or nil it means to use the current workfile version; 1869If REV1 is empty or nil it means to use the focus version;
1869REV2 empty or nil means the current file contents. FILE may also be 1870REV2 empty or nil means the working-copy contents. FILE may also be
1870a directory, in that case, generate diffs between the correponding 1871a directory, in that case, generate diffs between the correponding
1871versions of all registered files in or below it." 1872versions of all registered files in or below it."
1872 (interactive 1873 (interactive
@@ -1917,7 +1918,7 @@ versions of all registered files in or below it."
1917 (insert "Diffs between " 1918 (insert "Diffs between "
1918 (or rev1 "last version checked in") 1919 (or rev1 "last version checked in")
1919 " and " 1920 " and "
1920 (or rev2 "current workfile(s)") 1921 (or rev2 "working copy")
1921 ":\n\n")) 1922 ":\n\n"))
1922 (let ((dir (file-name-as-directory file))) 1923 (let ((dir (file-name-as-directory file)))
1923 (vc-call-backend (vc-responsible-backend dir) 1924 (vc-call-backend (vc-responsible-backend dir)
@@ -1965,7 +1966,7 @@ If `F.~REV~' already exists, use it instead of checking it out again."
1965 (vc-ensure-vc-buffer) 1966 (vc-ensure-vc-buffer)
1966 (let ((completion-table 1967 (let ((completion-table
1967 (vc-call revision-completion-table buffer-file-name)) 1968 (vc-call revision-completion-table buffer-file-name))
1968 (prompt "Version to visit (default is workfile version): ")) 1969 (prompt "Version to visit (default is focus version): "))
1969 (list 1970 (list
1970 (if completion-table 1971 (if completion-table
1971 (completing-read prompt completion-table) 1972 (completing-read prompt completion-table)
@@ -2582,8 +2583,8 @@ the current branch are merged into the working file."
2582(defun vc-version-backup-file (file &optional rev) 2583(defun vc-version-backup-file (file &optional rev)
2583 "Return name of backup file for revision REV of FILE. 2584 "Return name of backup file for revision REV of FILE.
2584If version backups should be used for FILE, and there exists 2585If version backups should be used for FILE, and there exists
2585such a backup for REV or the current workfile version of file, 2586such a backup for REV or the focus version of file, return
2586return its name; otherwise return nil." 2587its name; otherwise return nil."
2587 (when (vc-call make-version-backups-p file) 2588 (when (vc-call make-version-backups-p file)
2588 (let ((backup-file (vc-version-backup-file-name file rev))) 2589 (let ((backup-file (vc-version-backup-file-name file rev)))
2589 (if (file-exists-p backup-file) 2590 (if (file-exists-p backup-file)
@@ -3210,7 +3211,7 @@ cover the range from the oldest annotation to the newest."
3210 ["Annotate next revision" vc-annotate-next-version] 3211 ["Annotate next revision" vc-annotate-next-version]
3211 ["Annotate revision at line" vc-annotate-revision-at-line] 3212 ["Annotate revision at line" vc-annotate-revision-at-line]
3212 ["Annotate revision previous to line" vc-annotate-revision-previous-to-line] 3213 ["Annotate revision previous to line" vc-annotate-revision-previous-to-line]
3213 ["Annotate latest revision" vc-annotate-workfile-version] 3214 ["Annotate latest revision" vc-annotate-focus-version]
3214 ["Show log of revision at line" vc-annotate-show-log-revision-at-line] 3215 ["Show log of revision at line" vc-annotate-show-log-revision-at-line]
3215 ["Show diff of revision at line" vc-annotate-show-diff-revision-at-line])) 3216 ["Show diff of revision at line" vc-annotate-show-diff-revision-at-line]))
3216 3217
@@ -3336,8 +3337,8 @@ versions after."
3336 (interactive "p") 3337 (interactive "p")
3337 (vc-annotate-warp-version prefix)) 3338 (vc-annotate-warp-version prefix))
3338 3339
3339(defun vc-annotate-workfile-version () 3340(defun vc-annotate-focus-version ()
3340 "Visit the annotation of the workfile version of this file." 3341 "Visit the annotation of the focus version of this file."
3341 (interactive) 3342 (interactive)
3342 (if (not (equal major-mode 'vc-annotate-mode)) 3343 (if (not (equal major-mode 'vc-annotate-mode))
3343 (message "Cannot be invoked outside of a vc annotate buffer") 3344 (message "Cannot be invoked outside of a vc annotate buffer")