mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-28 12:12:28 +01:00
Remove date from config.version.
This commit is contained in:
@@ -1866,10 +1866,14 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
function (args) {
|
||||
if (args.bang)
|
||||
dactyl.open("about:");
|
||||
else
|
||||
commandline.commandOutput(<>
|
||||
{config.appName} {config.version} running on:<br/>{navigator.userAgent}
|
||||
</>);
|
||||
else {
|
||||
let date = config.buildDate;
|
||||
date = date ? " (" + date + ")" : "";
|
||||
|
||||
commandline.commandOutput(
|
||||
<div>{config.appName} {config.version}{date} running on: </div> +
|
||||
<div>{navigator.userAgent}</div>)
|
||||
}
|
||||
}, {
|
||||
argCount: "0",
|
||||
bang: true
|
||||
|
||||
@@ -109,7 +109,7 @@ completion.waitingFor-1 = Waiting for %S
|
||||
completion.waitingForKeyPress = Waiting for key press
|
||||
completion.matchIndex-2 = match %S of %S
|
||||
|
||||
dactyl.created-1 = "(created %S)"
|
||||
dactyl.created-1 = created %S
|
||||
dactyl.parsingCommandLine-1 = Parsing command line options: %S
|
||||
dactyl.notCommand-2 = E492: Not a %S command: %S
|
||||
dactyl.sourcingPlugins-1 = Sourcing plugin directory: %S...
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user