Commit graph

13 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
Johan Bockgård
a5d358f83c (vc-annotate-revision-previous-to-line): Really use previous revision. 2009-11-25 23:47:31 +00:00
Dan Nicolaescu
9717f1199f (vc-annotate-show-log-revision-at-line): Pass a
nil LIMIT argument to vc-print-log-internal.
2009-11-20 05:44:49 +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
Juanma Barranquero
657bc6fcfd * vc-annotate.el (vc-annotate): Use the main file's coding-system to
decode annotated text, regardless of language environment.  (Bug#2741)
2009-09-11 10:58:54 +00:00
Chong Yidong
972bf25aaa (vc-annotate): Use widened line number (Bug#2612). 2009-03-10 00:59:09 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Juanma Barranquero
d41b91e695 * allout.el (allout-mode): Fix typo in docstring.
* vc-annotate.el (vc-annotate-warp-revision): Reflow docstring.
  (vc-annotate-very-old-color, vc-annotate-display): Fix docstring typos.
2008-11-23 05:48:41 +00:00
Dan Nicolaescu
e21c597ae4 (vc-annotate-mode-menu): Add separator. 2008-07-05 18:03:02 +00:00
Dan Nicolaescu
3cddaef124 (vc-annotate-mode-map): Bind to lower case keys.
Add binding for vc-annotate-show-changeset-diff-revision-at-line.
2008-07-01 14:47:10 +00:00
Dan Nicolaescu
ffbda93a86 (vc-annotate-mode): Derive from special-mode
instead of using view-mode.
2008-06-23 07:03:33 +00:00
Miles Bader
81c5ac7ed9 Add arch tagline 2008-06-23 00:13:34 +00:00
Dan Nicolaescu
f439c140ac * vc.el: Move vc-annotate variables and functions ...
* vc-annotate.el: ... here.  New file.
* Makefile.in (ELCFILES): Add vc-annotate.elc.
2008-06-22 17:56:00 +00:00