[PATCH] Do not inhibit backups of non-tracked files

Teemu Torma teemu at torma.org
Sun Dec 10 12:01:44 UTC 2006


# HG changeset patch
# User Teemu Torma <teemu at torma.org>
# Date 1165755182 -3600
# Node ID d93dd7ec88a2962343b967f7fc57a850e440a6ba
# Parent  4f6db02336068478eb1e4c9915dc38b41daee5d8
Do not inhibit backups of non-tracked files.

diff -r 4f6db0233606 -r d93dd7ec88a2 contrib/mercurial.el
--- a/contrib/mercurial.el	Sun Dec 10 02:11:02 2006 -0600
+++ b/contrib/mercurial.el	Sun Dec 10 13:53:02 2006 +0100
@@ -706,6 +706,8 @@ the file."
     (when (and root (or force hg-update-modeline (not hg-mode)))
       (let ((status (hg-file-status buffer-file-name))
 	    (parents (hg-parents-for-mode-line root)))
+	(unless vc-make-backup-files
+	  (setq backup-inhibited status))
 	(hg-mode-line-internal status parents)
 	status))))
 



More information about the Mercurial-devel mailing list