diff options
| author | Juri Linkov | 2023-01-24 20:24:15 +0200 |
|---|---|---|
| committer | Juri Linkov | 2023-01-24 20:27:07 +0200 |
| commit | e31a56239654a74b60e51f20799c8b09522082e4 (patch) | |
| tree | c233a791f56f7f2147c2f19428356ac1c7abc4d4 | |
| parent | deee3a92623ef6b2c879b99fd0dfa449ee4f420d (diff) | |
| download | emacs-e31a56239654a74b60e51f20799c8b09522082e4.tar.gz emacs-e31a56239654a74b60e51f20799c8b09522082e4.zip | |
* lisp/vc/vc-bzr.el (vc-bzr--pushpull): Return buffer's process.
* lisp/vc/vc-git.el (vc-git--pushpull): Add comment.
* lisp/vc/vc.el (vc-pull-and-push): Expand docstring about
prerequisites for backend to support this command (bug#60569).
| -rw-r--r-- | etc/NEWS | 2 | ||||
| -rw-r--r-- | lisp/vc/vc-bzr.el | 4 | ||||
| -rw-r--r-- | lisp/vc/vc-git.el | 1 | ||||
| -rw-r--r-- | lisp/vc/vc.el | 3 |
4 files changed, 7 insertions, 3 deletions
| @@ -2080,7 +2080,7 @@ This is in addition to the old keybindings 'C-c C-n' and 'C-c C-p'. | |||
| 2080 | --- | 2080 | --- |
| 2081 | *** New command 'vc-pull-and-push'. | 2081 | *** New command 'vc-pull-and-push'. |
| 2082 | This commands first does a "pull" command, and if that is successful, | 2082 | This commands first does a "pull" command, and if that is successful, |
| 2083 | does a "push" command afterwards. | 2083 | does a "push" command afterwards. Currently supported in Git and Bzr. |
| 2084 | 2084 | ||
| 2085 | +++ | 2085 | +++ |
| 2086 | *** 'C-x v b' prefix key is used now for branch commands. | 2086 | *** 'C-x v b' prefix key is used now for branch commands. |
diff --git a/lisp/vc/vc-bzr.el b/lisp/vc/vc-bzr.el index 6443f6d57aa..f66e37fffa4 100644 --- a/lisp/vc/vc-bzr.el +++ b/lisp/vc/vc-bzr.el | |||
| @@ -381,7 +381,9 @@ If PROMPT is non-nil, prompt for the Bzr command to run." | |||
| 381 | (setq-local compile-command | 381 | (setq-local compile-command |
| 382 | (concat vc-bzr-program " " command " " | 382 | (concat vc-bzr-program " " command " " |
| 383 | (if args (mapconcat #'identity args " ") ""))))) | 383 | (if args (mapconcat #'identity args " ") ""))))) |
| 384 | (vc-set-async-update buf)))) | 384 | (vc-set-async-update buf) |
| 385 | ;; Return the process for `vc-pull-and-push' | ||
| 386 | (get-buffer-process buf)))) | ||
| 385 | 387 | ||
| 386 | (defun vc-bzr-pull (prompt) | 388 | (defun vc-bzr-pull (prompt) |
| 387 | "Pull changes into the current Bzr branch. | 389 | "Pull changes into the current Bzr branch. |
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index 04aa37d6400..7ae763d2ee4 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el | |||
| @@ -1168,6 +1168,7 @@ If PROMPT is non-nil, prompt for the Git command to run." | |||
| 1168 | (lambda (_name-of-mode) buffer) | 1168 | (lambda (_name-of-mode) buffer) |
| 1169 | nil)))) | 1169 | nil)))) |
| 1170 | (vc-set-async-update buffer) | 1170 | (vc-set-async-update buffer) |
| 1171 | ;; Return the process for `vc-pull-and-push' | ||
| 1171 | proc)) | 1172 | proc)) |
| 1172 | 1173 | ||
| 1173 | (defun vc-git-pull (prompt) | 1174 | (defun vc-git-pull (prompt) |
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index d4a3280f1bd..a181765eac3 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el | |||
| @@ -3064,7 +3064,8 @@ On a distributed version control system, this runs a \"pull\" | |||
| 3064 | operation on the current branch, prompting for the precise | 3064 | operation on the current branch, prompting for the precise |
| 3065 | command if required. Optional prefix ARG non-nil forces a prompt | 3065 | command if required. Optional prefix ARG non-nil forces a prompt |
| 3066 | for the VCS command to run. If this is successful, a \"push\" | 3066 | for the VCS command to run. If this is successful, a \"push\" |
| 3067 | operation will then be done. | 3067 | operation will then be done. This is supported only in backends |
| 3068 | where the pull operation returns a process. | ||
| 3068 | 3069 | ||
| 3069 | On a non-distributed version control system, this signals an error. | 3070 | On a non-distributed version control system, this signals an error. |
| 3070 | It also signals an error in a Bazaar bound branch." | 3071 | It also signals an error in a Bazaar bound branch." |