1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-25 19:11:56 +00:00
Commit Graph

114 Commits

Author SHA1 Message Date
Richard M. Stallman
80688f5c3b (vc-backend-checkin): When CVS checks in a file, it is
immediately checked out again, so set vc-checkout-time.

(vc-fetch-properties): CVS 1.4A1 says "Repository revision".

(vc-locking-user): Do something sensible when the backend
is CVS.  May return a numerical UID or a string when CVS is used.
(vc-dired-reformat-line): Handle numerical arguments.

(vc-backend-checkout): Don't extract CVS files twice.

(vc-next-action-on-file): Handle return value from
vc-backend-merge-news correctly.

(vc-rename-file): Fixed call to vc-backend-dispatch.
(vc-make-buffer-writable-hook): New hook, for CVS only.
(vc-header-alist): Added header for CVS.
(vc-next-action-on-file): Added support for CVS.
(vc-next-action, vc-checkin, vc-revert-buffer): Doc fixes.
(vc-rename-file): Disable if the backend is CVS.
(vc-log-info): New arguments: LAST and FLAGS, passed on to
vc-do-command.  All callers updated.
(vc-fetch-properties): Implement support for CVS files.

(vc-backend-checkin): Args REV and COMMENT no longer optional.
Implement support for CVS.
(vc-backend-revert): Implement support for CVS.
(vc-backend-diff): Treat files which are added, but not yet committed,
specially (diff them against /dev/null).
(vc-backend-merge-news): New function.
(vc-log-mode): Talk a little about CVS in the comment.

(vc-log-info): Simplify code.

(vc-do-command): New argument LAST.  All callers updated.
Legal values for LAST are 'MASTER and 'BASE.
(vc-backend-dispatch): New argument C, used by CVS.  All callers
updated, but many just passes an (error "NYI") form.
(vc-backend-admin): Issue a "cvs add" (but not a "cvs commit").
(vc-backend-checkout, vc-backend-logentry-check, vc-backend-print-log,
vc-backend-assign-name, vc-backend-diff, vc-check-headers): Handle CVS.
(vc-backend-steal, vc-backend-uncheck): Give error if using CVS.

