1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-01 08:17:38 +00:00
Commit Graph

49 Commits

Author SHA1 Message Date
Dan Nicolaescu
6a3f9bb72d * vc-hg.el (vc-hg-state):
* vc-git.el (vc-git-state):
* vc-cvs.el (vc-cvs-parse-status):
* vc-bzr.el (vc-bzr-state): Return 'added when the file is in that
state.
2008-03-21 05:53:48 +00:00
Dan Nicolaescu
751c9f0042 * vc.el (vc-exec-after): Move setting mode-line-process in the
busy case ...
(vc-set-mode-line-busy-indicator): ... in this new function.
(vc-status-refresh): Call vc-set-mode-line-busy-indicator.
(vc-update-vc-status-buffer): Reset mode-line-process.
(vc-status-mark-all-files, vc-status-unmark-all-files): Change to
mark/unmark all the files with the same state as the current one.
With a prefix argument mark/unmark all files.
(vc-status-mode-menu): Adjust strings.
(vc-update-vc-status-buffer): Only do something when the argument
is not nil.
(vc-status-kill-dir-status-process): New function.
(vc-status-mode-map): Bind it.
(vc-status-process-buffer): New variable.
(vc-status-mode): Make it local.
(vc-status-refresh): Set it.

* vc-hg.el (vc-hg-dir-status):
* vc-git.el (vc-git-dir-status):
* vc-svn.el (vc-svn-dir-status): Return the buffer in which the
command is run.
2008-02-22 07:44:08 +00:00
Thien-Thi Nguyen
758dc0cc60 (vc-git-after-dir-status, vc-git-dir-status): New funcs. 2008-02-18 07:46:44 +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
Michael Albinus
0664ff7221 * vc-git.el (vc-git--call): Apply `process-file' instead of
`call-process'.

* net/tramp.el (tramp-remote-process-environment): Add "LC_CTYPE=C".
Reported by Pete Forman <pete.forman@westerngeco.com>.
(tramp-perl-encode, tramp-perl-decode): Update copyrights.
(tramp-handle-process-file): Handle the case where DESTINATION is
a consp with t as car.
(tramp-wait-for-output): We shall remove exactly what has been
find by the search.
2008-01-08 20:07:21 +00:00
Glenn Morris
409cc4a3ea Add 2008 to copyright years. 2008-01-07 02:45:14 +00:00
Dan Nicolaescu
5378843c23 * vc-git.el (vc-git-dir-state):
* vc-hg.el (vc-hg-dir-state): Set the vc-backend property.
2008-01-04 07:59:25 +00:00
Dan Nicolaescu
b936ef8cc2 * vc-git.el (vc-git--ls-files-state): New function.
(vc-git-dir-state): Use it instead of processing the status
results here.
2008-01-03 06:29:38 +00:00
Dan Nicolaescu
21838dc0de (vc-git-dir-state): Set the vc-backend property. Do
not disable undo, with-temp-buffer does it by default.
2008-01-01 19:47:21 +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
18e1f24981 * vc-bzr.el, vc-cvs.el, vc-git.el, vc-hg.el, vc-mcvs.el, vc-svn.el:
Modify all instances of the dir-state back-end method to suppress
keeping undo lists on the buffers holding astatus output, which
csn get extremely large.
2007-12-28 08:59:50 +00:00
Dan Nicolaescu
ff71e76d03 * vc-git.el (vc-git-dir-state): Fix the git command arguments. 2007-12-01 18:18:47 +00:00
Dan Nicolaescu
8d6d388da3 * vc-git.el (vc-git-dir-state): Fix the git command arguments. 2007-11-29 07:22:01 +00:00
Thien-Thi Nguyen
0bcc6163fe (vc-git-annotate-time): Handle optional field FILENAME.
Also, match one space at end of annotation text, after last paren.
2007-11-25 00:42:41 +00:00
Thien-Thi Nguyen
5fdbecd896 (vc-git--call, vc-git--out-ok): New funcs.
(vc-git-state): Use vc-git--call.
(vc-git-registered, vc-git-working-revision)
(vc-git-previous-revision, vc-git-next-revision)
(vc-git--run-command-string, vc-git-symbolic-commit):
Use vc-git--out-ok.
2007-11-24 15:22:07 +00:00
Thien-Thi Nguyen
2aa0736ab5 Refill; nfc. 2007-11-24 14:35:54 +00:00
Thien-Thi Nguyen
b16bd82da9 (vc-git-show-log-entry): New func. 2007-11-24 13:46:30 +00:00
Stefan Monnier
54a2247d6e * vc-bzr.el (vc-bzr-diff-tree):
* vc-git.el (vc-git-diff-tree):
* vc-hg.el (vc-hg-diff-tree):
* vc-mcvs.el (vc-mcvs-diff-tree):
* vc-mtn.el (vc-mtn-diff-tree):
* vc-svn.el (vc-svn-diff-tree): Remove.
2007-10-20 01:28:35 +00:00
Stefan Monnier
9f11ce4ec3 (vc-git-revision-completion-table, vc-git-revision-table):
Make it work when the arg is a list of files.
2007-10-20 01:09:59 +00:00
Eric S. Raymond
5b5afd508a Carry through today's big terminology change to a few places where I
missed it in the back ends.
2007-10-10 19:39:23 +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
576c7f5e19 (vc-git-log-view-mode): Add font-lock patterns for
Signed-off-by, Acked-by and Merge.
2007-09-17 19:13:19 +00:00
Dan Nicolaescu
00d670807e * vc-git.el (vc-git-state): Call git-add --refresh to update the
state of the file.
(vc-git-workfile-unchanged-p): Delegate implementation to
vc-git-state.
(vc-git-create-repo): Fixed invalid command.
2007-08-27 18:59:41 +00:00
Dan Nicolaescu
6f222162a7 * vc-git.el (vc-git-mode-line-string): New function. 2007-08-25 20:04:26 +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
eff23ff376 * vc-git.el: (vc-directory-exclusion-list, vc-handled-backends):
Remove.
(vc-git-revision-completion-table): Enable.

