[Pkg-javascript-commits] [dojo] 10/12: Fix Git revision not being correctly added to version object.

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 17:39:01 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag 1.4.5
in repository dojo.

commit 2909545028979650a369740a725835232b604597
Author: Colin Snover <github.com at zetafleet.com>
Date:   Fri Aug 23 03:53:32 2013 +0000

    Fix Git revision not being correctly added to version object.
    
    Refs #17176.
    (cherry picked from commit 66608081c2077d12a9c6288201d107a86803a28c)
    
    Conflicts:
    	_base/_loader/bootstrap.js
---
 _base/_loader/bootstrap.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/_base/_loader/bootstrap.js b/_base/_loader/bootstrap.js
index 7087bab..a11afdd 100644
--- a/_base/_loader/bootstrap.js
+++ b/_base/_loader/bootstrap.js
@@ -218,7 +218,7 @@ dojo.global = {
 =====*/
 	dojo.locale = d.config.locale;
 
-	var rev = "$Rev$".match(/\d+/);
+	var rev = "$Rev$".match(/[0-9a-f]{7,}/);
 
 /*=====
 	dojo.version = function(){
@@ -243,7 +243,7 @@ dojo.global = {
 =====*/
 	dojo.version = {
 		major: 1, minor: 4, patch: 0, flag: "dev",
-		revision: rev ? +rev[0] : NaN,
+		revision: rev ? rev[0] : NaN,
 		toString: function(){
 			with(d.version){
 				return major + "." + minor + "." + patch + flag + " (" + revision + ")";	// String

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git



More information about the Pkg-javascript-commits mailing list