Commit graph

754 commits

Author SHA1 Message Date
Dan Nicolaescu
662c5698fb Support showing a single log entry from vc-annotate.
* vc.el (print-log): Add a new argument: START-REVISION.
(vc-print-log-internal): Add a new optional argument and
pass it to the backend.
(vc-print-log, vc-print-root-log): Adjust callers.
* vc-annotate.el (vc-annotate-show-log-revision-at-line): If a
buffer already displays the requested log entry, use it.
Otherwise display only the log entry in question.
* vc-svn.el (vc-svn-print-log):
* vc-mtn.el (log-view-file-re):
* vc-hg.el (vc-hg-state):
* vc-git.el (vc-git-print-log): Add support for new argument START-REVISION.
(vc-git-show-log-entry): Return t on success.
* vc-bzr.el (vc-bzr-print-log): Add support new argument START-REVISION.
(vc-bzr-show-log-entry): Return t on success.
* vc-rcs.el (vc-rcs-print-log):
* vc-sccs.el (vc-sccs-print-log):
* vc-cvs.el (vc-cvs-print-log): Add new argument, ignore it.
2009-12-07 09:02:11 +00:00
Dan Nicolaescu
46e5c897b4 Limit the number of log entries displayed by default.
* vc.el (vc-print-log-internal): Fix check for limit-unsupported.
(vc-print-log, vc-print-root-log): Use vc-log-show-limit when not
using a prefix argument.
2009-12-03 19:12:52 +00:00
Glenn Morris
d6e824528b (log-view-vc-backend, log-view-vc-fileset): Declare.
(vc-print-log-internal): Fix previous change.
(vc-revert): Correct pluralization.
2009-12-03 03:11:14 +00:00
Stefan Monnier
c767b6650c (vc-print-log-internal): Don't wait for the prcess to
terminate before setting up the major mode.
2009-12-01 20:08:20 +00:00
Stefan Monnier
eb708e6624 (vc-print-log-internal): Make `limit' optional for better
compatibility (e.g. with vc-annotate.el).
2009-11-25 03:28:24 +00:00
Dan Nicolaescu
8de724f3d1 (vc-deduce-fileset): Allow non-state changing operations
from a dired buffer.
(vc-dired-deduce-fileset): New function.
(vc-root-diff, vc-print-root-log): Use it.
2009-11-20 06:56:16 +00:00
Dan Nicolaescu
48b2757534 * vc.el (vc-log-show-limit): Default to 2000.
(vc-print-log-internal): Insert buttons to request more entries
when limiting the output.

* vc-sccs.el (vc-sccs-print-log):
* vc-rcs.el (vc-rcs-print-log):
* vc-cvs.el (vc-cvs-print-log):
* vc-git.el (vc-git-print-log): Return 'limit-unsupported when
LIMIT is non-nil.
2009-11-16 20:36:06 +00:00
Dan Nicolaescu
6616006b02 * vc.el (vc-log-show-limit): New variable.
(vc-print-log, vc-print-root-log): Add new argument LIMIT.  Set it
when using a prefix argument.
(vc-print-log-internal): Add new argument LIMIT.

* vc-svn.el (vc-svn-print-log):
* vc-mtn.el (vc-mtn-print-log):
* vc-hg.el (vc-hg-print-log):
* vc-bzr.el (vc-bzr-print-log): Add new optional argument LIMIT,
pass it to the log command when set. Make the BUFFER argument
non-optional.

* vc-sccs.el (vc-sccs-print-log):
* vc-rcs.el (vc-rcs-print-log):
* vc-git.el (vc-git-print-log):
* vc-cvs.el (vc-cvs-print-log): Add new optional argument LIMIT,
ignore it.  Make the BUFFER argument non-optional
2009-11-15 20:28:58 +00:00
Dan Nicolaescu
a9a2a6db29 (vc-backend-for-registration): Rename from
vc-get-backend-for-registration.  Update callers.
2009-10-24 06:34:26 +00:00
Dan Nicolaescu
6ab196f942 (vc-responsible-backend): Throw an error if not backend is
found.  Remove the REGISTER argument. Move the code dealing with
REGISTER ...
(vc-get-backend-for-registration): ... here.  New function.
(vc-deduce-fileset): Call vc-get-backend-for-registration instead
of vc-responsible-backend, pass the file name instead of the
directory name.
2009-10-23 18:07:38 +00:00
Dan Nicolaescu
f9ed9b4f89 (vc-deduce-fileset): Undo previous change, do not tell
vc-responsible-backend to register, it causes problems.
2009-10-21 19:03:32 +00:00
Dan Nicolaescu
d1e4c4037e Make vc-annotate work through copies and renames.
* vc-annotate.el (vc-annotate-extract-revision-at-line): Return
the file name too.
(vc-annotate-revision-at-line)
(vc-annotate-find-revision-at-line)
(vc-annotate-revision-previous-to-line)
(vc-annotate-show-log-revision-at-line): Update to get the file
name from vc-annotate-extract-revision-at-line.
(vc-annotate-show-diff-revision-at-line-internal): Change the
argument to mean whether to show a file diff or not.  Get the file
name from vc-annotate-extract-revision-at-line.
(vc-annotate-show-diff-revision-at-line): Update
vc-annotate-show-diff-revision-at-line call.
(vc-annotate-warp-revision): Add an optional file argument.

* vc-git.el (vc-git-annotate-command): Pass -C -C to the blame command.
(vc-git-annotate-extract-revision-at-line): Also return the file
name if found.

* vc-hg.el (vc-hg-annotate-command): Pass --follow to the annotate
command.  Remove unused code.
(vc-hg-annotate-re): Update to match --follow output.
(vc-hg-annotate-extract-revision-at-line): Also return the file
name if found.

* vc.el: Update annotate-extract-revision-at-line documentation.
2009-10-19 05:04:22 +00:00
Dan Nicolaescu
b4e813cad1 (vc-responsible-backend): When a directory is passed for
for registration create a VC repository if no backend is
responsible for the directory argument.
(vc-deduce-fileset): Tell vc-responsible-backend to register.
2009-10-14 06:08:47 +00:00
Dan Nicolaescu
1043ce19c8 * vc.el: Move comments about RCS and SCCS ...
* vc-rcs.el:
* vc-sccs.el: ... here, respectively.
2009-10-14 06:00:51 +00:00
Dan Nicolaescu
ed6b01957e Remove commented out code.
(vc-derived-from-dir-mode): Remove, unused.
(vc-version-diff, vc-diff): Consistently pass t to vc-deduce-fileset.
2009-10-03 18:29:22 +00:00
Juanma Barranquero
32226619c5 Use called-interactively-p' instead of interactive-p'. 2009-10-02 03:48:36 +00:00
Juanma Barranquero
5a0c3f568d Fix typos.
* allout.el
* dired-aux.el
* dired-x.el
* epa-file.el
* ps-print.el
* shell.el
* vc-hooks.el
* vc-rcs.el
* vc-sccs.el
* vc.el
* view.el
* wdired.el
* emacs-lisp/authors.el
* net/dig.el
* net/socks.el
* net/zeroconf.el
* obsolete/vc-mcvs.el
* progmodes/gdb-mi.el
* progmodes/grep.el
* progmodes/idlw-help.el
* progmodes/idlw-shell.el
* progmodes/idlwave.el
* progmodes/inf-lisp.el
* textmodes/bibtex.el
* textmodes/ispell.el
* textmodes/reftex-toc.el
2009-09-24 01:37:14 +00:00
Dan Nicolaescu
32ba3abcc1 * vc.el (top): print-log method now takes an optional SHORTLOG
argument.  Add a new method: root.

* vc-hooks.el (vc-prefix-map, vc-menu-map): Add bindings for
vc-print-root-log and vc-print-root-diff.

* vc-bzr.el (vc-bzr-log-view-mode, vc-bzr-print-log):
* vc-git.el (vc-git-print-log, vc-git-log-view-mode):
* vc-hg.el (vc-hg-print-log, vc-hg-log-view-mode): Add support for
short logs.

* vc-cvs.el (vc-cvs-print-log):
* vc-mtn.el (vc-mtn-print-log):
* vc-rcs.el (vc-rcs-print-log):
* vc-sccs.el (vc-sccs-print-log):
* vc-svn.el (vc-svn-print-log): Add an optional argument shortlog
that is ignored for now.
2009-09-14 04:38:49 +00:00
Dan Nicolaescu
db167d28c6 * vc.el (vc-print-log-internal): Move RCS/CVS specific code ...
* vc-rcs.el (vc-rcs-print-log-cleanup): ... here.  New function.
(vc-rcs-print-log): Use it.

* vc-cvs.el (vc-cvs-print-log): Use vc-rcs-print-log-cleanup.
2009-08-29 18:56:12 +00:00
Stefan Monnier
17c15b81a5 (vc-read-revision): New function.
(vc-version-diff, vc-merge): Use it.
2009-08-27 16:53:04 +00:00
Dan Nicolaescu
3b64d86b56 * vc.el (vc-trunk-p): Rename to vc-rcs-trunk-p and move to vc-rcs.el.
(vc-minor-part): Rename to vc-rcs-minor-part and move to vc-rcs.el.
(vc-default-previous-revision): Rename to vc-rcs-previous-revision
and move to vc-rcs.el.
(vc-default-next-revision): Rename to vc-rcs-next-revision and
move to vc-rcs.el.
(vc-cvs-update-changelog): Move to vc-cvs.el, use vc-call-backend.
(vc-rcs-update-changelog): Remove.
(vc-update-changelog-rcs2log): Rename to vc-rcs-update-changelog
and move to vc-rcs.el.

* vc-rcs.el (vc-rcs-latest-on-branch-p, vc-rcs-checkin)
(vc-rcs-checkout, vc-rcs-rollback): Adjust for the vc-rcs-trunk-p
renaming.
(vc-rcs-trunk-p, vc-rcs-minor-part, vc-rcs-previous-revision)
(vc-rcs-next-revision, vc-rcs-update-changelog): Moved here from
vc.el, renamed to be RCS specific.

* vc-cvs.el (vc-cvs-previous-revision, vc-cvs-next-revision): New functions.
(vc-cvs-update-changelog): Moved here from vc.el.

* vc-sccs.el (vc-sccs-previous-revision, vc-sccs-next-revision):
New functions.
2009-08-26 17:54:05 +00:00
Dan Nicolaescu
dc81064982 * vc.el (vc-default-prettify-state-info): Remove function, unused.
* vc-bzr.el (vc-bzr-prettify-state-info): Remove function, unused.
2009-08-26 07:42:11 +00:00
Dan Nicolaescu
239b334087 Document the desired behavior for reverted files in the
`added' state.
2009-08-26 05:26:22 +00:00
Michael Albinus
4968879cda * vc.el (vc-diff-internal): Let-bind `process-file-side-effects' with nil. 2009-08-25 08:55:37 +00:00
Dan Nicolaescu
10b5dcad46 (vc-dir-move-to-goal-column): Declare. 2009-07-23 05:41:24 +00:00
Dan Nicolaescu
d6a62b0d7a (vc-print-log-internal): New function, split out from ...
(vc-print-log): ... here.
2009-07-23 05:21:34 +00:00
Dan Nicolaescu
3c3bf6ce8f Remove find-file-not-found-hook VC method. (Bug#2757)
* vc-hooks.el (vc-file-not-found-hook)
(vc-default-find-file-not-found-hook): Remove functions.
(find-file-not-found-functions): Do not add vc-file-not-found-hook.
* vc-rcs.el (vc-rcs-find-file-not-found-hook): Remove function.
* vc.el:
* vc-hg.el:
* vc-git.el: Do not mention find-file-not-found-hook VC method.
2009-06-26 23:53:55 +00:00
Dan Nicolaescu
77bf3f5452 * vc-hooks.el (vc-stay-local-p, vc-state, vc-working-revision):
Add an optional argument for the backend, use it instead of
calling vc-backend.
(vc-mode-line): Add an optional argument for the backend.  Pass
the backend to vc-state and vc-working-revision.  Move code for
special handling for vc-state being a buffer to ...

* vc-rcs.el (vc-rcs-find-file-hook):
* vc-sccs.el (vc-sccs-find-file-hook): ... here.  New functions.

* vc-svn.el (vc-svn-state, vc-svn-dir-status, vc-svn-checkout)
(vc-svn-print-log, vc-svn-diff): Pass 'SVN to vc-state,
vc-stay-local-p and vc-mode-line calls.

* vc-cvs.el (vc-cvs-state, vc-cvs-checkout, vc-cvs-print-log)
(vc-cvs-diff, vc-cvs-annotate-command)
(vc-cvs-make-version-backups-p, vc-cvs-stay-local-p)
(vc-cvs-dir-status): Pass 'CVS to vc-state, vc-stay-local-p and
vc-mode-line calls.

* vc.el (vc-deduce-fileset): Use vc-deduce-fileset instead of
direct comparison.
(vc-next-action, vc-transfer-file, vc-rename-file): Also pass the
backend when calling vc-mode-line.
(vc-register): Do not create a closure for calling the vc register
function, call it directly.
2009-06-23 06:35:40 +00:00
Stefan Monnier
37438e77c2 (vc-default-revision-granularity): Remove to let the normal
error handling kick in (bug#3570).
2009-06-15 20:55:53 +00:00
Johan Bockgård
bea2e9691d (vc-revision-other-window): Fix argument to backend function
revision-completion-table; it expects a list.
2009-06-04 20:31:52 +00:00
Stefan Monnier
97355c3832 (vc-delete-file): Add autoload cookie (bug#3209). 2009-05-05 04:02:45 +00:00
Dan Nicolaescu
bd924903e9 (Todo): Add note on simplifying vc-register. 2009-03-21 15:39:10 +00:00
Dan Nicolaescu
57b037f9bc (vc-checkin): Add an extra argument for the VC backend,
pass it down to vc-start-logentry.
(vc-next-action, vc-transfer-file): Pass the VC backend to
vc-checkin.
(vc-next-action): Do not assume that all backends in
vc-handled-backends are upper case.
2009-03-15 08:58:02 +00:00
Dan Nicolaescu
01cf1a52ea (vc-checkin): Add an extra argument for the VC backend,
pass it down to vc-start-logentry.
(vc-next-action, vc-transfer-file): Pass the VC backend to
vc-checkin.
2009-03-15 08:54:00 +00:00
Dan Nicolaescu
24703c3cc8 (vc-default-receive-file): The 'register method now
expects a list, pass a list.
2009-03-14 16:37:09 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Glenn Morris
d2ee9b136d (vc-diff-switches): Doc fix. 2008-12-03 07:45:04 +00:00
Lute Kamstra
9201cc281b * align.el:
* allout.el:
* apropos.el:
* arc-mode.el:
* autoinsert.el:
* avoid.el:
* battery.el:
* bookmark.el:
* buff-menu.el:
* calculator.el:
* chistory.el:
* cmuscheme.el:
* comint.el:
* compare-w.el:
* dabbrev.el:
* delim-col.el:
* desktop.el:
* diff-mode.el:
* diff.el:
* dired-aux.el:
* dired-x.el:
* dired.el:
* dos-vars.el:
* ediff-diff.el:
* ediff-help.el:
* ediff-init.el:
* ediff-merg.el:
* ediff-mult.el:
* ediff-ptch.el:
* ediff-vers.el:
* ediff-wind.el:
* ediff.el:
* emerge.el:
* facemenu.el:
* faces.el:
* ffap.el:
* filecache.el:
* find-dired.el:
* font-core.el:
* font-lock.el:
* forms.el:
* fringe.el:
* help-at-pt.el:
* hippie-exp.el:
* ido.el:
* image-file.el:
* imenu.el:
* indent.el:
* info.el:
* isearchb.el:
* iswitchb.el:
* jit-lock.el:
* jka-compr.el:
* log-edit.el:
* lpr.el:
* ls-lisp.el:
* man.el:
* menu-bar.el:
* midnight.el:
* mouse-sel.el:
* mouse.el:
* msb.el:
* outline.el:
* paren.el:
* pcmpl-cvs.el:
* pcmpl-gnu.el:
* pcomplete.el:
* pcvs-info.el:
* pcvs-parse.el:
* printing.el:
* ps-mule.el:
* ps-print.el:
* replace.el:
* ruler-mode.el:
* saveplace.el:
* sb-image.el:
* scroll-bar.el:
* sha1.el:
* shadowfile.el:
* shell.el:
* sort.el:
* speedbar.el:
* strokes.el:
* tempo.el:
* term.el:
* terminal.el:
* time-stamp.el:
* time.el:
* tree-widget.el:
* type-break.el:
* vc-cvs.el:
* vc-hg.el:
* vc-mcvs.el:
* vc-rcs.el:
* vc-sccs.el:
* vc.el:
* view.el:
* w32-vars.el:
* whitespace.el:
* wid-edit.el: Remove leading * from docstrings of defcustoms,
deffaces, defconsts and defuns.
2008-12-03 05:48:14 +00:00
Chong Yidong
904f87938b (vc-revert): Limit the length of the query string. 2008-10-30 19:21:07 +00:00
Dan Nicolaescu
13ad745788 * vc.el: Rename VC methods that were missed when vc-status was
renamed to vc-dir.
* vc-svn.el (vc-svn-dir-extra-headers): Rename from
vc-svn-status-extra-headers.
* vc-hg.el (vc-hg-dir-printer): Rename from vc-hg-status-printer.
(vc-hg-dir-extra-header): Rename from vc-hg-status-extra-headers.
* vc-git.el (vc-git-dir-printer): Rename from vc-dir-status-printer.
(vc-git-dir-extra-headers): Rename from vc-git-status-extra-headers.
* vc-dir.el (vc-dir-mode): Use vc-dir-printer instead of
vc-dir-status-printer.
(vc-dir-headers): Use `dir-extra-headers' instead of
`status-extra-headers'
(vc-dir-printer): Rename from vc-dir-status-printer.
(vc-default-dir-extra-headers): Rename from
vc-default-status-extra-headers.
* vc-cvs.el (vc-cvs-dir-extra-headers): Rename from
vc-cvs-status-extra-headers.
2008-10-27 07:21:43 +00:00
Glenn Morris
10d5dd8ca5 Fix previous change. 2008-09-28 17:57:00 +00:00
Glenn Morris
559ca68a05 (vc-switches): Give it a doc string. 2008-09-28 17:54:50 +00:00
Chong Yidong
6002d9b956 Fix last fix. 2008-09-25 01:46:06 +00:00
Chong Yidong
f41d99b0b4 (vc-mark-resolved): Move message here from vc-default-mark-resolved.
(vc-default-mark-resolved): Change to an alias for ignore.
2008-09-25 01:44:23 +00:00
Chong Yidong
92d2ea2ce7 (vc-default-mark-resolved): New function. 2008-09-24 19:14:58 +00:00
Stefan Monnier
3dd2acc9d3 * vc-svn.el (vc-svn-root):
* vc-sccs.el (vc-sccs-root):
* vc-rcs.el (vc-rcs-root):
* vc-cvs.el (vc-cvs-root): Delete.
* vc-hooks.el (vc-find-root): Remove `invert' argument.
2008-09-07 20:24:24 +00:00
Glenn Morris
1912f6cf97 (vc-default-previous-version): Move alias here from vc-hooks, and fix
name typos.  (Bug#856)
2008-09-01 21:47:42 +00:00
Chong Yidong
554c98c508 (vc-next-action): Update list var correctly after delete. 2008-08-02 21:31:41 +00:00
Dan Nicolaescu
f6ff0e873f (Todo): Update. 2008-07-22 04:39:27 +00:00
Dan Nicolaescu
f731e2f977 * vc-dir.el (vc-dir-hide-up-to-date): Also hide empty directories.
(vc-string-prefix-p): Move function ...
* vc.el (vc-string-prefix-p): ... here.
2008-06-28 07:30:47 +00:00