diff options
| author | Andreas Schwab | 2003-03-27 22:40:29 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2003-03-27 22:40:29 +0000 |
| commit | 92788b3bcd2cb4bd8e67a789dfcee2c9a0a1a3c1 (patch) | |
| tree | 029cce0abde82b22ff2a2531afaa36d85983e519 | |
| parent | 84f2e615526fec2051c9980aff9c52d406847ca5 (diff) | |
| download | emacs-92788b3bcd2cb4bd8e67a789dfcee2c9a0a1a3c1.tar.gz emacs-92788b3bcd2cb4bd8e67a789dfcee2c9a0a1a3c1.zip | |
(vc-cvs-parse-entry): Make sure a file with conflicts
is marked as edited.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc-cvs.el | 13 |
2 files changed, 11 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index da6751076e1..f9618b72df2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2003-03-27 Andreas Schwab <schwab@suse.de> | ||
| 2 | |||
| 3 | * vc-cvs.el (vc-cvs-parse-entry): Make sure a file with conflicts | ||
| 4 | is marked as edited. | ||
| 5 | |||
| 1 | 2003-03-26 Kenichi Handa <handa@etlken2> | 6 | 2003-03-26 Kenichi Handa <handa@etlken2> |
| 2 | 7 | ||
| 3 | * files.el (recode-file-name): New function. | 8 | * files.el (recode-file-name): New function. |
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el index c6f3c2b2f55..9d1674c1490 100644 --- a/lisp/vc-cvs.el +++ b/lisp/vc-cvs.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: FSF (see vc.el for full credits) | 5 | ;; Author: FSF (see vc.el for full credits) |
| 6 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> | 6 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> |
| 7 | 7 | ||
| 8 | ;; $Id: vc-cvs.el,v 1.50 2002/12/26 14:05:48 spiegel Exp $ | 8 | ;; $Id: vc-cvs.el,v 1.51 2003/02/17 08:11:13 spiegel Exp $ |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -872,10 +872,8 @@ is non-nil." | |||
| 872 | (concat "/[^/]+" | 872 | (concat "/[^/]+" |
| 873 | ;; revision | 873 | ;; revision |
| 874 | "/\\([^/]*\\)" | 874 | "/\\([^/]*\\)" |
| 875 | ;; timestamp | 875 | ;; timestamp and optional conflict field |
| 876 | "/\\([^/]*\\)" | 876 | "/\\([^/]*\\)/" |
| 877 | ;; optional conflict field | ||
| 878 | "\\(+[^/]*\\)?/" | ||
| 879 | ;; options | 877 | ;; options |
| 880 | "\\([^/]*\\)/" | 878 | "\\([^/]*\\)/" |
| 881 | ;; sticky tag | 879 | ;; sticky tag |
| @@ -883,13 +881,14 @@ is non-nil." | |||
| 883 | "\\(.*\\)")) ;Sticky tag | 881 | "\\(.*\\)")) ;Sticky tag |
| 884 | (vc-file-setprop file 'vc-workfile-version (match-string 1)) | 882 | (vc-file-setprop file 'vc-workfile-version (match-string 1)) |
| 885 | (vc-file-setprop file 'vc-cvs-sticky-tag | 883 | (vc-file-setprop file 'vc-cvs-sticky-tag |
| 886 | (vc-cvs-parse-sticky-tag (match-string 5) (match-string 6))) | 884 | (vc-cvs-parse-sticky-tag (match-string 4) (match-string 5))) |
| 887 | ;; compare checkout time and modification time | 885 | ;; compare checkout time and modification time |
| 888 | (let ((mtime (nth 5 (file-attributes file)))) | 886 | (let ((mtime (nth 5 (file-attributes file)))) |
| 889 | (require 'parse-time) | 887 | (require 'parse-time) |
| 890 | (let ((parsed-time | 888 | (let ((parsed-time |
| 891 | (parse-time-string (concat (match-string 2) " +0000")))) | 889 | (parse-time-string (concat (match-string 2) " +0000")))) |
| 892 | (cond ((and (car parsed-time) | 890 | (cond ((and (not (string-match "\\+" (match-string 2))) |
| 891 | (car parsed-time) | ||
| 893 | (equal mtime (apply 'encode-time parsed-time))) | 892 | (equal mtime (apply 'encode-time parsed-time))) |
| 894 | (vc-file-setprop file 'vc-checkout-time mtime) | 893 | (vc-file-setprop file 'vc-checkout-time mtime) |
| 895 | (if set-state (vc-file-setprop file 'vc-state 'up-to-date))) | 894 | (if set-state (vc-file-setprop file 'vc-state 'up-to-date))) |