(vc-backend-diff): Fixed typo in SCCS code.
1994-10-03 21:57:47 +00:00
Richard M. Stallman
e837a82fd7 (vc-register): Verify an old master file really still exists
before giving error.  If it has disappeared, ask for confirmation.
1994-10-02 01:49:29 +00:00
Richard M. Stallman
6242bee463 (vc-finish-steal): Fix typo in previous change. 1994-09-24 01:10:23 +00:00
Richard M. Stallman
3e3da61f35 (vc-finish-steal): Do vc-resynch-window in the right buffer.
(vc-steal-lock): Delete spurious reference to `configuration'.
1994-09-24 01:08:40 +00:00
Richard M. Stallman
29fc1ce993 (vc-backend-checkout): Add if-statements to the shell cmds
to discard the extra arg some shells make.

(vc-rename-file): Add autoload cookie.

(vc-steal-lock): (1) Function should be non-interactive, because it
doesn't work when called directly by the user. (2) Don't display
revision "nil" when stealing lock if revision is unknown.  (3) Put
"Stolen lock on <file>" instead of just the file name in the Subject
of the notification message.
1994-09-24 00:58:07 +00:00
Richard M. Stallman
eadcb02c53 (vc-do-command): Temporarily add vc-path to the end of PATH. 1994-09-11 08:36:36 +00:00
Richard M. Stallman
c9ce5e2c7a (vc-backend-checkout): Don't use -G for SCCS. 1994-08-26 00:05:30 +00:00
Richard M. Stallman
6bcb1d4ede (vc-admin): Pass nil as last arg to vc-start-entry. 1994-08-18 00:38:13 +00:00
Richard M. Stallman
dbf87856a1 Comment change. 1994-07-26 20:37:32 +00:00
Richard M. Stallman
cdaf7a1a56 (vc-next-action): Even in 1-file case, get its name from FILES.
(vc-finish-logentry): Don't do vc-buffer-sync on the parent buffer
when that parent buffer is a dired buffer.
1994-07-26 20:34:16 +00:00
Richard M. Stallman
5c6f8be0d2 At compile time, require dired.
(vc-finish-logentry): Use the proper files buffer for vc-buffer-sync.
1994-07-19 22:30:06 +00:00
Richard M. Stallman
e2bef5c3a2 (vc-finish-logentry): Use the value of vc-log-after-operation-hook of
*VC-log* buffer instead of vc-parent-buffer.
1994-07-13 09:34:01 +00:00
Richard M. Stallman
b965445fdf (vc-start-entry): New arg after-hook.
Set vc-log-operation-hook locally.
(vc-next-action-on-file): Not here.
(vc-admin): Pass new arg.
(vc-checkin): Pass new arg instead of setting vc-log-operation-hook.
1994-07-06 22:08:03 +00:00
Richard M. Stallman
ce37bf2068 (vc-update-change-log): Pass a -n option to rcs2log. 1994-07-02 04:49:30 +00:00
Karl Heuer
d733c5ec03 Update copyright. 1994-05-03 22:46:37 +00:00
Richard M. Stallman
cec574b950 (vc-backend-diff): Test of cmp was backwards. 1994-04-22 04:31:27 +00:00
Richard M. Stallman
61446fe76f (vc-checkin): Undo previous change. 1994-03-30 02:14:11 +00:00
Roland McGrath
32eff0b035 (vc-checkin): Insert name of current defun in comment buffer. 1994-03-29 00:03:10 +00:00
Richard M. Stallman
4561b08b0a Comment change. 1994-02-18 19:46:53 +00:00
Paul Eggert
47ca02a62c (vc-lookup-triple): Yield nil, not "", if NAME is nil.
Otherwise vc-revert-buffer fails with SCCS.
1994-02-18 02:51:33 +00:00
Karl Heuer
412082915f (vc-comment-to-change-log): Load add-log before binding
add-log-current-defun-function.
1994-02-09 23:02:28 +00:00
Eric S. Raymond
1892807a4d vc-parse-buffer: arrange for old properties to get cleared when their
match string is not found in the master file.
1994-02-02 03:27:26 +00:00
Richard M. Stallman
d0b81713e0 Comment change. 1994-01-14 14:16:29 +00:00
Paul Eggert
b2396d1f39 (vc-finish-logentry): Sync the buffer in case the user modified it while
editing the comment.
1994-01-03 20:53:26 +00:00
Richard M. Stallman
97d3f95071 (vc-buffer-sync, vc-diff): New arg NOT-URGENT.
(vc-diff): Pass new arg.
1993-12-24 23:07:23 +00:00
Richard M. Stallman
7d847440c5 (vc-record-rename): Don't use replace-regexp. 1993-12-23 02:51:19 +00:00
Paul Eggert
9a51ed3ae4 (vc-workfile-unchanged-p): Add optional argument
specifying whether we want to compute the differences if the
file is changed.  Otherwise, use cmp instead of diff.
(vc-next-action-on-file): Use new vc-workfile-unchanged-p option;
this avoids recomputing the differences in some cases.
(vc-backend-diff): OLDVERS is now optional; all callers changed.
New optional argument CMP says to use `cmp' rather than `diff'.
1993-12-03 09:30:38 +00:00
Paul Eggert
73960ffd67 (vc-locking-user): Don't assume that the umask permits
group-write and other-write.
1993-12-02 07:47:48 +00:00
Richard M. Stallman
bbf97570e5 (vc-buffer-sync): Signal error if user says no. 1993-11-27 11:39:02 +00:00
Eric S. Raymond
ba5c3004d3 vc-static-header-alist shouldn't have been declared const. 1993-11-15 04:13:48 +00:00
Richard M. Stallman
d52f0de91e (vc-rename-file): Don't overwrite an existing file.
Fix test for unsaved files.
Calculate name of new master file properly.
1993-11-12 22:31:12 +00:00
Paul Eggert
219a7d3fd6 (vc-backend-checkout): Do not set umask to value that does not allow
user-write permission while `co' is running; some versions of `co'
won't work, because they can't write their temporaries.
1993-10-14 18:28:24 +00:00
Eric S. Raymond
9a47d40b55 (vc-next-action) Fix (throw ... ) invocation to work with 19; this
allows vc-next-action on all marked files in a dired buffer to work.

