1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-07 14:15:47 +01:00

Remove date from config.version.

This commit is contained in:
Kris Maglione
2011-08-21 04:06:20 -04:00
parent fd364645db
commit ffe138b4e3
3 changed files with 19 additions and 9 deletions

View File

@@ -309,11 +309,17 @@ var ConfigBase = Class("ConfigBase", {
version: Class.memoize(function () {
if (this.VCSPath)
return io.system(["hg", "-R", this.VCSPath, "log", "-r.",
"--template=hg{rev}-" + this.branch + " ({date|isodate})"]).output;
let version = this.addon.version;
"--template=hg{rev}." + this.branch]).output;
return this.addon.version;
}),
buildDate: Class.memoize(function () {
if (this.VCSPath)
return io.system(["hg", "-R", this.VCSPath, "log", "-r.",
"--template={date|isodate}"]).output;
if ("@DATE@" !== "@" + "DATE@")
version += " " + _("dactyl.created", "@DATE@");
return version;
return _("dactyl.created", "@DATE@");
}),
get fileExt() this.name.slice(0, -6),