diff options
| author | Stefan Monnier | 2010-04-19 11:26:06 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2010-04-19 11:26:06 -0400 |
| commit | c80fa13c0d799fda7b8141875a78b877d0e526fc (patch) | |
| tree | 1ea3fe4f56f0892dafb2eb0cec471d6513f84113 | |
| parent | 6e104790e756226cbb5b7feaf01854103ded9f36 (diff) | |
| download | emacs-c80fa13c0d799fda7b8141875a78b877d0e526fc.tar.gz emacs-c80fa13c0d799fda7b8141875a78b877d0e526fc.zip | |
* vc-bzr: Use standard *vc* and *vc-diff* buffers.
(vc-bzr-shelve-show, vc-bzr-shelve-apply)
(vc-bzr-shelve-apply-and-keep, vc-bzr-shelve-snapshot):
Don't use *vc-bzr-shelve*.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/vc-bzr.el | 12 |
2 files changed, 13 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f690d8bb2a7..93a008c8e16 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2010-04-19 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * vc-bzr.el: Use standard *vc* and *vc-diff* buffers. | ||
| 4 | (vc-bzr-shelve-show, vc-bzr-shelve-apply) | ||
| 5 | (vc-bzr-shelve-apply-and-keep, vc-bzr-shelve-snapshot): | ||
| 6 | Don't use *vc-bzr-shelve*. | ||
| 7 | |||
| 1 | 2010-04-19 Chong Yidong <cyd@stupidchicken.com> | 8 | 2010-04-19 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 9 | ||
| 3 | * cedet/ede/pmake.el (ede-proj-makefile-insert-variables): | 10 | * cedet/ede/pmake.el (ede-proj-makefile-insert-variables): |
diff --git a/lisp/vc-bzr.el b/lisp/vc-bzr.el index 2c576623120..64935f16dbd 100644 --- a/lisp/vc-bzr.el +++ b/lisp/vc-bzr.el | |||
| @@ -899,10 +899,10 @@ stream. Standard error output is discarded." | |||
| 899 | (defun vc-bzr-shelve-show (name) | 899 | (defun vc-bzr-shelve-show (name) |
| 900 | "Show the contents of shelve NAME." | 900 | "Show the contents of shelve NAME." |
| 901 | (interactive "sShelve name: ") | 901 | (interactive "sShelve name: ") |
| 902 | (vc-setup-buffer "*vc-bzr-shelve*") | 902 | (vc-setup-buffer "*vc-diff*") |
| 903 | ;; FIXME: how can you show the contents of a shelf? | 903 | ;; FIXME: how can you show the contents of a shelf? |
| 904 | (vc-bzr-command "unshelve" "*vc-bzr-shelve*" 'async nil "--preview" name) | 904 | (vc-bzr-command "unshelve" "*vc-diff*" 'async nil "--preview" name) |
| 905 | (set-buffer "*vc-bzr-shelve*") | 905 | (set-buffer "*vc-diff*") |
| 906 | (diff-mode) | 906 | (diff-mode) |
| 907 | (setq buffer-read-only t) | 907 | (setq buffer-read-only t) |
| 908 | (pop-to-buffer (current-buffer))) | 908 | (pop-to-buffer (current-buffer))) |
| @@ -910,13 +910,13 @@ stream. Standard error output is discarded." | |||
| 910 | (defun vc-bzr-shelve-apply (name) | 910 | (defun vc-bzr-shelve-apply (name) |
| 911 | "Apply shelve NAME and remove it afterwards." | 911 | "Apply shelve NAME and remove it afterwards." |
| 912 | (interactive "sApply (and remove) shelf: ") | 912 | (interactive "sApply (and remove) shelf: ") |
| 913 | (vc-bzr-command "unshelve" "*vc-bzr-shelve*" 0 nil "--apply" name) | 913 | (vc-bzr-command "unshelve" nil 0 nil "--apply" name) |
| 914 | (vc-resynch-buffer (vc-bzr-root default-directory) t t)) | 914 | (vc-resynch-buffer (vc-bzr-root default-directory) t t)) |
| 915 | 915 | ||
| 916 | (defun vc-bzr-shelve-apply-and-keep (name) | 916 | (defun vc-bzr-shelve-apply-and-keep (name) |
| 917 | "Apply shelve NAME and keep it afterwards." | 917 | "Apply shelve NAME and keep it afterwards." |
| 918 | (interactive "sApply (and keep) shelf: ") | 918 | (interactive "sApply (and keep) shelf: ") |
| 919 | (vc-bzr-command "unshelve" "*vc-bzr-shelve*" 0 nil "--apply" "--keep" name) | 919 | (vc-bzr-command "unshelve" nil 0 nil "--apply" "--keep" name) |
| 920 | (vc-resynch-buffer (vc-bzr-root default-directory) t t)) | 920 | (vc-resynch-buffer (vc-bzr-root default-directory) t t)) |
| 921 | 921 | ||
| 922 | (defun vc-bzr-shelve-snapshot () | 922 | (defun vc-bzr-shelve-snapshot () |
| @@ -927,7 +927,7 @@ stream. Standard error output is discarded." | |||
| 927 | (concat | 927 | (concat |
| 928 | (format-time-string "Snapshot on %Y-%m-%d" ct) | 928 | (format-time-string "Snapshot on %Y-%m-%d" ct) |
| 929 | (format-time-string " at %H:%M" ct)))) | 929 | (format-time-string " at %H:%M" ct)))) |
| 930 | (vc-bzr-command "unshelve" "*vc-bzr-shelve*" 0 nil "--apply" "--keep") | 930 | (vc-bzr-command "unshelve" nil 0 nil "--apply" "--keep") |
| 931 | (vc-resynch-buffer (vc-bzr-root default-directory) t t)) | 931 | (vc-resynch-buffer (vc-bzr-root default-directory) t t)) |
| 932 | 932 | ||
| 933 | (defun vc-bzr-shelve-list () | 933 | (defun vc-bzr-shelve-list () |