aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/vc-hooks.el
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1997-05-04 06:49:53 +0000
committerRichard M. Stallman <[email protected]>1997-05-04 06:49:53 +0000
commit9f49ec7384af42656928aab935f1be366a0214bb (patch)
tree9863f25d22df5f3368059e0a87f1201c4262b5f2 /lisp/vc-hooks.el
parent5dd0cad0759ef33be44208b60b1d08bde11b1251 (diff)
(vc-find-cvs-master): Accept ...+ in a normal entry.
Diffstat (limited to 'lisp/vc-hooks.el')
-rw-r--r--lisp/vc-hooks.el14
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el
index 7a59ccc9f0..da673ecdab 100644
--- a/lisp/vc-hooks.el
+++ b/lisp/vc-hooks.el
@@ -786,7 +786,7 @@ For CVS, the full name of CVS/Entries is returned."
;; normal entry
((re-search-forward
(concat "^/" (regexp-quote basename)
- "/\\([^/]*\\)/[^ /]* \\([A-Z][a-z][a-z]\\) *\\([0-9]*\\) \\([0-9]*\\):\\([0-9]*\\):\\([0-9]*\\) \\([0-9]*\\)")
+ "/\\([^/]*\\)/\\([^/+]*\\+\\)?[^ /]* \\([A-Z][a-z][a-z]\\) *\\([0-9]*\\) \\([0-9]*\\):\\([0-9]*\\):\\([0-9]*\\) \\([0-9]*\\)")
nil t)
(setq case-fold-search fold) ;; restore the old value
;; We found it. Store away version number now that we
@@ -797,16 +797,16 @@ For CVS, the full name of CVS/Entries is returned."
;; If the file hasn't been modified since checkout,
;; store the checkout-time.
(let ((mtime (nth 5 (file-attributes file)))
- (second (string-to-number (match-string 6)))
- (minute (string-to-number (match-string 5)))
- (hour (string-to-number (match-string 4)))
- (day (string-to-number (match-string 3)))
- (year (string-to-number (match-string 7))))
+ (second (string-to-number (match-string 7)))
+ (minute (string-to-number (match-string 6)))
+ (hour (string-to-number (match-string 5)))
+ (day (string-to-number (match-string 4)))
+ (year (string-to-number (match-string 8))))
(if (equal mtime
(encode-time
second minute hour day
(/ (string-match
- (match-string 2)
+ (match-string 3)
"xxxJanFebMarAprMayJunJulAugSepOctNovDec")
3)
year 0))