[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/vc-fossil 6619ffb 048/111: Improve log command.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/vc-fossil 6619ffb 048/111: Improve log command. |
Date: |
Wed, 29 Sep 2021 08:59:19 -0400 (EDT) |
branch: elpa/vc-fossil
commit 6619ffba74686cf6c8439a5ec362a9cb7c4334b5
Author: fifr <fifr>
Commit: fifr <fifr>
Improve log command.
* support limits
* colorize output using custom `vc-fossil-log-view-mode`
---
vc/el/vc-fossil.el | 33 ++++++++++++++++++++++++++++-----
1 file changed, 28 insertions(+), 5 deletions(-)
diff --git a/vc/el/vc-fossil.el b/vc/el/vc-fossil.el
index ec96257..efa66fd 100644
--- a/vc/el/vc-fossil.el
+++ b/vc/el/vc-fossil.el
@@ -234,11 +234,34 @@ If `files` is nil return the status for all files."
(defun vc-fossil-print-log (files buffer &optional shortlog start-revision
limit)
"Print full log for a file"
- (when files
- (vc-fossil-command buffer 0 (car files) "finfo" "-l")
- (vc-fossil-print-log (cdr files) buffer)))
-
-;; TBD: log-entry
+ (vc-setup-buffer buffer)
+ (let ((inhibit-read-only t))
+ (with-current-buffer buffer
+ (dolist (file files)
+ (apply #'vc-fossil-command buffer 0 nil "timeline"
+ (nconc
+ (when start-revision (list "before" start-revision))
+ (when limit (list "-n" (number-to-string limit)))
+ (list "-p" file)))))))
+
+(define-derived-mode vc-fossil-log-view-mode log-view-mode "Fossil-Log-View"
+ (require 'add-log) ;; we need the add-log faces
+ (set (make-local-variable 'log-view-file-re) "\\`a\\`")
+ (set (make-local-variable 'log-view-per-file-logs) nil)
+ (set (make-local-variable 'log-view-message-re)
+ "^[0-9:]+ \\[\\([0-9a-fA-F]*\\)\\] \\(?:\\*[^*]*\\*\\)? ?\\(.*\\)")
+ (set (make-local-variable 'log-view-font-lock-keywords)
+ (append
+ '(
+ ("^\\([0-9:]*\\) \\(\\[[[:alnum:]]*\\]\\)
\\(\\(?:\\*[[:word:]]*\\*\\)?\\) ?\\(.*?\\) (user: \\([[:word:]]*\\) tags:
\\(.*\\))"
+ (1 'change-log-date)
+ (2 'change-log-name)
+ (3 'highlight)
+ (4 'log-view-message)
+ (5 'change-log-name)
+ (6 'highlight))
+ ("^=== \\(.*\\) ==="
+ (1 'change-log-date))))))
(defun vc-fossil-diff (file &optional rev1 rev2 buffer)
"Get Differences for a file"
- [nongnu] elpa/vc-fossil f07cd00 108/111: Upstream updates, (continued)
- [nongnu] elpa/vc-fossil f07cd00 108/111: Upstream updates, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil acb773e 098/111: Merge Changes, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil abdb548 099/111: Update to pdo's latest, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil f365e43 110/111: vc-fossil.el: Update from fossil., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 9e52264 028/111: emacs style (cont), some logic issues seem apparent..., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 7c5af95 102/111: enable Fossil VC backend at load / autoload time, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 93c2104 101/111: Merge pull request #1 from barak/trunk, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil bf1969f 033/111: Undo file-truename in log because emacs-23.3.1 gives relative names which confuse fossil., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil c058f3d 039/111: Remove debug message from `vc-fossil-after-dir-status`., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil f4795ba 044/111: Pass `vc-checkout-switches` on checkout., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 6619ffb 048/111: Improve log command.,
ELPA Syncer <=
- [nongnu] elpa/vc-fossil b632993 050/111: Handle switches in diff command., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 560d708 051/111: Implement annotate commanad., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 169cff6 053/111: Suppress echo message when enabling word wrap in log view., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil e2ec578 060/111: Use `vc-fossil-command` if the output is inserted in a buffer., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 5b0c159 067/111: Updates from Frank Fisher. colorized logs, vc-annotate, fixes for the diff command, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 5089a96 076/111: Enhanced vc-fossil-dir-extra-headers function., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 34b0ed9 096/111: Merged., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil d03f490 090/111: Added package installation instructions., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 00ff203 031/111: Allow .fslckout in Unix as fossil db name. (for [769989987d]), ELPA Syncer, 2021/09/29