]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/vc/vc-bzr.el (vc-bzr-shelve): Make it operate on fileset.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 21 Jul 2014 01:25:59 +0000 (21:25 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 21 Jul 2014 01:25:59 +0000 (21:25 -0400)
lisp/ChangeLog
lisp/vc/vc-bzr.el

index bf2024ac9b6c35afa87c95103aafab3d10767dc6..518e5ba1a6d2c3898eeafa025b1680410d663400 100644 (file)
@@ -1,3 +1,7 @@
+2014-07-21  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * vc/vc-bzr.el (vc-bzr-shelve): Make it operate on fileset.
+
 2014-07-19  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * xt-mouse.el (xterm-mouse-event): Don't assume last-click is non-nil
index 0730a9c72ce3be97a176d3b9f3a166033a51027a..4693998dfaf04260b708a8f71612b315caa05604 100644 (file)
@@ -1132,11 +1132,12 @@ stream.  Standard error output is discarded."
                   (file &optional keep noquery reset-vc-info))
 
 (defun vc-bzr-shelve (name)
-  "Create a shelve."
+  "Shelve the changes of the selected files."
   (interactive "sShelf name: ")
-  (let ((root (vc-bzr-root default-directory)))
+  (let ((root (vc-bzr-root default-directory))
+        (fileset (vc-deduce-fileset)))
     (when root
-      (vc-bzr-command "shelve" nil 0 nil "--all" "-m" name)
+      (vc-bzr-command "shelve" nil 0 (nth 1 fileset) "--all" "-m" name)
       (vc-resynch-buffer root t t))))
 
 (defun vc-bzr-shelve-show (name)