[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vc-hgcmd 4528bac 61/87: use vc-state in find-file-hook;
From: |
Stefan Monnier |
Subject: |
[elpa] externals/vc-hgcmd 4528bac 61/87: use vc-state in find-file-hook; removed done todos |
Date: |
Sat, 5 Jun 2021 16:11:47 -0400 (EDT) |
branch: externals/vc-hgcmd
commit 4528bac7063d8daa0b13a3f11c2fc433b0032d00
Author: muffinmad <andreyk.mad@gmail.com>
Commit: muffinmad <andreyk.mad@gmail.com>
use vc-state in find-file-hook; removed done todos
---
vc-hgcmd.el | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/vc-hgcmd.el b/vc-hgcmd.el
index e754424..b86cfd3 100644
--- a/vc-hgcmd.el
+++ b/vc-hgcmd.el
@@ -405,7 +405,6 @@ Insert output to process buffer and check if amount of data
is enought to parse
(set-process-query-on-exit-flag process nil)
(set-process-coding-system process 'no-conversion 'no-conversion)
;; read hello message
- ;; TODO parse encoding
;; check process again because it can be tramp sh process with
output like "env: hg not found"
(let ((output (vc-hgcmd--read-output)))
(while (and (process-live-p process) (or (not output) (not
(string-prefix-p "capabilities: " (cdr output)))))
@@ -936,8 +935,6 @@ Insert output to process buffer and check if amount of data
is enought to parse
(defalias 'vc-hgcmd-responsible-p 'vc-hgcmd-root)
-;; TODO receive-file
-
(defun vc-hgcmd-unregister (file)
"Forget FILE."
(vc-hgcmd-command "forget" (vc-hgcmd--file-relative-name file)))
@@ -1312,18 +1309,14 @@ Insert output to process buffer and check if amount of
data is enought to parse
(vc-hgcmd-mark-resolved (list buffer-file-name))
(remove-hook 'after-save-hook #'vc-hgcmd--after-save-hook t)))
-;; TODO It's really handy to autostart smerge but additional hg command will
be called on every find-file
(defun vc-hgcmd-find-file-hook ()
"Find file hook. Start smerge session if vc state eq conflict."
- (when (vc-hgcmd--file-unresolved-p buffer-file-name)
+ (when (and buffer-file-name
+ (eq (vc-state buffer-file-name 'Hgcmd) 'conflict))
(smerge-start-session)
(add-hook 'after-save-hook #'vc-hgcmd--after-save-hook nil t)
(vc-message-unresolved-conflicts buffer-file-name)))
-;; TODO extra menu
-
-;; TODO extra-dir-menu. update -C for example or commit --close-branch or
--amend without changes
-
(defun vc-hgcmd-conflicted-files (&optional _dir)
"List of files with conflict or resolved conflict."
(let (result)
- [elpa] externals/vc-hgcmd 0fbd67b 82/87: Version 1.10, (continued)
- [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
- [elpa] externals/vc-hgcmd 4528bac 61/87: use vc-state in find-file-hook; removed done todos,
Stefan Monnier <=
- [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, 2021/06/05
- [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