Commit graph

254 commits

Author SHA1 Message Date
Dan Nicolaescu
b54462764d * vc-hooks.el (vc-insert-file, vc-state, vc-working-revision)
(vc-check-master-templates, vc-file-not-found-hook)
(vc-kill-buffer-hook):
* vc.el (vc-process-sentinel, vc-exec-after, vc-do-command)
(vc-find-position-by-context, vc-buffer-context)
(vc-restore-buffer-context, vc-responsible-backend)
(vc-expand-dirs, vc-ensure-vc-buffer, vc-buffer-sync)
(vc-next-action, vc-register, vc-register-with, vc-steal-lock)
(vc-finish-logentry, vc-coding-system-for-diff, vc-switches)
(vc-version-diff, vc-diff, vc-insert-headers)
(vc-dired-buffers-for-dir, vc-dired-resynch-file)
(vc-snapshot-precondition, vc-create-snapshot, vc-print-log)
(vc-revert, vc-rollback, vc-version-backup-file)
(vc-rename-master, vc-delete-file, vc-rename-file)
(vc-branch-part, vc-default-retrieve-snapshot)
(vc-annotate-display-autoscale, vc-annotate-display-select)
(vc-annotate, vc-annotate-warp-revision, vc-annotate-difference)
(vc-annotate-lines, vc-file-tree-walk-internal): Use when instead of if.
(vc-dir-update): Handle directories.
(vc-default-status-printer): Simplify.
2008-04-21 05:11:56 +00:00
Stefan Monnier
14b114019e * lisp/vc-sccs.el (vc-sccs-do-command): New fun. Use the "sccs" command.
(vc-sccs-register, vc-sccs-checkin, vc-sccs-find-revision)
(vc-sccs-checkout, vc-sccs-rollback, vc-sccs-revert)
(vc-sccs-steal-lock, vc-sccs-modify-change-comment)
(vc-sccs-print-log): Use it.
* lisp/vc-hooks.el (vc-path): Remove SCCS-specific hack.
* lib-src/vcdiff: Use "sccs get" rather than "get"; leave PATH alone.
2008-04-19 21:53:55 +00:00
Juanma Barranquero
329a656ebd (vc-ignore-vc-files, vc-master-templates, vc-header-alist):
Add WHEN to obsolescence declaration.
(vc-state): Fix typo in docstring.
2008-04-18 10:01:07 +00:00
Stefan Monnier
e1aec6fbf1 Rename vc-status to vc-dir and the vc-status var to vc-ewoc. 2008-04-16 00:57:12 +00:00
Dan Nicolaescu
7fbb47976e * vc-hooks.el (vc-state): Add new state `conflict'.
(vc-after-save): Use when not if.
(vc-default-mode-line-string): Deal with the conflict state.
(vc-prefix-map):
(vc-menu-map): Bind vc-status instead of vc-directory.

* vc.el (vc-editable-p):
(vc-default-status-printer):
(vc-next-action): Deal with the conflict state.
(vc-mark-resolved): New function.
(vc-status-mode): Fix mode name.
(vc-default-comment-history): Use when not if.
(Todo): Add new entries, remove old ones.

* vc-cvs.el (vc-cvs-merge, vc-cvs-merge-news): Set conflict state.
(vc-cvs-parse-status):
(vc-cvs-after-dir-status):
* vc-svn.el (vc-svn-after-dir-status, vc-svn-parse-status):
Detect the conflict state.
2008-04-10 07:32:25 +00:00
Stefan Monnier
5bad314022 (vc-default-mode-line-string): Use ? for missing. 2008-04-09 20:23:11 +00:00
Glenn Morris
aafb0703bf (vc-responsible-backend): Declare as function. 2008-04-01 02:58:32 +00:00
Dan Nicolaescu
f3d57a2c20 (vc-menu-map-filter): Be more careful when finding
the current backend.
2008-03-29 05:33:06 +00:00
Stefan Monnier
f42af25505 (vc-before-save): Be careful not to prevent saving the file. 2008-03-27 15:00:32 +00:00
Dan Nicolaescu
a58b57e22c (vc-default-mode-line-string): Deal with 'removed
and 'missing files.
2008-03-26 04:46:42 +00:00
Dan Nicolaescu
dd0d723c8e (vc-state): Add documentation for 'missing. 2008-03-25 15:47:02 +00:00
Stefan Monnier
45b24b4de6 * vc-hooks.el (vc-default-mode-line-string): Add case for added files.
* vc.el (vc-default-dired-state-info): Use just "modified".
* vc-cvs.el (vc-cvs-state-heuristic): Turn rev 0 into `added'.
(vc-cvs-mode-line-string): Make use of the better default.
(vc-cvs-parse-entry): Use the new `added'.
(vc-cvs-dired-state-info): Remove.
* vc-svn.el (vc-svn-dired-state-info): Remove.
* vc-hg.el (vc-hg-dired-state-info): Remove.
* vc-git.el (vc-git-dired-state-info): Remove.
2008-03-21 17:53:04 +00:00
Dan Nicolaescu
9b7b3814df * vc.el (vc-status-crt-marked): New variable.
(vc-status-mode): Make it local.
(vc-status-refresh): Use it to save the marked files.
(vc-update-vc-status-buffer): Use it to restore the marked files.

* vc-svn.el (vc-svn-after-dir-status):
* vc-hg.el (vc-hg-after-dir-status): Clean up the temporary buffer.
2008-02-29 19:13:54 +00:00
Miles Bader
b03f96dc5a Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1074
2008-02-24 10:09:07 +00:00
Thien-Thi Nguyen
b038f9fb95 Make sure all backends support vc-BACKEND-root.
* vc-hooks.el (vc-find-root): Take optional arg INVERT.
If non-nil, reverse the sense of the check.
* vc-rcs.el (vc-rcs-root): New func.
* vc-cvs.el (vc-cvs-root): New func.
* vc-svn.el (vc-svn-root): New func.
2008-02-19 11:45:54 +00:00
Thien-Thi Nguyen
6dbb5c761e Kill eol whitespace; nfc. 2008-02-19 11:18:56 +00:00
Stefan Monnier
5f8ea2c89b (vc-find-root): Remove initial loop because it's not
careful enough.  Detect the uid-change all within the main loop.
2008-02-16 21:38:24 +00:00
Juanma Barranquero
f510617394 Revert previous change. 2008-02-16 20:21:16 +00:00
Juanma Barranquero
6b99fa736f (vc-find-root): Don't loop forever on non-existent root. 2008-02-16 18:16:55 +00:00
Dan Nicolaescu
40fabc71b7 * vc-hooks.el (vc-menu-map):
* bindings.el (mode-line-mode-menu): Add tooltips.

* bindings.el (help-echo): Add more tooltips.  Use a less
telegraphic style for existing tooltips.
2008-02-15 22:45:03 +00:00
Sam Steingold
c1fdf75853 (vc-prefix-key): Remove (undo 2008-02-06 patch). 2008-02-11 00:54:35 +00:00
Sam Steingold
dce1354779 revert the `vc-status' keybindings 2008-02-06 19:06:34 +00:00
Sam Steingold
527b313d4d (vc-prefix-map): Bind `vc-status' to "?".
(vc-prefix-key): New user-customizable variable.
(vc-menu-map): Add `vc-status'.
2008-02-06 17:52:35 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
409cc4a3ea Add 2008 to copyright years. 2008-01-07 02:45:14 +00:00
Eric S. Raymond
1f0bee0a2d * progmodes/grep.el (grep-find-ignored-directories): Initialize
from the value of vc-directory-exclusion-list.

