1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-29 07:58:28 +00:00
Commit Graph

141 Commits

Author SHA1 Message Date
Richard M. Stallman
7e86965908 (vc-start-entry): Prevent lossage when doing a mass checkin from
a VC-dired buffer (Andre Spiegel's code change was slightly wrong).
1995-06-26 23:42:30 +00:00
Richard M. Stallman
9e0cc6e686 (vc-backend-admin, vc-backend-checkin): Assume that
comments are empty if they contain only white space.
1995-06-23 15:50:17 +00:00
Richard M. Stallman
993a1a444f (vc-register): Inhibit backups for the file's buffer
(vc-add-triple, vc-lookup-triple, vc-record-rename):
Use absolute file names to access the SCCS named configuration files
("VC-names").

(vc-retrieve-snapshot): Use vc-checkout instead of
vc-backend-checkout, as the former also updates the current buffer.
(vc-file-tree-walk, vc-file-tree-walk-internal): Use
expand-file-name, so that FUNC gets called with an unabbreviated name.
1995-06-19 13:36:45 +00:00
Richard M. Stallman
b7011339a2 (vc-lookup-triple): changed the code that used to call
vc-master-info, which no longer exists. Adapted to the new
parameter format of vc-parse-buffer.
1995-06-16 18:11:46 +00:00
Richard M. Stallman
d7eff0e04e (vc-backend-dispatch): Move definition before first use. 1995-06-16 18:04:47 +00:00
Richard M. Stallman
88a2ffaf93 Adapt to the changes in vc-hooks.el, namely, the new
'none-value of vc-locking-user, and the consistent caching
of all properties.  Especially, make the properties survive
check-ins and check-outs.  Various minor bug fixes.

(vc-file-clear-masterprops): New function.

(vc-backend-checkin, vc-backend-revert): Set vc-locking-user
to 'none if the file is unlocked.

(vc-backend-checkin, vc-backend-revert, vc-backend-checkout):
Use vc-file-clear-masterprops, and adjust those properties
that are not cleared.

(vc-resynch-window):  Temporarily remove vc-find-file-hook, so
that we don't lose the file properties during check-in/out.

(vc-resynch-window): Do not try to delete the current window if
`vc-keep-workfiles' is nil (doesn't make sense; killing the
buffer is enough.)

(vc-backend-checkin): Rewrote the code that adjusts the default
branch and removes any locks that might remain after check-in.

(vc-cancel-version): Abort with error message in the CVS case.
(The error used to be signalled in vc-backend-uncheck, which is
a little too late.)

(vc-minor-revision): Function removed.
1995-06-16 18:02:51 +00:00
Richard M. Stallman
7d66500869 (vc-backend-checkin): Provide an explicit string saying
the log message is empty instead of providing it as empty.
Always use -m option for ci.
1995-06-14 11:16:17 +00:00
Karl Heuer
d144b02862 (vc-backend-checkin): Handle RCS `co'-output in the event
that a check-in only results in reverting to the previous version.
Also be more robust if the new version number cannot be told from
what `co' says.
1995-06-09 01:21:18 +00:00
Karl Heuer
f1b82fc8cf (vc-register): Check for a visited file first thing. 1995-06-09 01:17:59 +00:00
Karl Heuer
f7aabd88d8 (vc-register): Clean error message if no visited file. 1995-06-07 20:50:55 +00:00
Karl Heuer
c8502397cc (vc-revert-buffer1): Delete the special code for font-lock. 1995-05-29 07:00:06 +00:00
Karl Heuer
f3c61d82f2 (vc-next-action-on-file): Add missing let-binding.
(vc-default-backend, vc-keep-workfiles, vc-consult-headers):
(vc-mistrust-permissions, vc-path): Vars moved to vc-hooks.el.
(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 to vc-hooks.el.
(vc-trunk-p, vc-minor-revision, vc-branch-part): Functions moved
here from vc-hooks.el.
1995-04-26 21:47:35 +00:00
Richard M. Stallman
c6d4f6288a (vc-backend-checkout): Pass vc-checkout-switches arg
properly to vc-do-command.

(vc-update-change-log): Use vc-buffer-backend in menu-enable.

(vc-file-clearprops, vc-workfile-version): Functions moved to vc-hooks.el.

Add branch support for RCS; treat CVS more like RCS and SCCS.
(vc-next-action-on-file): changed CVS handling, such that C-x C-q
works as with RCS and SCCS.
(vc-consult-rcs-headers): New function.
(vc-branch-version): New per-file property, refers
to the RCS version selected by `rcs -b'.
(vc-workfile-version): New function.  Also new per-file property
(vc-consult-headers): New parameter variable.
(vc-mistrust-permissions): Default set to `nil'.
(vc-locking-user): Property is now cached.  The other functions
update it as necessary.  Attempts to use RCS headers if enabled.
(vc-log-info, vc-parse-buffer): Various bug fixes.  Added support
for property `vc-branch-version'.
(vc-backend-checkout): RCS case: if no explicit version
is specified, check out `vc-workfile-version'.  After check-out,
set `vc-workfile-version' according to the version number
reported by "co".
(vc-backend-checkin): RCS case: remove any remaining locks
if a new branch was created.  After every check-in, adjust
the current branch using `rcs -b' (this cannot be avoided).
CVS case: allow for explicit checkin, but only on the trunk.
(vc-next-action-on-file, vc-backend-checkout, vc-backend-checkin,
vc-backend-revert, vc-backend-diff): Explicitly use
vc-workfile-version as the default version to operate on.
1995-04-26 10:12:24 +00:00
Richard M. Stallman
243a81f524 (vc-update-change-log): Use new -u option for rcs2log. 1995-03-21 20:22:41 +00:00
Richard M. Stallman
b75f9a7686 (vc-path): Use /usr/sccs only if it is a dir. 1995-03-11 02:17:04 +00:00
Boris Goldowsky
6b60c5d19f (vc-comment-to-change-log): Remove ^ from paragraph-start & paragraph-separate. 1995-03-02 15:55:09 +00:00
Richard M. Stallman
46cd263f61 (vc-do-command): Search vc-path first, not last. 1995-03-01 08:30:54 +00:00
Roland McGrath
52110560e9 (vc-log-info): Don't switch to the *vc* buffer before running
vc-do-command, because that would change its default-directory.
1995-02-20 09:39:26 +00:00
Richard M. Stallman
632e95254c (vc-do-command): Arrange for the default-directory variable
in *vc* to be re-set each time this function uses it.
Discard current dir from front of FILE later on,
and only if last = `WORKFILE'.

Undo Dec 10 change:
(vc-directory, vc-dired-reformat-line): Changed back.
(vc-directory-18): Old function restored.
(vc-dir-all-files): Function deleted.

(vc-next-action-on-file): If file is not registered,
check file out after registering it.
(vc-next-action-dired): Restore the window configuration after
doing vc-next-action on each file in a VC-dired buffer.
(file-regular-p-18): New function.
(file-regular-p): Define, if not already defined.
1995-01-24 06:33:41 +00:00
Richard M. Stallman
e70bdc9855 Revert Jan 15 and Jan 5 changes. 1995-01-19 07:18:47 +00:00
Roland McGrath
4db1f5aa7b (vc-do-command): Use set-buffer-modified-p instead of not-modified. 1995-01-15 11:00:38 +00:00
Karl Heuer
48ce8399f8 (vc-directory): Prompt for a directory, not a file. 1995-01-14 03:10:53 +00:00
Richard M. Stallman
165d7ff45e (vc-do-command): Change RCS handling so rcsdiff won't strip
away relative-pathname information.  This function no longer sets the
default directory.  Also, mark the *vc* output buffer unmodified.
(vc-revert-buffer1): Handle font-lock mode correctly.
(vc-diff, vc-print-log): vc-do-command no longer sets the default
directory, but doing so	is advantageous for these cases.
(file-executable-p-18):	Better portability to Emacs 18.
(vc-directory-exclusion-list, vc-file-tree-walk-internal):
Implement the new variable vc-directory-exclusion-list to prune
tree walks.  Initial value tells it to ignore SCCS and RCS subdirectories.
1995-01-05 22:11:35 +00:00
Richard M. Stallman
3b5e348ccc (vc-dir-all-files): New function.
(vc-directory): Show just one directory by default.
Read dir name in minibuffer.
(vc-directory-18): Deleted.
1994-12-10 09:15:58 +00:00
Roland McGrath
f797cb30c9 (vc-backend-checkout): Finish last change. 1994-11-22 12:23:40 +00:00
Roland McGrath
0fb16286c2 (vc-checkout-switches): New variable.
(vc-backend-checkout): Use it.
1994-11-22 11:43:54 +00:00
Thien-Thi Nguyen
eceb584fa6 Update maintainer line. 1994-11-07 08:30:11 +00:00
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