diff options
| author | André Spiegel | 1996-12-26 12:07:05 +0000 |
|---|---|---|
| committer | André Spiegel | 1996-12-26 12:07:05 +0000 |
| commit | 8172cd867b0c9d1337442712c0ecd7c6e0edaec0 (patch) | |
| tree | 56ce4e49bb43c87667d682f04ae4f93ddea72a72 /lisp | |
| parent | 2a11c6f32f998b0f7374f177b2b5ca98be52b7cd (diff) | |
| download | emacs-8172cd867b0c9d1337442712c0ecd7c6e0edaec0.tar.gz emacs-8172cd867b0c9d1337442712c0ecd7c6e0edaec0.zip | |
(vc-next-action-on-file, vc-update-change-log,
vc-backend-checkout, vc-backend-steal): Use `vc-user-login-name'
instead of `user-login-name'.
(vc-update-change-log): If `user-full-name' is nil, try
`user-login-name'. Failing that, use uid as a string.
(vc-make-buffer-writable-hook): Removed (was unused).
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/vc.el | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/lisp/vc.el b/lisp/vc.el index 7c7cdced2ea..284695db76d 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -128,12 +128,6 @@ walk file trees.") | |||
| 128 | (defvar vc-checkin-hook nil | 128 | (defvar vc-checkin-hook nil |
| 129 | "*List of functions called after a checkin is done. See `run-hooks'.") | 129 | "*List of functions called after a checkin is done. See `run-hooks'.") |
| 130 | 130 | ||
| 131 | (defvar vc-make-buffer-writable-hook nil | ||
| 132 | "*List of functions called when a buffer is made writable. See `run-hooks.' | ||
| 133 | This hook is only used when the version control system is CVS. It | ||
| 134 | might be useful for sites who uses locking with CVS, or who uses link | ||
| 135 | farms to gold trees.") | ||
| 136 | |||
| 137 | ;; Header-insertion hair | 131 | ;; Header-insertion hair |
| 138 | 132 | ||
| 139 | (defvar vc-header-alist | 133 | (defvar vc-header-alist |
| @@ -666,7 +660,7 @@ to an optional list of FLAGS." | |||
| 666 | 660 | ||
| 667 | ;; a checked-out version exists, but the user may not own the lock | 661 | ;; a checked-out version exists, but the user may not own the lock |
| 668 | ((and (not (eq vc-type 'CVS)) | 662 | ((and (not (eq vc-type 'CVS)) |
| 669 | (not (string-equal owner (user-login-name)))) | 663 | (not (string-equal owner (vc-user-login-name)))) |
| 670 | (if comment | 664 | (if comment |
| 671 | (error "Sorry, you can't steal the lock on %s this way" file)) | 665 | (error "Sorry, you can't steal the lock on %s this way" file)) |
| 672 | (and (eq vc-type 'RCS) | 666 | (and (eq vc-type 'RCS) |
| @@ -1810,7 +1804,9 @@ default directory." | |||
| 1810 | nil))) | 1804 | nil))) |
| 1811 | (let ((odefault default-directory) | 1805 | (let ((odefault default-directory) |
| 1812 | (full-name (or add-log-full-name | 1806 | (full-name (or add-log-full-name |
| 1813 | (user-full-name))) | 1807 | (user-full-name) |
| 1808 | (user-login-name) | ||
| 1809 | (format "uid%d" (number-to-string (user-uid))))) | ||
| 1814 | (mailing-address (or add-log-mailing-address | 1810 | (mailing-address (or add-log-mailing-address |
| 1815 | user-mail-address))) | 1811 | user-mail-address))) |
| 1816 | (find-file-other-window (find-change-log)) | 1812 | (find-file-other-window (find-change-log)) |
| @@ -1823,7 +1819,7 @@ default directory." | |||
| 1823 | (message "Computing change log entries... %s" | 1819 | (message "Computing change log entries... %s" |
| 1824 | (if (eq 0 (apply 'call-process "rcs2log" nil '(t nil) nil | 1820 | (if (eq 0 (apply 'call-process "rcs2log" nil '(t nil) nil |
| 1825 | "-u" | 1821 | "-u" |
| 1826 | (concat (user-login-name) | 1822 | (concat (vc-user-login-name) |
| 1827 | "\t" | 1823 | "\t" |
| 1828 | full-name | 1824 | full-name |
| 1829 | "\t" | 1825 | "\t" |
| @@ -2044,7 +2040,7 @@ default directory." | |||
| 2044 | ((not workfile) | 2040 | ((not workfile) |
| 2045 | (vc-file-clear-masterprops file) | 2041 | (vc-file-clear-masterprops file) |
| 2046 | (if writable | 2042 | (if writable |
| 2047 | (vc-file-setprop file 'vc-locking-user (user-login-name))) | 2043 | (vc-file-setprop file 'vc-locking-user (vc-user-login-name))) |
| 2048 | (vc-file-setprop file | 2044 | (vc-file-setprop file |
| 2049 | 'vc-checkout-time (nth 5 (file-attributes file))))) | 2045 | 'vc-checkout-time (nth 5 (file-attributes file))))) |
| 2050 | (message "Checking out %s...done" filename)))))) | 2046 | (message "Checking out %s...done" filename)))))) |
| @@ -2204,7 +2200,7 @@ default directory." | |||
| 2204 | "-M" (concat "-u" rev) (concat "-l" rev)) | 2200 | "-M" (concat "-u" rev) (concat "-l" rev)) |
| 2205 | (error "You cannot steal a CVS lock; there are no CVS locks to steal") ;CVS | 2201 | (error "You cannot steal a CVS lock; there are no CVS locks to steal") ;CVS |
| 2206 | ) | 2202 | ) |
| 2207 | (vc-file-setprop file 'vc-locking-user (user-login-name)) | 2203 | (vc-file-setprop file 'vc-locking-user (vc-user-login-name)) |
| 2208 | (message "Stealing lock on %s...done" file) | 2204 | (message "Stealing lock on %s...done" file) |
| 2209 | ) | 2205 | ) |
| 2210 | 2206 | ||