[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vc-hgcmd 92e0121 77/87: Implement 'C-1 C-x v L'
From: |
Stefan Monnier |
Subject: |
[elpa] externals/vc-hgcmd 92e0121 77/87: Implement 'C-1 C-x v L' |
Date: |
Sat, 5 Jun 2021 16:11:50 -0400 (EDT) |
branch: externals/vc-hgcmd
commit 92e0121797b62cbece9cb44750c54f1bd4f65436
Author: muffinmad <andreyk.mad@gmail.com>
Commit: muffinmad <andreyk.mad@gmail.com>
Implement 'C-1 C-x v L'
Show log entry with diff for single revision
---
vc-hgcmd.el | 43 ++++++++++++++++++++++---------------------
1 file changed, 22 insertions(+), 21 deletions(-)
diff --git a/vc-hgcmd.el b/vc-hgcmd.el
index 7ffc964..0498696 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.9.1
+;; Package-Version: 1.9.2
;; Package-Requires: ((emacs "25.1"))
;; This file is NOT part of GNU Emacs.
@@ -1026,27 +1026,28 @@ Insert output to process buffer and check if amount of
data is enought to parse
(defun vc-hgcmd-print-log (files buffer &optional shortlog start-revision
limit)
"Put maybe SHORTLOG log of FILES to BUFFER starting with START-REVISION
limited by LIMIT."
;; TODO short log
- (let ((command
- (nconc
- (list "log")
- (when shortlog (list "-G"))
- (when start-revision
- ;; start revision is used for branch log or specific revision log
when limit is 1
- (list (if (or vc-hgcmd--print-log-revset (eq limit 1)) "-r" "-b")
start-revision))
- (when limit (list "-l" (number-to-string limit)))
- ;; file list not needed if limit is 1
- (unless (eq limit 1)
- (nconc
- (unless shortlog (list "-f")) ; follow file renames
- (unless (equal files (list default-directory)) (mapcar
#'vc-hgcmd--file-relative-name files)))))))
- ;; If limit is 1 or vc-log-show-limit then it is initial diff and better
move to working revision
- ;; otherwise remember point position and restore it later
- (let ((p (with-current-buffer buffer (unless (or (member limit (list 1
vc-log-show-limit))) (point)))))
+ (with-current-buffer buffer
+ (let ((command
+ (nconc
+ (list "log")
+ (when shortlog (list "-G"))
+ (when start-revision
+ ;; start revision is used for branch log or specific revision
log when limit is 1
+ (list (if (or vc-hgcmd--print-log-revset (eq limit 1)) "-r"
"-b") start-revision))
+ (when limit (list "-l" (number-to-string limit)))
+ ;; file list not needed if limit is 1
+ (unless (eq limit 1)
+ (nconc
+ (unless shortlog (list "-f")) ; follow file renames
+ (unless (equal files (list default-directory)) (mapcar
#'vc-hgcmd--file-relative-name files))))
+ (when (eq vc-log-view-type 'with-diff) (list "-p"))))
+ ;; If limit is 1 or vc-log-show-limit then it is initial diff and
better move to working revision
+ ;; otherwise remember point position and restore it later
+ (p (unless (or (member limit (list 1 vc-log-show-limit))) (point))))
(apply #'vc-hgcmd-command-to-buffer buffer command)
- (with-current-buffer buffer
- (if p
- (goto-char p)
- (unless start-revision (vc-hgcmd-show-log-entry nil)))))))
+ (if p
+ (goto-char p)
+ (unless start-revision (vc-hgcmd-show-log-entry nil))))))
(defun vc-hgcmd-print-log-revset (revset)
"Show the change log for REVSET."
- [elpa] externals/vc-hgcmd ee90dea 64/87: Installation notes markup, (continued)
- [elpa] externals/vc-hgcmd ee90dea 64/87: Installation notes markup, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 1515cd8 68/87: View log for revset, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd f5ecf9b 44/87: Interactive function to run custom hg commands, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd e0ecc56 46/87: ui.interactive and encoding, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd a0c25ca 53/87: Use relative filename on rename, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 2137d67 58/87: Find proper filename across renames on find revision, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 5edf2b9 65/87: Enable shelve extension and shelve list by default (fixes #2), Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 6d8f45c 59/87: Use "diff -c" on diff for single revision, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd e13ae5e 70/87: Fixed package-lint reported issues, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd b67e78d 72/87: Implement update-on-retrieve-tag, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 92e0121 77/87: Implement 'C-1 C-x v L',
Stefan Monnier <=
- [elpa] externals/vc-hgcmd 0fbd67b 82/87: Version 1.10, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd d96f41b 84/87: Move `require` to top, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 0c8c554 60/87: region history, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd dc7d629 66/87: removed useless vconcat and bindat-unpack call, Stefan Monnier, 2021/06/05
- [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