* vc-hooks.el (vc-handled-backends): Add GIT and HG.

* vc.el (vc-directory-exclusion-list): Add .git and .hg.

* vc-hg.el (vc-hg-revision-completion-table): Re-enable.

* diff-mode.el (diff-mode-menu): New entries.

* diff-mode.el (diff-beginning-of-file-and-junk): New function.
(diff-file-kill): Use it.
(diff-beginning-of-hunk): Add arg `try-harder' using it.
(diff-restrict-view, diff-find-source-location, diff-refine-hunk):
Use it so they find the hunk even when we're in the file header.

* vc.el: Add new VC operation `revision-completion-table'.
(vc-default-revision-completion-table): New function.
(vc-version-diff, vc-version-other-window): Use it to provide
completion of revision names if the backend provides it.

* vc-arch.el (vc-arch--version-completion-table)
(vc-arch-revision-completion-table): New functions to provide
completion of revision names.

* vc-cvs.el: Require CL.
(vc-cvs-revision-table, vc-cvs-revision-completion-table):
New functions to provide completion of revision names.

* eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.

* vc2-xtra.texi (Customizing VC): Add GIT and HG.
2007-07-30 00:19:06 +00:00
Dan Nicolaescu
1bee149590 *** empty log message *** 2007-07-28 16:18:01 +00:00
Dan Nicolaescu
b19c08e44d New File. 2007-07-28 16:04:10 +00:00
Dan Nicolaescu
a0709d8dc9 (vc-git-print-log): Support both the old single file
interface and the new one.
2007-07-28 02:01:43 +00:00
Dan Nicolaescu
625f71cff9 * vc-git.el: Relicense to GPLv3 or later.
(vc-directory-exclusion-list, vc-handled-backends): Remove.

* vc-hooks.el (vc-handled-backends): Add GIT.

* vc.el (vc-directory-exclusion-list): Add .git.

* vc2-xtra.texi (Customizing VC): Add GIT.
2007-07-26 18:44:39 +00:00
Dan Nicolaescu
108607bc25 vc-git.el (vc-git-revision-table)
(vc-git-revision-completion-table): New functions.
2007-07-26 17:26:08 +00:00
Dan Nicolaescu
40ed3f4f56 Fix comment. 2007-07-25 15:08:09 +00:00
Dan Nicolaescu
b747d346a2 * vc-git.el (vc-git-log-view-mode): Port to the multi-file vc interface.
(vc-git-create-snapshot, vc-git-retrieve-snapshot): New functions.
2007-07-25 15:03:05 +00:00
Dan Nicolaescu
64e3efd9bc vc-git.el (vc-git-print-log): Fix previous change. 2007-07-24 22:21:46 +00:00
Dan Nicolaescu
7546c76775 vc-git.el (vc-git-checkout, vc-directory-exclusion-list): Fix
typos.
2007-07-24 13:15:04 +00:00
Dan Nicolaescu
d7009f45d8 (vc-git-unregister): New function. 2007-07-23 20:56:13 +00:00
Dan Nicolaescu
8b38ce2038 (vc-git-delete-file, vc-git-rename-file): New functions.
(vc-git-find-version): Use the result of ls-files as a parameter
for cat-file
2007-07-23 20:51:02 +00:00
Dan Nicolaescu
b838ac802b *** empty log message *** 2007-07-23 16:05:04 +00:00
Dan Nicolaescu
b0f90937fa (vc-git-checkin): Delete unused parameter and the code
handling it. Use vc-git-command.
(vc-git-find-version, vc-git-diff-tree): New functions.
(vc-git-revert): Use vc-git-command.
(vc-git--run-command): Delete.
2007-07-23 16:01:25 +00:00
Dan Nicolaescu
4d3ac01e41 (vc-git-workfile-unchanged-p): Update comment. 2007-07-23 15:02:16 +00:00
Miles Bader
328471d91c Add arch tagline 2007-07-23 08:00:58 +00:00
Dan Nicolaescu
faa9810070 (vc-directory-exclusion-list): Use eval-after-load. 2007-07-23 02:06:18 +00:00
Dan Nicolaescu
9143abff13 Update status. 2007-07-23 00:41:51 +00:00
Dan Nicolaescu
8b9783e0df (vc-git-register, vc-git-checkin): Use vc-git-command,
deal with multiple file arguments.
(vc-git-print-log): Deal with multiple file arguments.
2007-07-22 22:03:27 +00:00
Dan Nicolaescu
53cc90abac (vc-git-revision-granularity,vc-git-root),
(vc-git-command,vc-git-dir-state,vc-git-dired-state-info),
(vc-git-create-repo): New functions.
(vc-git-registered): New autoloaded function definition.
(vc-git-registered): Use vc-git-root.
(vc-git-responsible-p): New defalias.
(vc-git-annotate-extract-revision-at-line): Uncomment.
(vc-git-print-log): Add the file name to the log.
(vc-git-log-view-mode): New derived mode.
(vc-git-diff,vc-git-annotate-command): Use vc-git-command.
2007-07-22 21:16:34 +00:00
Dan Nicolaescu
fff4a04678 vc-git.el: New file. 2007-07-22 19:46:04 +00:00