all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#14066: 24.3; vc-bzr-revert shouldn't create backup files
@ 2013-03-27 15:36 Leo Liu
  2013-03-28  3:29 ` Leo Liu
  0 siblings, 1 reply; 2+ messages in thread
From: Leo Liu @ 2013-03-27 15:36 UTC (permalink / raw)
  To: 14066

According to vc-default-make-version-backups-p, no backup file is
created for the bzr backend. However 'bzr revert' itself creates backups
which is very confusing.

So I propose the following patch:

diff --git a/lisp/vc/vc-bzr.el b/lisp/vc/vc-bzr.el
index f436d300..c1195eee 100644
--- a/lisp/vc/vc-bzr.el
+++ b/lisp/vc/vc-bzr.el
@@ -644,7 +644,7 @@ (defun vc-bzr-checkout (_file &optional _editable rev)
 
 (defun vc-bzr-revert (file &optional contents-done)
   (unless contents-done
-    (with-temp-buffer (vc-bzr-command "revert" t 0 file))))
+    (with-temp-buffer (vc-bzr-command "revert" t 0 file "--no-backup"))))
 
 (defvar log-view-message-re)
 (defvar log-view-file-re)





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#14066: 24.3; vc-bzr-revert shouldn't create backup files
  2013-03-27 15:36 bug#14066: 24.3; vc-bzr-revert shouldn't create backup files Leo Liu
@ 2013-03-28  3:29 ` Leo Liu
  0 siblings, 0 replies; 2+ messages in thread
From: Leo Liu @ 2013-03-28  3:29 UTC (permalink / raw)
  To: 14066-done

Fixed in trunk





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-28  3:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-27 15:36 bug#14066: 24.3; vc-bzr-revert shouldn't create backup files Leo Liu
2013-03-28  3:29 ` Leo Liu

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.