Commit graph

44 commits

Author SHA1 Message Date
Roland McGrath
38179d4288 (vc-status): If vc-locking-user returns a number, compare it to (user-uid). 1995-05-12 16:39:32 +00:00
Karl Heuer
e1c0c2d1bf (vc-default-backend, vc-path, vc-consult-headers):
(vc-mistrust-permissions, vc-keep-workfiles): Customization
variables, moved here from vc.el.
(vc-trunk-p, vc-minor-revision, vc-branch-part): Moved to vc.el.
(vc-backend): Renamed from vc-backend-deduce.  Callers changed.
(vc-match-substring, vc-lock-file, vc-parse-buffer, vc-master-info):
(vc-log-info, vc-consult-rcs-headers, vc-fetch-properties):
(vc-backend-subdirectory-name, vc-locking-user, vc-true-locking-user):
(vc-latest-version, vc-your-latest-version, vc-branch-version):
(vc-workfile-version): Functions moved here from vc.el.
(vc-log-info): Log program is no longer called through vc-do-command,
to avoid including the lengthy vc-do-command here.  It is done
directly through call-process now.  Removed obsolete parameter LAST.
(vc-status): Replaced by the much simpler version that gets the
information from the file properties.  Removed the obsolete
parameter vc-type.
(vc-parse-buffer): changed format of PATTERNS.  Each pattern is now a
list of 2 to 3 elements, the first being the pattern, the remaining
ones the numbers of subexpressions to refer to.
(vc-cvs-status): New per-file property, only used in the CVS case.
(vc-cvs-status): New function.
(vc-log-info): Adapted to new version of vc-parse-buffer
(vc-fetch-properties): Adapted to new version of vc-parse-buffer.
Better search regexp for CVS latest version.
(vc-log-info): Search for branch version only in the RCS case,
since this doesn't make sense for SCCS or CVS.
(vc-fetch-properties): CVS case: set vc-cvs-status.
(vc-locking-user): CVS case: use vc-cvs-status to determine if
the file is up-to-date, thus avoiding an expensive call to
vc-workfile-unchanged-p.
(vc-mode-line): Re-activated the code that makes the buffer read-only
if the work file is unchanged.  But the status of the work file
is now determined by looking at the already-computed mode string.
1995-04-26 21:42:20 +00:00
Richard M. Stallman
f2ee419195 (vc-buffer-backend): New function.
Also new variable, local in all buffers.
(vc-kill-buffer-hook): Kill local vc-buffer-backend.

(vc-kill-buffer-hook): Don't put it on kill-buffer-hook.
(vc-file-clearprops): Function moved here.
(vc-workfile-version): Function moved here.
(vc-mode-line): Don't call vc-locking-user.

Add branch support for RCS;  treat CVS more like RCS and SCCS.
(vc-occurences, vc-trunk-p, vc-branch-p, vc-minor-revision)
(vc-branch-part): new functions that operate on RCS revision numbers.
(vc-status): Use the new property vc-workfile-version
and vc-locking-user (see vc.el).  Display "locking state" for CVS.
(vc-find-cvs-master): Search for file name case-sensitively, store
version number into the new property vc-workfile-version.
(vc-find-file-hook): kill any remaining properties.  Like this,
when re-finding a file (for example because it has changed on disk),
the version control state gets re-computed.
(vc-mode-line): CVS case: make the buffer read-only if the file
is unmodified.
(vc-kill-buffer-hook): Clear file's vc props when buffer is killed.
1995-04-26 10:15:03 +00:00
Richard M. Stallman
c844616ca6 (vc-toggle-read-only): Accept prefix arg
and pass it along to vc-next-action.
1994-12-15 16:38:05 +00:00
Roland McGrath
b662fbb8b8 Only define items in vc-menu-map if it is boundp. 1994-11-09 12:57:30 +00:00
Thien-Thi Nguyen
adc87157d8 Add maintainer line in header. 1994-11-07 08:29:06 +00:00
Richard M. Stallman
174edc1393 (vc-status): Handle CVS.
(vc-find-cvs-master): New function.
(vc-master-templates): Add vc-find-cvs-master.
(vc-registered): Allow vc-master-templates to contain atoms, and
call them with dirname and basename as arguments.

(vc-mode-line): Use equal, not string-equal, to
compare the result of vc-locking-user.
1994-10-03 21:56:50 +00:00
Richard M. Stallman
624c0e9d14 (vc-menu-map): Set up menu items.
(vc-status): Use vc-path when calling prs.

(vc-status): New arg vc-type.

(vc-file-not-found-hook): Use save-excursion.

