mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-09 23:55:44 +01:00
Fix gathering of config.version from hg.
This commit is contained in:
@@ -113,7 +113,7 @@ var ConfigBase = Class("ConfigBase", {
|
|||||||
io.pathSearch("hg")) {
|
io.pathSearch("hg")) {
|
||||||
return io.system(["hg", "-R", uri.file.parent.path,
|
return io.system(["hg", "-R", uri.file.parent.path,
|
||||||
"log", "-r.",
|
"log", "-r.",
|
||||||
"--template=hg{rev} ({date|isodate})"]);
|
"--template=hg{rev} ({date|isodate})"]).output;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let version = this.addon.version;
|
let version = this.addon.version;
|
||||||
|
|||||||
@@ -436,7 +436,7 @@ var IO = Module("io", {
|
|||||||
*
|
*
|
||||||
* @param {string} command The command to run.
|
* @param {string} command The command to run.
|
||||||
* @param {string} input Any input to be provided to the command on stdin.
|
* @param {string} input Any input to be provided to the command on stdin.
|
||||||
* @returns {string}
|
* @returns {object}
|
||||||
*/
|
*/
|
||||||
system: function (command, input) {
|
system: function (command, input) {
|
||||||
util.dactyl.echomsg("Calling shell to execute: " + command, 4);
|
util.dactyl.echomsg("Calling shell to execute: " + command, 4);
|
||||||
@@ -472,7 +472,8 @@ var IO = Module("io", {
|
|||||||
__noSuchMethod__: function (meth, args) this.output[meth].apply(this.output, args),
|
__noSuchMethod__: function (meth, args) this.output[meth].apply(this.output, args),
|
||||||
valueOf: function () this.output,
|
valueOf: function () this.output,
|
||||||
output: stdout.read().replace(/^(.*)\n$/, "$1"),
|
output: stdout.read().replace(/^(.*)\n$/, "$1"),
|
||||||
returnValue: res
|
returnValue: res,
|
||||||
|
toString: function () this.output
|
||||||
};
|
};
|
||||||
}) || "";
|
}) || "";
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user