diff options
| author | Leo Liu | 2011-05-24 16:22:58 +0800 |
|---|---|---|
| committer | Leo Liu | 2011-05-24 16:22:58 +0800 |
| commit | e1b90ef6eca2e32b99fff7ecf14bd1f074046da8 (patch) | |
| tree | 8c55d1013121e1905517168deaa0e6dfd6153782 /lisp/vc | |
| parent | 4ba4c54add7f291e655fb0a5555f7049a9ed17e9 (diff) | |
| download | emacs-e1b90ef6eca2e32b99fff7ecf14bd1f074046da8.tar.gz emacs-e1b90ef6eca2e32b99fff7ecf14bd1f074046da8.zip | |
Implement primitive `sha1' and remove sha1.el
Diffstat (limited to 'lisp/vc')
| -rw-r--r-- | lisp/vc/vc-bzr.el | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lisp/vc/vc-bzr.el b/lisp/vc/vc-bzr.el index 21cb86a9840..fa59b7ef19c 100644 --- a/lisp/vc/vc-bzr.el +++ b/lisp/vc/vc-bzr.el | |||
| @@ -65,6 +65,14 @@ | |||
| 65 | :group 'vc-bzr | 65 | :group 'vc-bzr |
| 66 | :type 'string) | 66 | :type 'string) |
| 67 | 67 | ||
| 68 | (defcustom vc-bzr-sha1-program '("sha1sum") | ||
| 69 | "Name of program to compute SHA1. | ||
| 70 | It must be a string \(program name\) or list of strings \(name and its args\)." | ||
| 71 | :type '(repeat string) | ||
| 72 | :group 'vc-bzr) | ||
| 73 | |||
| 74 | (define-obsolete-variable-alias 'sha1-program 'vc-bzr-sha1-program "24.1") | ||
| 75 | |||
| 68 | (defcustom vc-bzr-diff-switches nil | 76 | (defcustom vc-bzr-diff-switches nil |
| 69 | "String or list of strings specifying switches for bzr diff under VC. | 77 | "String or list of strings specifying switches for bzr diff under VC. |
| 70 | If nil, use the value of `vc-diff-switches'. If t, use no switches." | 78 | If nil, use the value of `vc-diff-switches'. If t, use no switches." |
| @@ -156,12 +164,10 @@ in the repository root directory of FILE." | |||
| 156 | (push (cons (match-string 1) (match-string 2)) settings))) | 164 | (push (cons (match-string 1) (match-string 2)) settings))) |
| 157 | settings)) | 165 | settings)) |
| 158 | 166 | ||
| 159 | (require 'sha1) ;For sha1-program | ||
| 160 | |||
| 161 | (defun vc-bzr-sha1 (file) | 167 | (defun vc-bzr-sha1 (file) |
| 162 | (with-temp-buffer | 168 | (with-temp-buffer |
| 163 | (set-buffer-multibyte nil) | 169 | (set-buffer-multibyte nil) |
| 164 | (let ((prog sha1-program) | 170 | (let ((prog vc-bzr-sha1-program) |
| 165 | (args nil) | 171 | (args nil) |
| 166 | process-file-side-effects) | 172 | process-file-side-effects) |
| 167 | (when (consp prog) | 173 | (when (consp prog) |