[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/vc-fossil 8e34d7b 080/111: Added support for vc-push comma
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/vc-fossil 8e34d7b 080/111: Added support for vc-push command. |
Date: |
Wed, 29 Sep 2021 08:59:25 -0400 (EDT) |
branch: elpa/vc-fossil
commit 8e34d7b3d5c1c1f19cba5767ab34ea8e1ee64f47
Author: pdo <pdo>
Commit: pdo <pdo>
Added support for vc-push command.
---
vc/el/vc-fossil.el | 31 ++++++++++++++++++++++---------
1 file changed, 22 insertions(+), 9 deletions(-)
diff --git a/vc/el/vc-fossil.el b/vc/el/vc-fossil.el
index 9ff9442..88031d3 100644
--- a/vc/el/vc-fossil.el
+++ b/vc/el/vc-fossil.el
@@ -85,6 +85,9 @@ If nil, use the value of `vc-diff-switches'. If t, use no
switches."
(defvar vc-fossil-history nil)
+(defvar vc-fossil-pull-history nil)
+(defvar vc-fossil-push-history nil)
+
(defun vc-fossil-revision-granularity () 'repository)
@@ -321,22 +324,16 @@ If `files` is nil return the status for all files."
(if contents-done t
(vc-fossil-command nil 0 file "revert")))
-(defun vc-fossil-pull (prompt)
- "Pull upstream changes into the current branch.
-
-With a prefix argument or of PROMPT is non-nil, prompt for a specific
-Fossil pull command. The default is \"fossil update\"."
- (interactive "P")
+(defun vc-fossil-do-prompted-command (prompt command &optional hist-var)
(let* ((root (vc-fossil-root default-directory))
(buffer (format "*vc-fossil : %s*" (expand-file-name root)))
(fossil-program "fossil")
- (command "update")
(args '()))
(when prompt
(setq args (split-string
(read-shell-command "Run Fossil (like this): "
- "fossil update"
- 'vc-fossil-history)
+ (concat fossil-program " " command)
+ (or hist-var 'vc-fossil-history))
" " t))
(setq fossil-program (car args)
command (cadr args)
@@ -346,6 +343,22 @@ Fossil pull command. The default is \"fossil update\"."
(vc-run-delayed (vc-compilation-mode 'Fossil)))
(vc-set-async-update buffer)))
+(defun vc-fossil-pull (prompt)
+ "Pull upstream changes into the current branch.
+
+With a prefix argument, or if PROMPT is non-nil, prompt for a specific
+Fossil pull command. The default is \"fossil update\"."
+ (interactive "P")
+ (vc-fossil-do-prompted-command prompt "update" 'vc-fossil-pull-history))
+
+(defun vc-fossil-push (prompt)
+ "Push changes to upstream repository.
+
+With a prefix argument or if PROMPT is non-nil, prompt for a specific
+Fossil push command. The default is \"fossil push\"."
+ (interactive "P")
+ (vc-fossil-do-prompted-command prompt "push" 'vc-fossil-push-history))
+
;; HISTORY FUNCTIONS
;; FIXME, we actually already have short, start and limit, need to
- [nongnu] elpa/vc-fossil f69eac0 047/111: Add end-of-file comment., (continued)
- [nongnu] elpa/vc-fossil f69eac0 047/111: Add end-of-file comment., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 3455e4a 049/111: Access command switches by `vc-switches`., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 4ce0039 052/111: Enable word-wrap with indentation in log view., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 03282dc 063/111: Implement next-revision command for whole repository., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil f68c80a 077/111: Merged enhanced vc-dir buffer header capability., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 6174102 078/111: Create README.md, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil b43a7e2 073/111: Added Emacs 25 compatibility., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 0aceef3 071/111: Add GPLv3 as the default license, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 6029bc2 082/111: Updates from pdo, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 4724850 089/111: Merged vc-push functionality and some code cleanups., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 8e34d7b 080/111: Added support for vc-push command.,
ELPA Syncer <=
- [nongnu] elpa/vc-fossil 7f26034 087/111: Corrected vc-fossil-dir-status function., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 2747e6c 103/111: Move vc-fossil.el to top dir, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 4d3e1cb 086/111: Update vc-dir header info after fossil commands., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil ec551ba 056/111: Implement previous-revision command for whole repository., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil a57356e 061/111: Refactor find-revision command., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 866bd8d 059/111: Use relative file names in print-log command., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil be45ea1 066/111: Declare some unknown function and variables., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil ac82044 065/111: Do not raise errors in next-revision and previous-revision commands., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 007187d 075/111: Merge changes from pdo for emacs 25 support, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 67855dd 081/111: Fixed accidental breakage in last commit., ELPA Syncer, 2021/09/29