Mercurial > emacs
comparison lisp/vc-hooks.el @ 59996:aac0a33f5772
Change release version from 21.4 to 22.1 throughout.
Change development version from 21.3.50 to 22.0.50.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Wed, 09 Feb 2005 15:50:47 +0000 |
parents | c3afd6e6c992 |
children | 92bee19cd688 89ac10c67e45 3ebd9bdb4fe5 |
comparison
equal
deleted
inserted
replaced
59995:8f4938738427 | 59996:aac0a33f5772 |
---|---|
147 (const :tag "Don't stay local" nil) | 147 (const :tag "Don't stay local" nil) |
148 (list :format "\nExamine hostname and %v" :tag "Examine hostname ..." | 148 (list :format "\nExamine hostname and %v" :tag "Examine hostname ..." |
149 (set :format "%v" :inline t (const :format "%t" :tag "don't" except)) | 149 (set :format "%v" :inline t (const :format "%t" :tag "don't" except)) |
150 (regexp :format " stay local,\n%t: %v" :tag "if it matches") | 150 (regexp :format " stay local,\n%t: %v" :tag "if it matches") |
151 (repeat :format "%v%i\n" :inline t (regexp :tag "or")))) | 151 (repeat :format "%v%i\n" :inline t (regexp :tag "or")))) |
152 :version "21.4" | 152 :version "22.1" |
153 :group 'vc) | 153 :group 'vc) |
154 | 154 |
155 (defun vc-stay-local-p (file) | 155 (defun vc-stay-local-p (file) |
156 "Return non-nil if VC should stay local when handling FILE. | 156 "Return non-nil if VC should stay local when handling FILE. |
157 This uses the `repository-hostname' backend operation." | 157 This uses the `repository-hostname' backend operation." |
635 (condition-case nil | 635 (condition-case nil |
636 (copy-file file (vc-version-backup-file-name file) | 636 (copy-file file (vc-version-backup-file-name file) |
637 nil 'keep-date) | 637 nil 'keep-date) |
638 ;; It's ok if it doesn't work (e.g. directory not writable), | 638 ;; It's ok if it doesn't work (e.g. directory not writable), |
639 ;; since this is just for efficiency. | 639 ;; since this is just for efficiency. |
640 (file-error | 640 (file-error |
641 (message | 641 (message |
642 (concat "Warning: Cannot make version backup; " | 642 (concat "Warning: Cannot make version backup; " |
643 "diff/revert therefore not local")))))) | 643 "diff/revert therefore not local")))))) |
644 | 644 |
645 (defun vc-before-save () | 645 (defun vc-before-save () |