[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/vc-fossil cb4cd3f 017/111: Fossil version 3af6cf0993, move
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/vc-fossil cb4cd3f 017/111: Fossil version 3af6cf0993, moves update to end, simplifying our parsing. |
Date: |
Wed, 29 Sep 2021 08:59:12 -0400 (EDT) |
branch: elpa/vc-fossil
commit cb4cd3f1bb315368ed6a31263bbb7a1db18faa6e
Author: venkat <venkat>
Commit: venkat <venkat>
Fossil version 3af6cf0993, moves update to end, simplifying our parsing.
---
vc/el/vc-fossil.el | 27 +++++++++++++--------------
1 file changed, 13 insertions(+), 14 deletions(-)
diff --git a/vc/el/vc-fossil.el b/vc/el/vc-fossil.el
index e1013b5..78f42d2 100644
--- a/vc/el/vc-fossil.el
+++ b/vc/el/vc-fossil.el
@@ -109,14 +109,9 @@
(defun vc-fossil-state (file)
"Fossil specific version of `vc-state'."
; (message (format "vc-fossil-state on %s" file))
- (with-temp-buffer
- (insert (vc-fossil--run "update" "-n" "-v" "current" file))
- (goto-char (point-max))
- (forward-line -1)
- (vc-fossil-state-code
- (car
- (split-string
- (buffer-substring-no-properties (point) (buffer-end 1)))))))
+ (let ((line (vc-fossil--run "update" "-n" "-v" "current" file)))
+ (and line
+ (vc-fossil-state-code (car (split-string line))))))
(defun vc-fossil-working-revision (file)
"Fossil Specific version of `vc-working-revision'."
@@ -136,17 +131,18 @@
;(message dir)
(insert (vc-fossil--run "update" "-n" "-v" "current" dir))
(let* ((result)
+ (done nil)
(root (vc-fossil-root dir)))
(goto-char (point-min))
- (while (not (eobp))
+ (while (and (not (eobp)) (not done))
(setq line (buffer-substring-no-properties (point) (line-end-position)))
(setq status-word (car (split-string line)))
- (setq file (substring line (+ (length status-word) 1)))
+ (setq done (string-match "-----" status-word))
+ (setq file (if done "." (substring line (+ (length status-word) 1))))
(setq file (expand-file-name file root))
(setq file (file-relative-name file dir))
- (setq result (if (or (string-match ":" line)
- (string-match "^[ \t]" line)) result
- (cons (list file (vc-fossil-state-code status-word))
result)))
+ (setq result (if done result
+ (cons (list file (vc-fossil-state-code status-word))
result)))
(forward-line))
(funcall update-function result nil)))
@@ -221,7 +217,10 @@
;; HISTORY FUNCTIONS
-(defun vc-fossil-print-log (files &optional buffer)
+;; FIXME, we actually already have short, start and limit, need to
+;; add it into the code
+
+(defun vc-fossil-print-log (files buffer &optional shortlog start-revision
limit)
"Print full log for a file"
(if files
(progn
- [nongnu] elpa/vc-fossil ac53c94 007/111: Add emacs 23.1 as a requirement in the documenation., (continued)
- [nongnu] elpa/vc-fossil ac53c94 007/111: Add emacs 23.1 as a requirement in the documenation., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 7e98e83 012/111: Remove debug message., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 15d0461 009/111: Remove --brief from file log. Still used in next-rev/prev-rev., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 70efbef 011/111: Note that fossil trunk now has all required changes., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 43f9868 014/111: Add "ADD" as a possible state reported by fossil - also mapped to needs-update, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 82fd031 003/111: Initial Doc, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil a6f36f1 008/111: 2 edited files have already merged into fossil trunk. Only one file needs changes - note that., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil f29eee9 013/111: Revert previous checkin. Remove debug message. Make, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 086622b 015/111: Handle headers in update -n -v (currently ignore any line with a :)., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 0bd29ae 010/111: Simplified version of vc-fossil-registered., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil cb4cd3f 017/111: Fossil version 3af6cf0993, moves update to end, simplifying our parsing.,
ELPA Syncer <=
- [nongnu] elpa/vc-fossil b1429cb 019/111: flush assignment warnings via let augmentation, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 56b4562 020/111: tweak doc: compile command, and don't smash other VCs off vc-handled-backends, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 5a8e1a3 022/111: autoload in docs, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 0da61d3 025/111: standard comment style, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil fe3e0d3 035/111: Enable vc-ediff to work. Thanks to folks who contributed in [8521322bc9], ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil c642a01 042/111: Pass `vc-checkin-switches` on checkin., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil d844871 026/111: typo in emacs keystroke in documentation, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 419877b 030/111: squelch dead computation; clarify logic, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 403712d 032/111: Fossil gets confused traversing through symlinks. Use file-truename in multiple places to get past that., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 9d2d9f8 038/111: Refactoring of `vc-fossil-dir-status`., ELPA Syncer, 2021/09/29