* vc-hooks (vc-directory-exclusion-list):  Include "_darcs",
even though we don't have a back end for darcs yet.
2008-01-02 23:47:35 +00:00
Eric S. Raymond
484c1b1f14 * vc-svn.el (vc-svn-parse-status): Recognize 'added, 'removed,
and 'unregistered states.

* vc-hooks.el (vc-state): Added 'removed state to documentation.

* vc-hg (vc-hg-parse-status): Recognize 'added, 'removed,  and
'up-to-date state.  Deal with the possibility that C for clean
might change to "=" in the next point release.

* vc-git.el (vc-git-parse-status): Recognize 'removed.

* vc.el (header comment): Better description of new dir-state.
(vc-compatible-state): Defines which states are mutually
compatible; usable with 'edited as a test for which can be committed on.
(vc-dired-hook): Turn off undo in the VC-Dired buffer, a speed tweak.
(vc-default-dired-state-info): Display 'removed state.

* vc-bzr.el (vc-bzr-dir-state): Recognize 'added.
2007-12-29 13:20:49 +00:00
Eric S. Raymond
722f037fc8 * vc-hooks.el (vc-state): Document new 'ignored and 'unregistered
states. and the new return-value convention.  These are not
	actually used yet, just set.

	* vc-svn.el (vc-svn-parse-status): Set 'ignored and 'unregistered
	states when appropriate.

	* vc-hg.el (vc-hg-state,vc-hg-dir-state): Set 'ignored and
	'unregistered' when appropriate.

	* vc-git.el: Document that we don't set the new states yet.

	* vc.el (vc-dired-state-info): Display 'unregistered and
	'ignored states.

	* vc-cvs.el (vc-cvs-parse-status): Set the 'ignored state when
	appropriate.

	* vc-bzr.el (vc-bzr-dir-state): Set 'ignored and
	'unregistered' when appropriate.
2007-12-28 18:16:55 +00:00
Eric S. Raymond
9c4b89d5a4 * vc-hooks.el, vc.el: Move vc-directory-exclusion-list from vc.el
to vc-hooks.el so it will be available to other modes, such as
speedbar.el.  Also, teach it to recognize monotine state directories.

* speedbar.el: Remove this mode's fragile assumptions about
version-control systems.  Instead, make it use logic from
vc-hooks.el so it will become smarter whenever VC mode does.

