diff options
| author | Stefan Monnier | 2005-09-14 16:19:18 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2005-09-14 16:19:18 +0000 |
| commit | c6ea7612a361b2f5104bfb8774d678a77a07f44f (patch) | |
| tree | 8963d76650609ac6a057f8127ab796275efe4439 | |
| parent | ed1cd40c238e2666979e1d3b36fc1cb5ab0e7de0 (diff) | |
| download | emacs-c6ea7612a361b2f5104bfb8774d678a77a07f44f.tar.gz emacs-c6ea7612a361b2f5104bfb8774d678a77a07f44f.zip | |
(cvs-version): Recognize CVSNT version string.
(cvs-execute-single-dir): Change default: cvs-1.9 is ancient.
| -rw-r--r-- | lisp/ChangeLog | 13 | ||||
| -rw-r--r-- | lisp/pcvs-defs.el | 14 |
2 files changed, 23 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 64512754556..0d82a5cdc12 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,16 @@ | |||
| 1 | 2005-09-14 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * pcvs-defs.el (cvs-version): Recognize CVSNT version string. | ||
| 4 | (cvs-execute-single-dir): Change default: cvs-1.9 is ancient. | ||
| 5 | |||
| 6 | * calendar/cal-menu.el: Don't require easymenu, since we don't use it. | ||
| 7 | (check-calendar-holidays, diary-list-entries): Autoload. | ||
| 8 | Otherwise `emacs -q' followed by "mouse-2 -> diary entries" burps. | ||
| 9 | (calendar-mouse-holidays, calendar-mouse-view-diary-entries): Simplify. | ||
| 10 | |||
| 11 | * calendar/diary-lib.el (diary-show-all-entries): Fix last change, | ||
| 12 | which mistakenly removed a call to display-buffer. | ||
| 13 | |||
| 1 | 2005-09-14 Juanma Barranquero <lekktu@gmail.com> | 14 | 2005-09-14 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 15 | ||
| 3 | * obsolete/iso-insert.el: Move to obsolete/ from international/. | 16 | * obsolete/iso-insert.el: Move to obsolete/ from international/. |
diff --git a/lisp/pcvs-defs.el b/lisp/pcvs-defs.el index 3be6cbd9182..cd981581711 100644 --- a/lisp/pcvs-defs.el +++ b/lisp/pcvs-defs.el | |||
| @@ -38,11 +38,14 @@ | |||
| 38 | "*Name or full path of the cvs executable.") | 38 | "*Name or full path of the cvs executable.") |
| 39 | 39 | ||
| 40 | (defvar cvs-version | 40 | (defvar cvs-version |
| 41 | ;; With the divergence of the CVSNT codebase and version numbers, this is | ||
| 42 | ;; not really good any more. | ||
| 41 | (ignore-errors | 43 | (ignore-errors |
| 42 | (with-temp-buffer | 44 | (with-temp-buffer |
| 43 | (call-process cvs-program nil t nil "-v") | 45 | (call-process cvs-program nil t nil "-v") |
| 44 | (goto-char (point-min)) | 46 | (goto-char (point-min)) |
| 45 | (when (re-search-forward "(CVS) \\([0-9]+\\)\\.\\([0-9]+\\)" nil t) | 47 | (when (re-search-forward "(CVS\\(NT\\)?) \\([0-9]+\\)\\.\\([0-9]+\\)" |
| 48 | nil t) | ||
| 46 | (cons (string-to-number (match-string 1)) | 49 | (cons (string-to-number (match-string 1)) |
| 47 | (string-to-number (match-string 2)))))) | 50 | (string-to-number (match-string 2)))))) |
| 48 | "*Version of `cvs' installed on your system. | 51 | "*Version of `cvs' installed on your system. |
| @@ -490,8 +493,11 @@ It is expected to call the function.") | |||
| 490 | ;; cvs-1.10 and above can take file arguments in other directories | 493 | ;; cvs-1.10 and above can take file arguments in other directories |
| 491 | ;; while others need to be executed once per directory | 494 | ;; while others need to be executed once per directory |
| 492 | (defvar cvs-execute-single-dir | 495 | (defvar cvs-execute-single-dir |
| 493 | (if (and (consp cvs-version) | 496 | (if (or (null cvs-version) |
| 494 | (or (>= (cdr cvs-version) 10) (> (car cvs-version) 1))) | 497 | (or (>= (cdr cvs-version) 10) (> (car cvs-version) 1))) |
| 498 | ;; Supposedly some recent versions of CVS output some directory info | ||
| 499 | ;; as they recurse downthe tree, but it's not good enough in the case | ||
| 500 | ;; where we run "cvs status foo bar/foo". | ||
| 495 | '("status") | 501 | '("status") |
| 496 | t) | 502 | t) |
| 497 | "Whether cvs commands should be executed a directory at a time. | 503 | "Whether cvs commands should be executed a directory at a time. |
| @@ -506,7 +512,7 @@ Sadly, even with a new cvs executable, if you connect to an older cvs server | |||
| 506 | a case the sanity check made by pcl-cvs fails and you will have to manually | 512 | a case the sanity check made by pcl-cvs fails and you will have to manually |
| 507 | set this variable to t (until the cvs server is upgraded). | 513 | set this variable to t (until the cvs server is upgraded). |
| 508 | When the above problem occurs, pcl-cvs should (hopefully) catch cvs' error | 514 | When the above problem occurs, pcl-cvs should (hopefully) catch cvs' error |
| 509 | message and replace it with a message tell you to change this variable.") | 515 | message and replace it with a message telling you to change this variable.") |
| 510 | 516 | ||
| 511 | ;; | 517 | ;; |
| 512 | (provide 'pcvs-defs) | 518 | (provide 'pcvs-defs) |