summaryrefslogtreecommitdiff
path: root/lisp/vc-hooks.el
Commit message (Collapse)AuthorAgeFilesLines
* Comment change.Richard M. Stallman1996-03-021-1/+1
|
* (vc-find-cvs-master): Don't require a "/" after the modification timePaul Eggert1996-02-261-1/+1
| | | | | in CVS/Entries, since the time may be followed by a conflict notice (in CVS 1.7) or by some other value (in CVS 1.3).
* (vc-follow-link): Kill buffer before creating new one.Richard M. Stallman1996-02-261-2/+2
|
* (vc-follow-link): Simplify by taking advantageRichard M. Stallman1996-02-261-6/+12
| | | | of Feb 21 change in find-file-noselect.
* (vc-follow-link): New function.André Spiegel1996-02-221-3/+14
| | | | (vc-find-file-hook): Use it.
* Move all the put's for menu-enable props to top level.Karl Heuer1996-02-211-14/+14
| | | | (vc-next-action, vc-toggle-read-only): Enable whenever vc-mode.
* (vc-consult-rcs-headers): Ignore text properties.Karl Heuer1996-02-141-5/+9
|
* (vc-utc-string): Remove; it wasn't reliable near DST or leap-secondPaul Eggert1996-01-201-17/+15
| | | | | | | transitions. (vc-find-cvs-master): Convert UTC string to encoded time and compare the results to the file attributes, rather than attempting to convert file attributes to UTC string (which wasn't reliable).
* Update FSF's address.Erik Naggum1996-01-141-2/+3
|
* (vc-follow-symlinks): New variable.André Spiegel1996-01-101-3/+26
| | | | (vc-find-file-hook): Use it.
* Comment fixes.Karl Heuer1996-01-051-1/+1
|
* Better doc strings for a few variables.André Spiegel1996-01-041-2/+4
|
* (vc-locking-user): In CVS case, convert user number to a string.Richard M. Stallman1995-11-161-1/+4
|
* (vc-utc-string): Use timezone of TIMEVAL for the correction, not theAndré Spiegel1995-11-021-10/+23
| | | | | | current one. (vc-rcsdiff-knows-brief): New variable. (vc-rcs-lock-from-diff): Use it.
* (vc-fetch-master-properties): Call "cvs status" in the rightAndré Spiegel1995-09-141-5/+9
| | | | | | directory, passing only the nondirectory part of the file name. (vc-find-cvs-master): Bind `mtime' locally instead of using it as a free variable.
* (vc-locking-user): Fixed wrong parentheses.André Spiegel1995-09-081-2/+2
|
* (vc-utc-string): New function.André Spiegel1995-08-291-30/+51
| | | | | | | | | | (vc-find-cvs-master): Use it to compare mtime and checkout time. (vc-locking-user): CVS case: *only* use checkout time. (vc-find-cvs-master): Don't attempt to find the RCS master file. Throw the full name of CVS/Entries. (vc-name): Doc change (special CVS case). (vc-after-save): Handle the case when a file is saved in the very second in which it was checked out.
* (vc-fetch-master-properties): Count cvs status "Needs Patch" asAndré Spiegel1995-08-251-2/+7
| | | | | `needs-checkout'. (vc-after-save): Clear the cvs status.
* (vc-simple-command): New function.André Spiegel1995-08-221-117/+148
| | | | | | | | | | | | (vc-fetch-master-properties): CVS case: Use it. (vc-lock-from-permissions, vc-file-owner, vc-rcs-lock-from-diff): New functions. (vc-locking-user): Largely rewritten. Uses the above, handles RCS non-strict locking. Under CVS in CVSREAD-mode, learn the locking state from the permissions. (vc-find-cvs-master): Use vc-insert-file, rather than find-file-noselect. Greatly speeds up things. (vc-consult-rcs-headers): Bug fix, return status in all cases.
* (vc-fetch-master-properties): RCS case: get locking mode.André Spiegel1995-08-211-102/+129
| | | | | | | | | | | | | | | | | | | CVS case: new state `locally-added'. (vc-locking-user): Under RCS with non-strict locking, don't trust the file permissions. CVS case: change which states count as "locked". (vc-consult-rcs-headers): Streamlined. Don't set vc-locking-user if this is called under CVS. Under RCS, use a heuristic to find the value of vc-checkout-model without examining the master file. (vc-parse-locks): Set vc-checkout-model. (vc-status): Comment change. (vc-after-save-hook, vc-after-save): The former renamed to the latter. Now unconditionally called by `basic-save-buffer', determines whether the buffer should be "locked" or not. (vc-mode-line): No longer use dynamic after-save-hook. Changed references to `automatic' into `implicit'. (vc-checkout-model): Values are now `manual' and `implicit'. Derive the property on a per-file basis, supporting all possible modes.
* (vc-fetch-master-properties): Recognize cvs status "Unresolved Conflict".André Spiegel1995-08-181-11/+33
| | | | | | | | | | | (vc-locking-user): Count cvs status `unresolved-conflict' as "locked". (vc-checkout-model): New property and access function (still simplistic). (vc-after-save-hook): New function. (vc-mode-line): When the file is locked by somebody else, make the buffer read-only. (Formerly this was only done for root.) Don't write-protect the buffer if the file is unlocked. Instead, install vc-after-save-hook, which "locks" the file when modifications are saved.
* (vc-top-version): Renamed to vc-master-workfile-version. Updated allAndré Spiegel1995-08-171-14/+13
| | | | references.
* (vc-mode-line, vc-find-file-hook): Moved the test forRichard M. Stallman1995-07-181-8/+7
| | | | version-controlled symbolic link from the former to the latter.
* (vc-mode-line): Don't write-protect aKarl Heuer1995-07-171-20/+21
| | | | | | | | | | | | VC-Log buffer. Better mode line text for initial comments. Streamlined the function. (vc-locking-user): Consider a cvs file "locked" if its status is either 'locally-modified or 'needs-merge. (vc-workfile-version): Catch 'found when calling vc-find-cvs-master. (vc-fetch-master-properties): Handle cvs status "Needs Checkout". This is intended for future use. (vc-fetch-master-properties): Shrink the window that displays the error message.
* (vc-fetch-master-properties): Better errorRichard M. Stallman1995-07-071-3/+8
| | | | message in case the "cvs status" command fails.
* (vc-consult-rcs-headers): Use an even moreRichard M. Stallman1995-06-271-23/+24
| | | | | pedantic regexp to match RCS time strings. Improved efficiency by using looking-at instead of re-search "\\=...
* (vc-consult-rcs-headers): Handle the new timeRichard M. Stallman1995-06-261-3/+3
| | | | string formats of RCS 5.7.
* (vc-insert-file): Erase the current buffer before inserting the file.Richard M. Stallman1995-06-231-5/+6
| | | | | | (vc-fetch-master-properties, vc-fetch-properties): Don't erase the buffer because that is now done in vc-insert-file. (vc-fetch-properties): Kill the *vc-info* buffer when done.
* (vc-fetch-master-properties): Pass an absoluteRichard M. Stallman1995-06-221-2/+7
| | | | | pathname to the cvs status command. This is required to make recursive vc-directory listings work.
* (vc-fetch-properties): Add save-excursion.Richard M. Stallman1995-06-201-10/+11
|
* (vc-fetch-master-properties): Be more carefulRichard M. Stallman1995-06-201-1/+2
| | | | about killing the *vc-info* buffer.
* (vc-fetch-master-properties): Use path-separatorRichard M. Stallman1995-06-181-20/+18
| | | | for path to "cvs status" command.
* (vc-consult-rcs-headers): Fix typo in prev change.Richard M. Stallman1995-06-161-1/+1
|
* (vc-fetch-master-properties): For RCS file,Richard M. Stallman1995-06-161-18/+43
| | | | | | | | don't look for vc-latest-version and vc-your-latest-version here. Read only through ^locks unless we need to find the tip of a branch. (vc-consult-rcs-headers): Use non-regexp search to find the headers. (vc-latest-version, vc-your-latest-version): Use vc-fetch-properties. (vc-fetch-properties): New function.
* The RCS status is now found by reading theRichard M. Stallman1995-06-151-281/+296
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | master file directly, instead of using rlog. The properties retrieved from the master file are kept separately. The two main properties, `vc-workfile-version' and `vc-locking-user', are inferred from those master file properties if the information cannot be found elsehow. All properties are consistently cached now. (vc-master-info, vc-log-info, vc-fetch-properties): functions removed. Their job is now done by `vc-fetch-master-properties' and `vc-insert-file'. (vc-fetch-master-properties): new function, replaces vc-fetch-properties. Retrieves all the properties that can be found in the master file, for all three backends (calls `cvs status' in the CVS case). (vc-insert-file): new function. Inserts an arbitrary file into the current buffer, optionally chunkwise, until a certain regexp shows up. (vc-parse-locks): new function. Translates SCCS or RCS lock lists, as found in the master files, into lisp lists. Sets the new property `vc-master-locks'. (vc-locked-version): property removed. Was unnecessary, and only referenced in vc-hooks.el. (vc-head-version, vc-default-branch, vc-master-locks): new properties. (vc-top-version): new name for the old property `vc-branch-version'. ("top-version" is better because it might also be the RCS "head" if there is no default branch.) (vc-master-locking-user): replaces `vc-true-locking-user'. Scans the new `vc-master-locks' property, yielding the master file's idea of who is locking the current workfile version. (vc-locking-user): slightly changed to use the new properties. Changed the actual property value for an unlocked file to 'none. This is to distinguish it from an unknown locking state, which is represented by nil. The function vc-locking-user returns nil if the property is 'none, to make it compatible with the rest of VC. (vc-consult-rcs-headers, vc-master-locking-user): adpated to the new 'none-value of vc-locking-user. (vc-consult-rcs-headers): fixed bug that prevented (not vc-consult-headers) from working (vc-file-not-found-hook): set the default-directory of the new buffer before check-out. (Otherwise, setting vc-keep-workfiles to nil doesn't work.) (vc-occurences, vc-branch-p): functions removed (no longer needed) Reordered some defuns so they are grouped in a logical way.
* (vc-menu-map): Disable Register when no visited file.Karl Heuer1995-06-071-1/+1
|
* (vc-log-info): Use path-separator.Karl Heuer1995-05-271-1/+2
|
* (vc-status): If vc-locking-user returns a number, compare it to (user-uid).Roland McGrath1995-05-121-4/+6
|
* (vc-default-backend, vc-path, vc-consult-headers):Karl Heuer1995-04-261-176/+526
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* (vc-buffer-backend): New function.Richard M. Stallman1995-04-261-44/+111
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* (vc-toggle-read-only): Accept prefix argRichard M. Stallman1994-12-151-4/+5
| | | | and pass it along to vc-next-action.
* Only define items in vc-menu-map if it is boundp.Roland McGrath1994-11-091-32/+37
|
* Add maintainer line in header.Thien-Thi Nguyen1994-11-071-0/+1
|
* (vc-status): Handle CVS.Richard M. Stallman1994-10-031-20/+73
| | | | | | | | | | (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.
* (vc-menu-map): Set up menu items.Richard M. Stallman1994-09-221-63/+128
| | | | | | | | | | | | (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.
* (vc-mode-line): Do nothing if FILE is nil.Richard M. Stallman1994-05-191-22/+23
|
* (vc-registered): Use find-file-name-handler.Richard M. Stallman1994-05-131-8/+1
|
* Update copyright.Karl Heuer1994-05-031-1/+1
|
* (vc-mode-line): Fix previous change.Richard M. Stallman1994-04-291-2/+2
|
* (vc-mode-line): Warn if file is not vc-registeredRichard M. Stallman1994-04-241-0/+6
| | | | but is a symlink to a vc-maintained file.