diff options
| author | Stefan Monnier | 2006-10-20 07:56:20 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2006-10-20 07:56:20 +0000 |
| commit | bc8c1bb4484f8f33dba11be10bedbc66b9664f5f (patch) | |
| tree | d11cf0da0639c6f5b98f9eff498169f7a01c8281 | |
| parent | 7e2839b1651207b78013e3c56d2724270587114f (diff) | |
| download | emacs-bc8c1bb4484f8f33dba11be10bedbc66b9664f5f.tar.gz emacs-bc8c1bb4484f8f33dba11be10bedbc66b9664f5f.zip | |
(vc-svn-parse-status): Remove unused arg `localp'.
Add arg `filename' instead. Don't set vc-backend if `filename' is set.
Return `filename's status if applicable. Update callers.
| -rw-r--r-- | lisp/ChangeLog | 14 | ||||
| -rw-r--r-- | lisp/vc-svn.el | 21 |
2 files changed, 21 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4a34904f568..0999e794216 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2006-10-20 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * vc-svn.el (vc-svn-parse-status): Remove unused arg `localp'. | ||
| 4 | Add arg `filename' instead. Don't set vc-backend if `filename' is set. | ||
| 5 | Return `filename's status if applicable. Update callers. | ||
| 6 | |||
| 1 | 2006-10-19 Kenichi Handa <handa@m17n.org> | 7 | 2006-10-19 Kenichi Handa <handa@m17n.org> |
| 2 | 8 | ||
| 3 | * international/kkc.el (kkc-region): When a key sequence is not | 9 | * international/kkc.el (kkc-region): When a key sequence is not |
| @@ -62,8 +68,8 @@ | |||
| 62 | 68 | ||
| 63 | 2006-10-18 Martin Rudalics <rudalics@gmx.at> | 69 | 2006-10-18 Martin Rudalics <rudalics@gmx.at> |
| 64 | 70 | ||
| 65 | * textmodes/flyspell.el (flyspell-word-search-backward): Set | 71 | * textmodes/flyspell.el (flyspell-word-search-backward): |
| 66 | inhibit-point-motion-hooks to avoid looping due to intangibile | 72 | Set inhibit-point-motion-hooks to avoid looping due to intangibile |
| 67 | text. | 73 | text. |
| 68 | 74 | ||
| 69 | 2006-10-16 Richard Stallman <rms@gnu.org> | 75 | 2006-10-16 Richard Stallman <rms@gnu.org> |
| @@ -324,7 +330,7 @@ | |||
| 324 | 330 | ||
| 325 | After 5.10: | 331 | After 5.10: |
| 326 | 332 | ||
| 327 | This code may lock Emacs hard!!! Use on your own risk! | 333 | This code may lock Emacs hard!!! Use at your own risk! |
| 328 | 334 | ||
| 329 | (cperl-font-locking): New internal variable. | 335 | (cperl-font-locking): New internal variable. |
| 330 | (cperl-beginning-of-property): New function. | 336 | (cperl-beginning-of-property): New function. |
| @@ -338,7 +344,7 @@ | |||
| 338 | recursively. | 344 | recursively. |
| 339 | Bound `next-single-property-change' via `point-max'. | 345 | Bound `next-single-property-change' via `point-max'. |
| 340 | (cperl-unwind-to-safe): Bound likewise | 346 | (cperl-unwind-to-safe): Bound likewise |
| 341 | (cperl-font-lock-fontify-region-function): Likewise | 347 | (cperl-font-lock-fontify-region-function): Likewise. |
| 342 | (cperl-find-pods-heres): Mark as recursive for `cperl-to-comment-or-eol' | 348 | (cperl-find-pods-heres): Mark as recursive for `cperl-to-comment-or-eol' |
| 343 | Initialization of `cperl-font-lock-multiline-start' could be | 349 | Initialization of `cperl-font-lock-multiline-start' could be |
| 344 | missed if the "main" fontification did not run due to the | 350 | missed if the "main" fontification did not run due to the |
diff --git a/lisp/vc-svn.el b/lisp/vc-svn.el index 6d27c5c6a7e..c48ce7a5f99 100644 --- a/lisp/vc-svn.el +++ b/lisp/vc-svn.el | |||
| @@ -125,8 +125,7 @@ This is only meaningful if you don't use the implicit checkout model | |||
| 125 | ;; an `error' by vc-do-command. | 125 | ;; an `error' by vc-do-command. |
| 126 | (error nil)))) | 126 | (error nil)))) |
| 127 | (when (eq 0 status) | 127 | (when (eq 0 status) |
| 128 | (vc-svn-parse-status t) | 128 | (vc-svn-parse-status file)))))) |
| 129 | (eq 'SVN (vc-file-getprop file 'vc-backend))))))) | ||
| 130 | 129 | ||
| 131 | (defun vc-svn-state (file &optional localp) | 130 | (defun vc-svn-state (file &optional localp) |
| 132 | "SVN-specific version of `vc-state'." | 131 | "SVN-specific version of `vc-state'." |
| @@ -134,8 +133,7 @@ This is only meaningful if you don't use the implicit checkout model | |||
| 134 | (with-temp-buffer | 133 | (with-temp-buffer |
| 135 | (cd (file-name-directory file)) | 134 | (cd (file-name-directory file)) |
| 136 | (vc-svn-command t 0 file "status" (if localp "-v" "-u")) | 135 | (vc-svn-command t 0 file "status" (if localp "-v" "-u")) |
| 137 | (vc-svn-parse-status localp) | 136 | (vc-svn-parse-status file))) |
| 138 | (vc-file-getprop file 'vc-state))) | ||
| 139 | 137 | ||
| 140 | (defun vc-svn-state-heuristic (file) | 138 | (defun vc-svn-state-heuristic (file) |
| 141 | "SVN-specific state heuristic." | 139 | "SVN-specific state heuristic." |
| @@ -149,7 +147,7 @@ This is only meaningful if you don't use the implicit checkout model | |||
| 149 | ;; enough. Otherwise it might fail with remote repositories. | 147 | ;; enough. Otherwise it might fail with remote repositories. |
| 150 | (with-temp-buffer | 148 | (with-temp-buffer |
| 151 | (vc-svn-command t 0 nil "status" (if localp "-v" "-u")) | 149 | (vc-svn-command t 0 nil "status" (if localp "-v" "-u")) |
| 152 | (vc-svn-parse-status localp)))) | 150 | (vc-svn-parse-status)))) |
| 153 | 151 | ||
| 154 | (defun vc-svn-workfile-version (file) | 152 | (defun vc-svn-workfile-version (file) |
| 155 | "SVN-specific version of `vc-workfile-version'." | 153 | "SVN-specific version of `vc-workfile-version'." |
| @@ -488,10 +486,10 @@ and that it passes `vc-svn-global-switches' to it before FLAGS." | |||
| 488 | ;; behavior for different modules on the same server. | 486 | ;; behavior for different modules on the same server. |
| 489 | (match-string 1)))) | 487 | (match-string 1)))) |
| 490 | 488 | ||
| 491 | (defun vc-svn-parse-status (localp) | 489 | (defun vc-svn-parse-status (&optional filename) |
| 492 | "Parse output of \"svn status\" command in the current buffer. | 490 | "Parse output of \"svn status\" command in the current buffer. |
| 493 | Set file properties accordingly. Unless FULL is t, parse only | 491 | Set file properties accordingly. Unless FILENAME is non-nil, parse only |
| 494 | essential information." | 492 | information about FILENAME and return its status." |
| 495 | (let (file status) | 493 | (let (file status) |
| 496 | (goto-char (point-min)) | 494 | (goto-char (point-min)) |
| 497 | (while (re-search-forward | 495 | (while (re-search-forward |
| @@ -500,7 +498,9 @@ essential information." | |||
| 500 | (buffer-substring (point) (line-end-position)))) | 498 | (buffer-substring (point) (line-end-position)))) |
| 501 | (setq status (char-after (line-beginning-position))) | 499 | (setq status (char-after (line-beginning-position))) |
| 502 | (unless (eq status ??) | 500 | (unless (eq status ??) |
| 503 | (vc-file-setprop file 'vc-backend 'SVN) | 501 | ;; `vc-BACKEND-registered' must not set vc-backend, |
| 502 | ;; which is instead set in vc-registered. | ||
| 503 | (unless filename (vc-file-setprop file 'vc-backend 'SVN)) | ||
| 504 | ;; Use the last-modified revision, so that searching in vc-print-log | 504 | ;; Use the last-modified revision, so that searching in vc-print-log |
| 505 | ;; output works. | 505 | ;; output works. |
| 506 | (vc-file-setprop file 'vc-workfile-version (match-string 3)) | 506 | (vc-file-setprop file 'vc-workfile-version (match-string 3)) |
| @@ -522,7 +522,8 @@ essential information." | |||
| 522 | (if (eq (char-after (match-beginning 1)) ?*) | 522 | (if (eq (char-after (match-beginning 1)) ?*) |
| 523 | 'needs-merge | 523 | 'needs-merge |
| 524 | 'edited)) | 524 | 'edited)) |
| 525 | (t 'edited))))))) | 525 | (t 'edited))))) |
| 526 | (if filename (vc-file-getprop filename 'vc-state)))) | ||
| 526 | 527 | ||
| 527 | (defun vc-svn-dir-state-heuristic (dir) | 528 | (defun vc-svn-dir-state-heuristic (dir) |
| 528 | "Find the SVN state of all files in DIR, using only local information." | 529 | "Find the SVN state of all files in DIR, using only local information." |