Function: package-strip-rcs-id
package-strip-rcs-id is a byte-compiled function defined in
package.el.gz.
Signature
(package-strip-rcs-id STR)
Documentation
Strip RCS version ID from the version string STR.
If the result looks like a dotted numeric version, return it. Otherwise return nil.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/package.el.gz
(defun package-strip-rcs-id (str)
"Strip RCS version ID from the version string STR.
If the result looks like a dotted numeric version, return it.
Otherwise return nil."
(when str
(when (string-match "\\`[ \t]*[$]Revision:[ \t]+" str)
(setq str (substring str (match-end 0))))
(let ((l (version-to-list str)))
;; Don't return `str' but (package-version-join (version-to-list str))
;; to make sure we use a "canonical name"!
(if l (package-version-join l)))))