summaryrefslogtreecommitdiff
path: root/lisp/subr.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2013-11-14 19:07:03 +0200
committerBozhidar Batsov <bozhidar@batsov.com>2013-11-14 19:07:03 +0200
commit0d5363c4cdc0de80137744f2c2445606042cf2cd (patch)
tree9e973ea803d7ab075cfa7a91017b952932c7bd65 /lisp/subr.el
parent99f5d0744ebf302d9ba56aae78da90504cb48772 (diff)
* lisp/subr.el (version-regexp-alist):
Recognize hg, svn and darcs versions as snapshot versions.
Diffstat (limited to 'lisp/subr.el')
-rw-r--r--lisp/subr.el14
1 files changed, 8 insertions, 6 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index e8d3245ff1..612638fcf2 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -4470,12 +4470,14 @@ Usually the separator is \".\", but it can be any other string.")
(defconst version-regexp-alist
- '(("^[-_+ ]?snapshot$" . -4)
- ("^[-_+]$" . -4) ; treat "1.2.3-20050920" and "1.2-3" as snapshot releases
- ("^[-_+ ]?\\(cvs\\|git\\|bzr\\)$" . -4) ; treat "1.2.3-CVS" as snapshot release
- ("^[-_+ ]?alpha$" . -3)
- ("^[-_+ ]?beta$" . -2)
- ("^[-_+ ]?\\(pre\\|rcc\\)$" . -1))
+ '(("^[-_+ ]?snapshot$" . -4)
+ ;; treat "1.2.3-20050920" and "1.2-3" as snapshot releases
+ ("^[-_+]$" . -4)
+ ;; treat "1.2.3-CVS" as snapshot release
+ ("^[-_+ ]?\\(cvs\\|git\\|bzr\\|svn\\|hg\\|darcs\\)$" . -4)
+ ("^[-_+ ]?alpha$" . -3)
+ ("^[-_+ ]?beta$" . -2)
+ ("^[-_+ ]?\\(pre\\|rcc\\)$" . -1))
"Specify association between non-numeric version and its priority.
This association is used to handle version string like \"1.0pre2\",