* vc-hooks.el: 'added is a real state, not a future hypothetical
one. Fix the documentation.
2007-12-28 13:29:41 +00:00
Eric S. Raymond
14f2605422 And another typo fix. 2007-12-28 10:00:02 +00:00
Eric S. Raymond
fae001810e Typo fix. 2007-12-28 09:59:34 +00:00
Dan Nicolaescu
004a00f4ae * progmodes/octave-mod.el (inferior-octave-send-list-and-digest):
* play/yow.el (doctor-ret-or-read):
* vc-hooks.el (vc-dired-resynch-file):
* vc-hg.el (log-view-get-marked):
* smerge-mode.el (ediff-cleanup-mess):
* pcvs.el (vc-editable-p, vc-checkout):
* pcomplete.el (comint-bol):
* informat.el (texinfo-format-refill):
* ido.el (tramp-tramp-file-p):
* ibuffer.el (ibuffer-mark-on-buffer, ibuffer-format-qualifier)
(ibuffer-generate-filter-groups)
(ibuffer-format-filter-group-data):
* add-log.el (c-beginning-of-defun, c-end-of-defun): Declare as
functions.

* ido.el (ido-file-internal): Move with-no-warnings to include the
ffap-string-at-point call.

* pcomplete.el (pcomplete-executables): Move defsubst before first
use.

* vc-hg.el (vc-hg-revision-table): Fix last change.
2007-11-19 08:50:04 +00:00
Stefan Monnier
6e5d0e9e73 (vc-workfile-version): Compatibility alias.
(vc-default-working-revision): Compatibility for backends.
2007-10-15 19:26:25 +00:00
Eric S. Raymond
0a0ca7f11f Follow through on the VC terminology change (version -> revision). 2007-10-11 16:02:53 +00:00
Eric S. Raymond
44cd688b7b Robustify a bit against filenames with no directory component. 2007-10-11 11:22:19 +00:00
Eric S. Raymond
ac3f4c6f02 Terminology cleanup. 2007-10-10 18:52:45 +00:00
Miles Bader
1af74d06e5 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-875
2007-10-09 08:52:57 +00:00
Dan Nicolaescu
793a22023e * vc-arch.el (vc-arch-extra-menu-map): New var and fun.
* vc-hooks.el (vc-menu-entry): New var.
(vc-mode-line-map): Use it so that this menu also uses the extra-menu.
(menu-bar-tools-menu): Add the VC menu here rather than in menu-bar.el.
(vc-menu-map): Declare and initialize in one step.

* menu-bar.el (vc-menu-map): Don't setup any more.
Instead, just create the proper spot in the menu.

* vc.el: Document new VC operation `extra-menu'.

* vc-hooks.el (vc-default-extra-menu, vc-menu-map-filter): New
function.
2007-09-18 01:28:25 +00:00
Stefan Monnier
b5883dcf11 (vc-handled-backends): Add Mtn. 2007-09-14 16:54:16 +00:00
Stefan Monnier
b1dc6d44c9 Add vc-mtn.el. 2007-09-14 16:33:47 +00:00
Dan Nicolaescu
a549ce7054 * vc-hooks.el (vc-registered): Use mapc instead of mapcar.
(vc-delete-automatic-version-backups): Likewise.

* vc.el (vc-dired-buffers-for-dir): Likewise.
2007-08-26 00:32:23 +00:00
Jason Rumney
4d2f172bd3 (vc-menu-map-filter): Reapply 2007-08-06 bugfix. 2007-08-22 22:40:18 +00:00
Stefan Monnier
98481bad3b (vc-menu-map-filter): Use vc-call and reindent. 2007-08-21 15:10:55 +00:00
Stefan Monnier
e2247dc840 (vc-menu-entry): New var.
(vc-mode-line-map): Use it so that this menu also uses the extra-menu.
(menu-bar-tools-menu): Add the VC menu here rather than in menu-bar.el.
(vc-menu-map): Declare and initialize in one step.
(vc-menu-map-filter): Move&rename from menu-bar.el:menu-bar-vc-filter
2007-08-21 15:07:36 +00:00
Miles Bader
37cc095b6a Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-851
2007-08-13 13:41:28 +00:00
Stefan Monnier
a377373012 (vc-default-find-file-not-found-hook): Do nothing. 2007-08-09 14:42:00 +00:00
Jason Rumney
daffc81ab9 (vc-call): Add doc string. 2007-08-06 11:03:50 +00:00
Miles Bader
5716cebdd0 Change capitalization of VC backend names for new backends
Revision: emacs@sv.gnu.org/emacs--rel--22--patch-87
2007-08-03 05:09:21 +00:00
Miles Bader
4211679b08 Change capitalization of VC backend names for new backends
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-842
2007-08-03 04:57:05 +00:00
Dan Nicolaescu
cb223bba1d * vc.el: Document new VC operation `extra-menu'.
* vc-hooks.el (vc-default-extra-menu): New function.

* menu-bar.el (menu-bar-vc-filter): New function.
(menu-bar-tools-menu): Use it as a filter.
2007-08-01 17:13:45 +00:00