diff options
| -rw-r--r-- | lisp/ChangeLog | 13 | ||||
| -rw-r--r-- | lisp/vc-svn.el | 27 |
2 files changed, 23 insertions, 17 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index cee47ad6a01..67289d8ec70 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,6 +1,13 @@ | |||
| 1 | 2005-12-13 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * vc.el (vc-do-command): Add a new value t for okstatus. | ||
| 4 | |||
| 5 | * vc-svn.el (vc-svn-registered): Use it to avoid popping up a spurious | ||
| 6 | frame in case of errors. | ||
| 7 | |||
| 1 | 2005-12-13 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | 8 | 2005-12-13 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> |
| 2 | 9 | ||
| 3 | * menu-bar.el (menu-bar-showhide-fringe-menu): Moved "On the Right" | 10 | * menu-bar.el (menu-bar-showhide-fringe-menu): Move "On the Right" |
| 4 | so it comes after "On the Left" in the menu. | 11 | so it comes after "On the Left" in the menu. |
| 5 | 12 | ||
| 6 | 2005-12-12 Luc Teirlinck <teirllm@auburn.edu> | 13 | 2005-12-12 Luc Teirlinck <teirllm@auburn.edu> |
| @@ -12,7 +19,7 @@ | |||
| 12 | 19 | ||
| 13 | * vc-svn.el (vc-svn-registered): Fix problem of visiting | 20 | * vc-svn.el (vc-svn-registered): Fix problem of visiting |
| 14 | non-writable Subversion-controlled files by saving window | 21 | non-writable Subversion-controlled files by saving window |
| 15 | configuration before calling vc-do-command. vc-do-command calls | 22 | configuration before calling vc-do-command. vc-do-command calls |
| 16 | pop-to-buffer on error which is unexpected during registration. | 23 | pop-to-buffer on error which is unexpected during registration. |
| 17 | 24 | ||
| 18 | 2005-12-12 Jay Belanger <belanger@truman.edu> | 25 | 2005-12-12 Jay Belanger <belanger@truman.edu> |
| @@ -41,7 +48,7 @@ | |||
| 41 | 48 | ||
| 42 | 2005-12-12 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | 49 | 2005-12-12 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> |
| 43 | 50 | ||
| 44 | * tooltip.el (tooltip-y-offset): Changed default to 20. | 51 | * tooltip.el (tooltip-y-offset): Change default to 20. |
| 45 | 52 | ||
| 46 | 2005-12-12 Richard M. Stallman <rms@gnu.org> | 53 | 2005-12-12 Richard M. Stallman <rms@gnu.org> |
| 47 | 54 | ||
diff --git a/lisp/vc-svn.el b/lisp/vc-svn.el index cf822406384..b08765b89a3 100644 --- a/lisp/vc-svn.el +++ b/lisp/vc-svn.el | |||
| @@ -114,20 +114,19 @@ This is only meaningful if you don't use the implicit checkout model | |||
| 114 | (file-name-directory file))) | 114 | (file-name-directory file))) |
| 115 | (with-temp-buffer | 115 | (with-temp-buffer |
| 116 | (cd (file-name-directory file)) | 116 | (cd (file-name-directory file)) |
| 117 | (condition-case nil | 117 | (let ((status |
| 118 | ;; Save configuration since vc-do-command calls pop-to-buffer on | 118 | (condition-case nil |
| 119 | ;; error (such as visiting a Subversion-controlled file that you | 119 | ;; Ignore all errors. |
| 120 | ;; don't have permission to edit). This causes later problems | 120 | (vc-svn-command t t file "status" "-v") |
| 121 | ;; during registration. | 121 | ;; Some problem happened. E.g. We can't find an `svn' |
| 122 | (save-window-excursion | 122 | ;; executable. We used to only catch `file-error' but when |
| 123 | (vc-svn-command t 0 file "status" "-v")) | 123 | ;; the process is run on a remote host via Tramp, the error |
| 124 | ;; Some problem happened. E.g. We can't find an `svn' executable. | 124 | ;; is only reported via the exit status which is turned into |
| 125 | ;; We used to only catch `file-error' but when the process is run on | 125 | ;; an `error' by vc-do-command. |
| 126 | ;; a remote host via Tramp, the error is only reported via the | 126 | (error nil)))) |
| 127 | ;; exit status which is turned into an `error' by vc-do-command. | 127 | (when (eq 0 status) |
| 128 | (error nil)) | 128 | (vc-svn-parse-status t) |
| 129 | (vc-svn-parse-status t) | 129 | (eq 'SVN (vc-file-getprop file 'vc-backend))))))) |
| 130 | (eq 'SVN (vc-file-getprop file 'vc-backend))))) | ||
| 131 | 130 | ||
| 132 | (defun vc-svn-state (file &optional localp) | 131 | (defun vc-svn-state (file &optional localp) |
| 133 | "SVN-specific version of `vc-state'." | 132 | "SVN-specific version of `vc-state'." |