aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorEric S. Raymond2007-10-11 15:29:58 +0000
committerEric S. Raymond2007-10-11 15:29:58 +0000
commitebd0c5ba614d2079228fac0d731c57c12ed976f3 (patch)
tree64bad09202914df9636666f5bcedd715b8cd83dd /lisp
parent727c4443eb4bae3035dbdcb64ca6babc98e099c3 (diff)
downloademacs-ebd0c5ba614d2079228fac0d731c57c12ed976f3.tar.gz
emacs-ebd0c5ba614d2079228fac0d731c57c12ed976f3.zip
Bug fixes by Juanma Barranquero. Temporarily disable the check for
his edge case, it's calling some brittle code.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/vc.el45
2 files changed, 31 insertions, 21 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a9cb2da7056..f6e3dd0bdf2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12007-10-11 Eric S. Raymond <esr@snark.thyrsus.com>
2
3 * vc.el (vc-diff):
4 (vc-diff-internal): Bug fixes by Juanma Barranquero. Temporarily
5 disable the check for his edge case, it's calling some brittle
6 code.
7
12007-10-11 Juanma Barranquero <lekktu@gmail.com> 82007-10-11 Juanma Barranquero <lekktu@gmail.com>
2 9
3 * follow.el (follow-stop-intercept-process-output): 10 * follow.el (follow-stop-intercept-process-output):
diff --git a/lisp/vc.el b/lisp/vc.el
index 932f221a077..cf3175c05a5 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -1424,7 +1424,7 @@ merge in the changes into your working copy."
1424 (setq revision (read-string "Branch, revision, or backend to move to: ")) 1424 (setq revision (read-string "Branch, revision, or backend to move to: "))
1425 (let ((vsym (intern-soft (upcase revision)))) 1425 (let ((vsym (intern-soft (upcase revision))))
1426 (if (member vsym vc-handled-backends) 1426 (if (member vsym vc-handled-backends)
1427 (mapc (lambda (file) vc-transfer-file file vsym) files) 1427 (mapc (lambda (file) (vc-transfer-file file vsym)) files)
1428 (mapc (lambda (file) 1428 (mapc (lambda (file)
1429 (vc-checkout file (eq model 'implicit) revision)))))) 1429 (vc-checkout file (eq model 'implicit) revision))))))
1430 ((not (eq model 'implicit)) 1430 ((not (eq model 'implicit))
@@ -1881,12 +1881,14 @@ The meaning of REV1 and REV2 is the same as for `vc-revision-diff'."
1881 ;; Gnus-5.8.5 sets up an autoload for diff-mode, even if it's 1881 ;; Gnus-5.8.5 sets up an autoload for diff-mode, even if it's
1882 ;; not available. Work around that. 1882 ;; not available. Work around that.
1883 (if (require 'diff-mode nil t) (diff-mode)) 1883 (if (require 'diff-mode nil t) (diff-mode))
1884 (goto-char (point-max)) 1884 (when verbose
1885 (if verbose 1885 (let (buffer-read-only t)
1886 (insert (format "\n\nDiffs between %s and %s end here." rev1-name rev2-name))) 1886 (goto-char (point-max))
1887 (goto-char (point-min)) 1887 (if verbose
1888 (if verbose 1888 (insert (format "\n\nDiffs between %s and %s end here." rev1-name rev2-name)))
1889 (insert (format "Diffs between %s and %s:\n\n" rev1-name rev2-name))) 1889 (goto-char (point-min))
1890 (if verbose
1891 (insert (format "Diffs between %s and %s:\n\n" rev1-name rev2-name)))))
1890 (shrink-window-if-larger-than-buffer) 1892 (shrink-window-if-larger-than-buffer)
1891 t) 1893 t)
1892 (progn 1894 (progn
@@ -1906,7 +1908,7 @@ returns t if the buffer had changes, nil otherwise."
1906 (coding-system-for-read 1908 (coding-system-for-read
1907 (if files (vc-coding-system-for-diff (car files)) 'undecided))) 1909 (if files (vc-coding-system-for-diff (car files)) 'undecided)))
1908 (vc-setup-buffer "*vc-diff*") 1910 (vc-setup-buffer "*vc-diff*")
1909 (message "Finding changes in..." filenames) 1911 (message "Finding changes in %s..." filenames)
1910 ;; Many backends don't handle well the case of a file that has been 1912 ;; Many backends don't handle well the case of a file that has been
1911 ;; added but not yet committed to the repo (notably CVS and Subversion). 1913 ;; added but not yet committed to the repo (notably CVS and Subversion).
1912 ;; Do that work here so the backends don't have to futz with it. 1914 ;; Do that work here so the backends don't have to futz with it.
@@ -2007,19 +2009,20 @@ directory as the selected fileset.
2007" 2009"
2008 2010
2009 (interactive "P") 2011 (interactive "P")
2010 (cond ((not (vc-contains-version-controlled-file default-directory)) 2012 (cond
2011 (error "No version-controlled files directly beneath default directory")) 2013 ;;((not (vc-contains-version-controlled-file default-directory))
2012 (historic 2014 ;;(error "No version-controlled files directly beneath default directory"))
2013 (call-interactively 'vc-history-diff)) 2015 (historic
2014 (t 2016 (call-interactively 'vc-history-diff))
2015 (let* ((files (vc-deduce-fileset t)) 2017 (t
2016 (first (car files)) 2018 (let* ((files (vc-deduce-fileset t))
2017 (backend 2019 (first (car files))
2018 (cond ((file-directory-p first) 2020 (backend
2019 (vc-responsible-backend first)) 2021 (cond ((file-directory-p first)
2020 (t 2022 (vc-responsible-backend first))
2021 (vc-backend first))))) 2023 (t
2022 (vc-diff-internal backend t files nil nil (interactive-p)))))) 2024 (vc-backend first)))))
2025 (vc-diff-internal backend t files nil nil (interactive-p))))))
2023 2026
2024;;;###autoload 2027;;;###autoload
2025(defun vc-revision-other-window (rev) 2028(defun vc-revision-other-window (rev)