diff options
| author | Stefan Monnier | 2008-05-30 16:21:49 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-05-30 16:21:49 +0000 |
| commit | 47dd5958df9455778bec7f772889cabc8614176a (patch) | |
| tree | 2ac970ed4d99a2899451b621509c563600161247 | |
| parent | 8f39c96dec86bb2a5c57b12cf73f6fc7480f9a4c (diff) | |
| download | emacs-47dd5958df9455778bec7f772889cabc8614176a.tar.gz emacs-47dd5958df9455778bec7f772889cabc8614176a.zip | |
(vc-cvs-state-heuristic, vc-cvs-parse-status): Try and
return `unregistered' when applicable.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc-cvs.el | 7 |
2 files changed, 8 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 59d10082e62..a4634a630e6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * vc-cvs.el (vc-cvs-state-heuristic, vc-cvs-parse-status): Try and | ||
| 4 | return `unregistered' when applicable. | ||
| 5 | |||
| 3 | * emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine): | 6 | * emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine): |
| 4 | Don't encourage naming variables with "-flag". | 7 | Don't encourage naming variables with "-flag". |
| 5 | 8 | ||
| @@ -295,7 +298,7 @@ | |||
| 295 | 298 | ||
| 296 | * vc.el (vc-delete-file): Don't try to resynch the buffer. | 299 | * vc.el (vc-delete-file): Don't try to resynch the buffer. |
| 297 | 300 | ||
| 298 | 2008-05-23 Paul R <paul.r.ml@gmail.com> | 301 | 2008-05-23 Paul Rivier <paul.r.ml@gmail.com> |
| 299 | 302 | ||
| 300 | * textmodes/reftex-vars.el (reftex-extra-bindings-prefix): New var. | 303 | * textmodes/reftex-vars.el (reftex-extra-bindings-prefix): New var. |
| 301 | * textmodes/reftex.el (reftex-extra-bindings-map): New var. | 304 | * textmodes/reftex.el (reftex-extra-bindings-map): New var. |
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el index 30f32dfc174..091c36c99cf 100644 --- a/lisp/vc-cvs.el +++ b/lisp/vc-cvs.el | |||
| @@ -231,6 +231,7 @@ See also variable `vc-cvs-sticky-date-format-string'." | |||
| 231 | (cond | 231 | (cond |
| 232 | ((equal checkout-time lastmod) 'up-to-date) | 232 | ((equal checkout-time lastmod) 'up-to-date) |
| 233 | ((string= (vc-working-revision file) "0") 'added) | 233 | ((string= (vc-working-revision file) "0") 'added) |
| 234 | ((null checkout-time) 'unregistered) | ||
| 234 | (t 'edited)))) | 235 | (t 'edited)))) |
| 235 | 236 | ||
| 236 | (defun vc-cvs-working-revision (file) | 237 | (defun vc-cvs-working-revision (file) |
| @@ -800,9 +801,8 @@ state." | |||
| 800 | ((re-search-forward "\\=\\([^ \t]+\\)" nil t) | 801 | ((re-search-forward "\\=\\([^ \t]+\\)" nil t) |
| 801 | (setq file (expand-file-name (match-string 1))) | 802 | (setq file (expand-file-name (match-string 1))) |
| 802 | (vc-file-setprop file 'vc-backend 'CVS) | 803 | (vc-file-setprop file 'vc-backend 'CVS) |
| 803 | (if (not (re-search-forward "\\=[ \t]+Status: \\(.*\\)" nil t)) | 804 | (setq status(if (re-search-forward "\\=[ \t]+Status: \\(.*\\)" nil t) |
| 804 | (setq status "Unknown") | 805 | (match-string 1) "Unknown")) |
| 805 | (setq status (match-string 1))) | ||
| 806 | (when (and full | 806 | (when (and full |
| 807 | (re-search-forward | 807 | (re-search-forward |
| 808 | "\\(RCS Version\\|RCS Revision\\|Repository revision\\):\ | 808 | "\\(RCS Version\\|RCS Revision\\|Repository revision\\):\ |
| @@ -823,6 +823,7 @@ state." | |||
| 823 | ((string-match "Locally Added" status) 'added) | 823 | ((string-match "Locally Added" status) 'added) |
| 824 | ((string-match "Locally Removed" status) 'removed) | 824 | ((string-match "Locally Removed" status) 'removed) |
| 825 | ((string-match "File had conflicts " status) 'conflict) | 825 | ((string-match "File had conflicts " status) 'conflict) |
| 826 | ((string-match "Unknown" status) 'unregistered) | ||
| 826 | (t 'edited)))))))) | 827 | (t 'edited)))))))) |
| 827 | 828 | ||
| 828 | (defun vc-cvs-after-dir-status (update-function) | 829 | (defun vc-cvs-after-dir-status (update-function) |