GNU bug report logs -
#61320
28.2; `vc-cvs-parse-root' returns wrong results
Previous Next
Full log
View this message in rfc822 format
This reproduces also in master.
Not sure why nobody has reported this. Most likely because the current
callers of `vc-cvs-parse-root' care only about some aspects of the
actual result of `vc-cvs-parse-root'.
$ emacs -Q
In scratch buffer evaluate the following (specification of Ctrl-J
omitted for clarity):
(load-library "vc-cvs")
t
;; this one is correct in the sense that 3rd element of the list is nil
;; (making it a local root for `vc-cvs-repository-hostname'), but
;; probably is not what the author has intended:
(vc-cvs-parse-root ":local:/var/lib/cvs")
("local" nil nil "var:/lib/cvs")
;; but this one is completely broken:
(vc-cvs-parse-root "/var/lib/cvs")
("ext" nil "var" "/lib/cvs")
There might be different fixes, but IMHO the regexp used in function
`vc-cvs-parse-uhp' should be anchored to beginning of line or string:
"\\`\\([^/]+\\)\\(/.*\\)"
This bug report was last modified 2 years and 8 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.