[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vc-hgcmd 69edbce 71/87: Implement log-search
From: |
Stefan Monnier |
Subject: |
[elpa] externals/vc-hgcmd 69edbce 71/87: Implement log-search |
Date: |
Sat, 5 Jun 2021 16:11:49 -0400 (EDT) |
branch: externals/vc-hgcmd
commit 69edbce52a8687fa22b4eb6ed022c2db062dee3b
Author: muffinmad <andreyk.mad@gmail.com>
Commit: muffinmad <andreyk.mad@gmail.com>
Implement log-search
---
vc-hgcmd.el | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/vc-hgcmd.el b/vc-hgcmd.el
index bbeb336..acc95b4 100644
--- a/vc-hgcmd.el
+++ b/vc-hgcmd.el
@@ -5,7 +5,7 @@
;; Author: Andrii Kolomoiets <andreyk.mad@gmail.com>
;; Keywords: vc
;; URL: https://github.com/muffinmad/emacs-vc-hgcmd
-;; Package-Version: 1.8.1
+;; Package-Version: 1.9
;; Package-Requires: ((emacs "25.1"))
;; This file is NOT part of GNU Emacs.
@@ -62,6 +62,7 @@
;; * print-log (files buffer &optional shortlog start-revision limit) OK but
graph log if shortlog
;; * log-outgoing (backend remote-location) OK
;; * log-incoming (backend remote-location) OK
+;; - log-search (buffer pattern) OK
;; - log-view-mode () OK
;; - show-log-entry (revision) OK
;; - comment-history (file) NO
@@ -1083,6 +1084,20 @@ Insert output to process buffer and check if amount of
data is enought to parse
"Log incoming from REMOTE-LOCATION to BUFFER."
(vc-hgcmd--log-in-or-out "incoming" buffer remote-location))
+(defun vc-hgcmd-log-search (buffer pattern)
+ "Search the change log for keyword PATTERN and output results into BUFFER.
+
+PATTERN is passed as argument to 'hg log -k' command.
+
+With prefix argument, ask for 'log' command arguments."
+ (let ((args (if current-prefix-arg
+ (split-string-and-unquote
+ (read-shell-command
+ "Search log with command 'hg log': "
+ "-k "))
+ (list "-k" pattern))))
+ (apply #'vc-hgcmd-command-to-buffer buffer (nconc (list "log") args))))
+
(defun vc-hgcmd--graph-data-re (re)
"Add graph data re to RE."
(concat "^\\(?:[o@_x*+-~|/: ]*\\)" re))
- [elpa] externals/vc-hgcmd c16d22e 74/87: Use single `looking-at` to on summary parsing, (continued)
- [elpa] externals/vc-hgcmd c16d22e 74/87: Use single `looking-at` to on summary parsing, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 2b1b87b 76/87: Trim left whitespace from entry value in vc-dir, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd c57cd1f 81/87: Expand shortlog entry, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd f4441d4 83/87: Update copyright year, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 7433c6c 85/87: Add switches support for various operations, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd d23de9d 87/87: Use vc-read-revision, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 4528bac 61/87: use vc-state in find-file-hook; removed done todos, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 680c1e6 62/87: v1.6.6, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd e0f6e41 63/87: Fixed retrieval of working revision on merge, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 1f7e6d0 67/87: View changes made by revision; diff to parents, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 69edbce 71/87: Implement log-search,
Stefan Monnier <=
- [elpa] externals/vc-hgcmd 01447f9 49/87: Set LANGUAGE=C, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd b82518f 52/87: Functions implementation status in commentary, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 3ee691d 55/87: Wrong heading in readme, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd ce36707 56/87: Find proper filename across renames on diff, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd fc7b852 57/87: Don't retrieve files for fileless diff; region-history, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 0b052a6 69/87: Suppress untrusted hgrc warning, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 4036564 73/87: Show all 'summary' output, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 45000c8 75/87: Don't append extra empty line in vc-dir, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd da539aa 78/87: Skip lines with unknow status while parsing 'hg status', Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 44afcf1 80/87: Shortlog, Stefan Monnier, 2021/06/05