(vc-status): Renamed from vc-rcs-status.  Handle SCCS.
(vc-display-status): Renamed from vc-rcs-status.
(vc-mode-line): Call vc-status for SCCS files too.
1994-09-22 02:48:14 +00:00
Richard M. Stallman
19021bfb36 (vc-mode-line): Do nothing if FILE is nil. 1994-05-19 21:58:38 +00:00
Richard M. Stallman
b993101e36 (vc-registered): Use find-file-name-handler. 1994-05-13 07:42:34 +00:00
Karl Heuer
8f1204db34 Update copyright. 1994-05-03 23:47:06 +00:00
Richard M. Stallman
1d88854875 (vc-mode-line): Fix previous change. 1994-04-29 06:25:49 +00:00
Richard M. Stallman
8d51c5cc39 (vc-mode-line): Warn if file is not vc-registered
but is a symlink to a vc-maintained file.
1994-04-24 10:00:51 +00:00
Richard M. Stallman
b5bcaf3ebb (vc-find-file-hook): Set backup-inhibited. 1994-03-27 19:46:27 +00:00
Richard M. Stallman
9228cfacd5 (vc-make-backup-files): Doc fix. 1994-02-04 23:01:27 +00:00
Eric S. Raymond
d4353b2055 (vc-mode-line): use force-mode-line-update instead of the Emacs 18
kluge.
1994-02-02 18:56:02 +00:00
Richard M. Stallman
4a7e63b938 (vc-mode-line): Make buffer read-only for root if file is locked. 1993-12-24 03:12:14 +00:00
Richard M. Stallman
5032bd2307 (vc-make-backup-files): Doc fix.
(vc-rcs-status): Use colon, not dash, in the string LOCKS.
1993-11-25 03:46:27 +00:00
Paul Eggert
c574acf031 (vc-prefix-map): Bind C-x v ~ to vc-version-other-window. 1993-09-15 23:19:13 +00:00
Paul Eggert
6379911ca3 (vc-find-file-hook, vc-file-not-found-hook): Use add-hook to install. 1993-08-27 01:57:48 +00:00
Paul Eggert
e6258b339a (vc-mode-line): Set vc-mode to nil if FILE no longer is version-controlled. 1993-07-29 04:58:47 +00:00
Paul Eggert
b6ff872167 (vc-rcs-status): Removing any trailing "-". 1993-07-27 19:28:46 +00:00
Paul Eggert
f5baea11cb (vc-rcs-status): Use "-", not " ", to separate locks, so that the RCS
minor mode doesn't contain internal spaces.
1993-07-20 02:25:19 +00:00
Paul Eggert
b0c901a35e (vc-rcs-status): Omit "LOCKER:" if you are the locker. 1993-07-19 04:03:52 +00:00
Richard M. Stallman
e4953cae72 (vc-rcs-status): Make work buffer's name start w/ space. 1993-07-15 05:49:21 +00:00
Paul Eggert
45c92c0c56 (vc-rcs-status): Include head version number in mode line if there
are no locks.
1993-07-12 22:04:35 +00:00
Paul Eggert
137fcf3148 (vc-rcs-status): Remove unused var `status'. 1993-07-07 19:07:54 +00:00
Paul Eggert
a03140c851 (vc-name): Moved from vc.el; vc-rcs-status now uses it.
(vc-name, vc-backend-deduce): Set both vc-name and vc-backend
properties, to avoid calling vc-registered unnecessarily when
the other property is needed.
(vc-rcs-status): Yield only status of locks; do not try to yield " REV"
if there are no locks, since this cannot be done easily if there are
branches.  Use vc-name instead of duplicating its function incorrectly.
Fix off-by-one bug when inserting master header pieces.  Read headers
8192 bytes at a time instead of 100.  Don't bother to expand-file-name.
(vc-rcs-glean-field): Removed.
1993-07-05 03:20:12 +00:00
Richard M. Stallman
b45d89b0ef (vc-mode-line): Put RCS' or SCCS' before version num. 1993-07-04 04:53:58 +00:00
Richard M. Stallman
198d5c0098 (vc-rcs-status): New variable.
(vc-mode-line): Display the lock status and head version.
(vc-rcs-status, vc-rcs-glean-field): New function.
1993-06-26 04:01:50 +00:00
Richard M. Stallman
3c9c43d957 (vc-find-file-hook): Check buffer-file-name is non-nil. 1993-06-03 20:29:41 +00:00
Richard M. Stallman
c43e436c21 (vc-mode-line): Don't alter key bindings.
(vc-toggle-read-only): Put on C-x C-q unconditionally.
(vc-mode): Add permanent-local property.
1993-05-01 15:00:34 +00:00
Eric S. Raymond
7bc2b98bd8 vc-mode: name change. 1993-04-08 16:35:57 +00:00
Eric S. Raymond
aae56ea7ca Add standard library headers. 1993-03-17 16:56:02 +00:00
Eric S. Raymond
d629242872 Increment version number to match vc.el's. 1993-03-17 14:01:56 +00:00
Paul Eggert
18c8a18eff Merge today's change by eric with everybody else's
change (from 1992/08/04 through 1993/02/24).
1993-03-16 20:21:05 +00:00
Eric S. Raymond
80169ab539 vc-error-occurred: moved to vc-hooks.el in order for ^X^F of a
nonexistent file to work.
1993-03-16 15:47:45 +00:00
Richard M. Stallman
b26c217c09 (vc-find-file-hook): Discard vc status of file
if we will actually have to create the buffer.
1993-02-24 18:07:12 +00:00
Richard M. Stallman
accd90bd67 (vc-prefix-map): Put vc-diff on = and vc-directory on d. 1992-10-24 20:07:08 +00:00
Richard M. Stallman
8a2816daa6 (vc-registered): Look for handler only if file-name-handler-alist is bound. 1992-10-20 18:43:33 +00:00
Richard M. Stallman
8b8568efad (vc-registered): Look for a vc-registered handler. 1992-10-20 06:44:21 +00:00
Roland McGrath
a61182970f (vc-toggle-read-only): Doc fix.
(vc-mode-line): Add interactive spec.
1992-09-27 00:45:57 +00:00
Jim Blandy
9f1ce56b63 entered into RCS 1992-08-04 07:21:29 +00:00
Eric S. Raymond
594722a807 Initial revision 1992-07-31 22:24:03 +00:00