(vc-finish-logentry) There isn't necessarily a *VC-log-entry* buffer
to remove if this function was called from within a dired buffer.  Fix
its handling of this case.
1993-10-04 20:51:01 +00:00
Paul Eggert
deb9ebc6cb (vc-find-binary): Fix bug; it always claimed success. 1993-09-27 04:36:31 +00:00
Brian Fox
4805f679cd (vc-do-command): Remove debugging output. Use (forward-line -1) instead
of (previous-line 1).
(vc-print-log): Delete extraneous lines of RCS output if present.
1993-09-21 07:51:53 +00:00
Paul Eggert
f181899408 (vc-version-other-window): New function.
(vc-backend-checkout): Add optional arg workfile, which specifies where
to put the working file.
1993-09-15 23:19:13 +00:00
Paul Eggert
fd6217ac0c (vc-backend-steal): Fix typo when invoking the 'rcs' command
to steal the lock.
1993-09-08 19:06:01 +00:00
Paul Eggert
1dabb4e676 (vc-locked-example): Renamed from vc-quiescent-p. Now yields example of
why current directory is not quiescent.  All callers changed to use this.
1993-08-27 03:55:16 +00:00
Paul Eggert
c6bfcd1295 (vc-previous-comment): Use mod', not ring-mod'. 1993-08-10 04:14:17 +00:00
Jim Blandy
064726ac89 * vc.el (vc-diff, vc-directory-18): Add missing paren to end of
vc-diff, and remove extra paren from vc-directory-18.
1993-08-08 00:44:26 +00:00
Richard M. Stallman
4c2d8cf9b5 (vc-shrink-to-fit): Deleted. All callers changed to use
the new, fixed `shrink-window-if-larger-than-buffer' instead.
In some places move it after a (goto-char (point-min)).
1993-07-31 01:05:33 +00:00
Richard M. Stallman
af1b8606a7 (vc-backend-steal): Pass arg omitted in last change. 1993-07-25 22:36:03 +00:00
Paul Eggert
d76b8d38bc > (vc-backend-revert): Use `co -f' instead of deleting the
working file ourselves; that way, if `co' fails, we won't have
deleted the working file.
(vc-backend-steal):  Don't delete the working file.  Use `rcs -u -l',
not `rcs -u ; rcs -l'; it's faster.  Use vc-backend-dispatch -- the
old code couldn't have possibly worked.
1993-07-22 10:57:46 +00:00
Roland McGrath
43cea1ab61 (vc-comment-to-change-log): Copy interactive spec from
add-change-log-entry-other-window.  Call add-change-log-entry instead of
add-change-log-entry-other-window; pass it t for OTHER-WINDOW and NEW-ENTRY
args.  Go to bol before filling.
1993-07-19 01:01:17 +00:00
Roland McGrath
c124b1b47a (vc-comment-to-change-log): Canonicalize following whitespace after
filling, not before.  Set END to point at end of indentation.
Skip whitespace chars up to END before skipping back to delete.
1993-07-19 00:06:14 +00:00
Roland McGrath
3b4dd9a931 (vc-comment-to-change-log): Complete rewrite. Do not use
vc-update-change-log.  Instead, snarf last comment from vc-comment-ring and
insert it with add-change-log-entry-other-window.
1993-07-18 23:54:45 +00:00
Jim Blandy
cf50f71757 * vc.el (vc-start-entry): Don't call file-name-nondirectory on
FILE before passing it to vc-mode-line.  Everyplace else passes
	vc-mode-line full filenames, and vc-mode-line now needs the real
	file name to decide which version-control system the file is under.
1993-07-06 06:18:50 +00:00
Paul Eggert
2bd5041b8e (vc-name): Move to vc-hooks.el. 1993-07-05 03:20:12 +00:00
Paul Eggert
d64ca902f7 (vc-backend-diff): Undo "-q" change. This was fixed instead by adding
-q support to vcdiff.
1993-07-04 18:54:59 +00:00
Richard M. Stallman
282aa6a2d2 (vc-path): New variable.
(vc-do-command): Use vc-path.
1993-07-02 21:46:42 +00:00