diff options
| author | Dan Nicolaescu | 2007-07-20 01:22:18 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2007-07-20 01:22:18 +0000 |
| commit | c0edfa75c48d19c878dc63cd0941a56653adfeb4 (patch) | |
| tree | 40c1e4d678453d90d1199ec02f785263cb565b71 | |
| parent | ee2f409bc14c0b2be3c64bf81ed29a07d8e38c44 (diff) | |
| download | emacs-c0edfa75c48d19c878dc63cd0941a56653adfeb4.tar.gz emacs-c0edfa75c48d19c878dc63cd0941a56653adfeb4.zip | |
* vc-hooks.el (vc-default-workfile-unchanged-p): Pass a list
instead of a file.
* vc-hg.el (vc-hg-print-log): Fix for multiple files.
* vc.el: (vc-directory-exclusion-list): Add .hg and .bzr.
(vc-diff-internal): Pass a list instead of a file.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/vc-hg.el | 6 | ||||
| -rw-r--r-- | lisp/vc-hooks.el | 4 | ||||
| -rw-r--r-- | lisp/vc.el | 10 |
4 files changed, 15 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9f8989bcc12..6f388723a28 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2007-07-20 Dan Nicolaescu <dann@ics.uci.edu> | 1 | 2007-07-20 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 2 | ||
| 3 | * vc-hooks.el (vc-default-workfile-unchanged-p): Pass a list | ||
| 4 | instead of a file. | ||
| 5 | |||
| 3 | * vc-hg.el (vc-hg-print-log): Deal with multiple file arguments. | 6 | * vc-hg.el (vc-hg-print-log): Deal with multiple file arguments. |
| 4 | (vc-hg-registered): Replace if with when. | 7 | (vc-hg-registered): Replace if with when. |
| 5 | (vc-hg-state): Deal with nonexistent files and handle removed | 8 | (vc-hg-state): Deal with nonexistent files and handle removed |
| @@ -7,10 +10,13 @@ | |||
| 7 | (vc-hg-dir-state, vc-hg-dired-state-info): New functions. | 10 | (vc-hg-dir-state, vc-hg-dired-state-info): New functions. |
| 8 | (vc-hg-checkout): Re-enable. | 11 | (vc-hg-checkout): Re-enable. |
| 9 | (vc-hg-create-repo): Fix typos. | 12 | (vc-hg-create-repo): Fix typos. |
| 13 | (vc-hg-print-log): Fix for multiple files. | ||
| 10 | 14 | ||
| 11 | * vc.el: Fix typo. | 15 | * vc.el: Fix typo. |
| 12 | (vc-print-log): Fix call to print-log. | 16 | (vc-print-log): Fix call to print-log. |
| 13 | (vc-default-comment-history): Likewise. | 17 | (vc-default-comment-history): Likewise. |
| 18 | (vc-directory-exclusion-list): Add .hg and .bzr. | ||
| 19 | (vc-diff-internal): Pass a list instead of a file. | ||
| 14 | 20 | ||
| 15 | * vc-mcvs.el (vc-mcvs-create-repo): Fix typos. | 21 | * vc-mcvs.el (vc-mcvs-create-repo): Fix typos. |
| 16 | 22 | ||
diff --git a/lisp/vc-hg.el b/lisp/vc-hg.el index d56063b996c..b2b72f38c29 100644 --- a/lisp/vc-hg.el +++ b/lisp/vc-hg.el | |||
| @@ -248,11 +248,7 @@ | |||
| 248 | (with-current-buffer | 248 | (with-current-buffer |
| 249 | buffer | 249 | buffer |
| 250 | (insert "File: " (file-name-nondirectory file) "\n")) | 250 | (insert "File: " (file-name-nondirectory file) "\n")) |
| 251 | (vc-hg-command | 251 | (vc-hg-command buffer nil file "log")))) |
| 252 | buffer | ||
| 253 | ;; XXX Is this stuff really needed? | ||
| 254 | (if (and (vc-stay-local-p file) (fboundp 'start-process)) 'async 0) | ||
| 255 | file "log")))) | ||
| 256 | 252 | ||
| 257 | (defvar log-view-message-re) | 253 | (defvar log-view-message-re) |
| 258 | (defvar log-view-file-re) | 254 | (defvar log-view-file-re) |
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el index 19b309ee203..83f9903e664 100644 --- a/lisp/vc-hooks.el +++ b/lisp/vc-hooks.el | |||
| @@ -528,7 +528,7 @@ Return non-nil if FILE is unchanged." | |||
| 528 | (zerop (condition-case err | 528 | (zerop (condition-case err |
| 529 | ;; If the implementation supports it, let the output | 529 | ;; If the implementation supports it, let the output |
| 530 | ;; go to *vc*, not *vc-diff*, since this is an internal call. | 530 | ;; go to *vc*, not *vc-diff*, since this is an internal call. |
| 531 | (vc-call diff file nil nil "*vc*") | 531 | (vc-call diff (list file) nil nil "*vc*") |
| 532 | (wrong-number-of-arguments | 532 | (wrong-number-of-arguments |
| 533 | ;; If this error came from the above call to vc-BACKEND-diff, | 533 | ;; If this error came from the above call to vc-BACKEND-diff, |
| 534 | ;; try again without the optional buffer argument (for | 534 | ;; try again without the optional buffer argument (for |
| @@ -539,7 +539,7 @@ Return non-nil if FILE is unchanged." | |||
| 539 | 'diff)))) | 539 | 'diff)))) |
| 540 | (not (eq (caddr err) 4))) | 540 | (not (eq (caddr err) 4))) |
| 541 | (signal (car err) (cdr err)) | 541 | (signal (car err) (cdr err)) |
| 542 | (vc-call diff file)))))) | 542 | (vc-call diff (list file))))))) |
| 543 | 543 | ||
| 544 | (defun vc-workfile-version (file) | 544 | (defun vc-workfile-version (file) |
| 545 | "Return the repository version from which FILE was checked out. | 545 | "Return the repository version from which FILE was checked out. |
diff --git a/lisp/vc.el b/lisp/vc.el index 91caef0f4d6..d5b8dd3ba97 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -46,8 +46,9 @@ | |||
| 46 | 46 | ||
| 47 | ;; This mode is fully documented in the Emacs user's manual. | 47 | ;; This mode is fully documented in the Emacs user's manual. |
| 48 | ;; | 48 | ;; |
| 49 | ;; Supported version-control systems presently include CVS, RCS, GNU Arch, | 49 | ;; Supported version-control systems presently include CVS, RCS, GNU |
| 50 | ;; Subversion, Meta-CVS, and SCCS (or its free replacement, CSSC). | 50 | ;; Arch, Subversion, Bzr, Mercurial, Meta-CVS, and SCCS (or its free |
| 51 | ;; replacement, CSSC). | ||
| 51 | ;; | 52 | ;; |
| 52 | ;; Some features will not work with old RCS versions. Where | 53 | ;; Some features will not work with old RCS versions. Where |
| 53 | ;; appropriate, VC finds out which version you have, and allows or | 54 | ;; appropriate, VC finds out which version you have, and allows or |
| @@ -578,7 +579,8 @@ These are passed to the checkin program by \\[vc-register]." | |||
| 578 | :group 'vc | 579 | :group 'vc |
| 579 | :version "20.3") | 580 | :version "20.3") |
| 580 | 581 | ||
| 581 | (defcustom vc-directory-exclusion-list '("SCCS" "RCS" "CVS" "MCVS" ".svn" "{arch}") | 582 | (defcustom vc-directory-exclusion-list '("SCCS" "RCS" "CVS" "MCVS" ".svn" |
| 583 | ".hg" ".bzr" "{arch}") | ||
| 582 | "List of directory names to be ignored when walking directory trees." | 584 | "List of directory names to be ignored when walking directory trees." |
| 583 | :type '(repeat string) | 585 | :type '(repeat string) |
| 584 | :group 'vc) | 586 | :group 'vc) |
| @@ -1934,7 +1936,7 @@ actually call the backend, but performs a local diff." | |||
| 1934 | (error "diff failed")) | 1936 | (error "diff failed")) |
| 1935 | (if (not vc-diff-knows-L) (setq vc-diff-knows-L 'yes))) | 1937 | (if (not vc-diff-knows-L) (setq vc-diff-knows-L 'yes))) |
| 1936 | status) | 1938 | status) |
| 1937 | (vc-call diff (list file) rev1 rev2 "*vc-diff")))) | 1939 | (vc-call diff (list file) rev1 rev2 "*vc-diff*")))) |
| 1938 | 1940 | ||
| 1939 | (defun vc-switches (backend op) | 1941 | (defun vc-switches (backend op) |
| 1940 | (let ((switches | 1942 | (let ((switches |