diff options
| author | Stefan Monnier | 2000-12-18 03:17:46 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2000-12-18 03:17:46 +0000 |
| commit | 73eff59992932bf78951e4c0426f6cb604e0aa52 (patch) | |
| tree | 97a83dcfab49dc31e0a09c821f7cb7bc37947870 | |
| parent | c64c05511ba5619898078fda33a7d61c44ed89f9 (diff) | |
| download | emacs-73eff59992932bf78951e4c0426f6cb604e0aa52.tar.gz emacs-73eff59992932bf78951e4c0426f6cb604e0aa52.zip | |
(cvs-diff-backup-extractor): Return full-path for file.
(cvs-execute-single-file): Don't change directory.
Patch from Per Cederqvist.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/pcvs.el | 24 |
2 files changed, 16 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 114ff5e0b16..864cd8e4556 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2000-12-17 Stefan Monnier <monnier@cs.yale.edu> | ||
| 2 | |||
| 3 | * pcvs.el (cvs-diff-backup-extractor): Return full-path for file. | ||
| 4 | (cvs-execute-single-file): Don't change directory. | ||
| 5 | Patch from Per Cederqvist. | ||
| 6 | |||
| 1 | 2000-12-18 Miles Bader <miles@gnu.org> | 7 | 2000-12-18 Miles Bader <miles@gnu.org> |
| 2 | 8 | ||
| 3 | * image-file.el (image-file-name-extensions): Add "pgm" and "ppm". | 9 | * image-file.el (image-file-name-extensions): Add "pgm" and "ppm". |
diff --git a/lisp/pcvs.el b/lisp/pcvs.el index 6ee5b3adf76..1be24c9e1bb 100644 --- a/lisp/pcvs.el +++ b/lisp/pcvs.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; pcvs.el -- A Front-end to CVS. | 1 | ;;; pcvs.el -- A Front-end to CVS. |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1991, 92, 93, 94, 95, 95, 97, 98, 99, 2000 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1991,92,93,94,95,95,97,98,99,2000 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: (The PCL-CVS Trust) pcl-cvs@cyclic.com | 5 | ;; Author: (The PCL-CVS Trust) pcl-cvs@cyclic.com |
| 6 | ;; (Per Cederqvist) ceder@lysator.liu.se | 6 | ;; (Per Cederqvist) ceder@lysator.liu.se |
| @@ -13,8 +13,7 @@ | |||
| 13 | ;; (Jari Aalto+mail.emacs) jari.aalto@poboxes.com | 13 | ;; (Jari Aalto+mail.emacs) jari.aalto@poboxes.com |
| 14 | ;; Maintainer: (Stefan Monnier) monnier+lists/cvs/pcl@flint.cs.yale.edu | 14 | ;; Maintainer: (Stefan Monnier) monnier+lists/cvs/pcl@flint.cs.yale.edu |
| 15 | ;; Keywords: CVS, version control, release management | 15 | ;; Keywords: CVS, version control, release management |
| 16 | ;; Version: $Name: $ | 16 | ;; Revision: $Id: pcvs.el,v 1.22 2000/12/11 03:20:21 monnier Exp $ |
| 17 | ;; Revision: $Id: pcvs.el,v 1.21 2000/12/10 21:20:56 monnier Exp $ | ||
| 18 | 17 | ||
| 19 | ;; This file is part of GNU Emacs. | 18 | ;; This file is part of GNU Emacs. |
| 20 | 19 | ||
| @@ -1428,7 +1427,7 @@ Signal an error if there is no backup file." | |||
| 1428 | (let ((backup-file (cvs-fileinfo->backup-file fileinfo))) | 1427 | (let ((backup-file (cvs-fileinfo->backup-file fileinfo))) |
| 1429 | (unless backup-file | 1428 | (unless backup-file |
| 1430 | (error "%s has no backup file." (cvs-fileinfo->full-path fileinfo))) | 1429 | (error "%s has no backup file." (cvs-fileinfo->full-path fileinfo))) |
| 1431 | (list backup-file (cvs-fileinfo->file fileinfo)))) | 1430 | (list backup-file (cvs-fileinfo->full-path fileinfo)))) |
| 1432 | 1431 | ||
| 1433 | ;; | 1432 | ;; |
| 1434 | ;; Emerge support | 1433 | ;; Emerge support |
| @@ -1948,17 +1947,15 @@ With prefix argument, prompt for cvs flags." | |||
| 1948 | 1947 | ||
| 1949 | (defun cvs-execute-single-file (fi extractor program constant-args) | 1948 | (defun cvs-execute-single-file (fi extractor program constant-args) |
| 1950 | "Internal function for `cvs-execute-single-file-list'." | 1949 | "Internal function for `cvs-execute-single-file-list'." |
| 1951 | (let* ((cur-dir (cvs-fileinfo->dir fi)) | 1950 | (let* ((arg-list (funcall extractor fi)) |
| 1952 | (default-directory (cvs-expand-dir-name cur-dir)) | 1951 | (inhibit-read-only t)) |
| 1953 | (inhibit-read-only t) | ||
| 1954 | (arg-list (funcall extractor fi))) | ||
| 1955 | 1952 | ||
| 1956 | ;; Execute the command unless extractor returned t. | 1953 | ;; Execute the command unless extractor returned t. |
| 1957 | (when (listp arg-list) | 1954 | (when (listp arg-list) |
| 1958 | (let* ((args (append constant-args arg-list))) | 1955 | (let* ((args (append constant-args arg-list))) |
| 1959 | 1956 | ||
| 1960 | (insert (format "=== cd %s\n=== %s %s\n\n" | 1957 | (insert (format "=== %s %s\n\n" |
| 1961 | cur-dir program (cvs-strings->string args))) | 1958 | program (cvs-strings->string args))) |
| 1962 | 1959 | ||
| 1963 | ;; FIXME: return the exit status? | 1960 | ;; FIXME: return the exit status? |
| 1964 | (apply 'call-process program nil t t args) | 1961 | (apply 'call-process program nil t t args) |
| @@ -1967,10 +1964,9 @@ With prefix argument, prompt for cvs flags." | |||
| 1967 | ;; FIXME: make this run in the background ala cvs-run-process... | 1964 | ;; FIXME: make this run in the background ala cvs-run-process... |
| 1968 | (defun cvs-execute-single-file-list (fis extractor program constant-args) | 1965 | (defun cvs-execute-single-file-list (fis extractor program constant-args) |
| 1969 | "Run PROGRAM on all elements on FIS. | 1966 | "Run PROGRAM on all elements on FIS. |
| 1970 | The PROGRAM will be called with pwd set to the directory the files | 1967 | CONSTANT-ARGS is a list of strings to pass as arguments to PROGRAM. |
| 1971 | reside in. CONSTANT-ARGS is a list of strings to pass as arguments to | 1968 | The arguments given to the program will be CONSTANT-ARGS followed by |
| 1972 | PROGRAM. The arguments given to the program will be CONSTANT-ARGS | 1969 | the list that EXTRACTOR returns. |
| 1973 | followed by the list that EXTRACTOR returns. | ||
| 1974 | 1970 | ||
| 1975 | EXTRACTOR will be called once for each file on FIS. It is given | 1971 | EXTRACTOR will be called once for each file on FIS. It is given |
| 1976 | one argument, the cvs-fileinfo. It can return t, which means ignore | 1972 | one argument, the cvs-fileinfo. It can return t, which means ignore |