mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 14:07:58 +01:00
Don't show the "all" item in the sanitize dialog.
This commit is contained in:
@@ -31,10 +31,6 @@ const AutoCommands = Module("autocommands", {
|
|||||||
* @param {string} cmd The Ex command to run.
|
* @param {string} cmd The Ex command to run.
|
||||||
*/
|
*/
|
||||||
add: function (events, regex, cmd) {
|
add: function (events, regex, cmd) {
|
||||||
if (typeof events == "string") {
|
|
||||||
events = events.split(",");
|
|
||||||
dactyl.log("DEPRECATED: the events list arg to autocommands.add() should be an array of event names");
|
|
||||||
}
|
|
||||||
events.forEach(function (event) {
|
events.forEach(function (event) {
|
||||||
this._store.push(AutoCommand(event, Option.parseRegex(regex), cmd));
|
this._store.push(AutoCommand(event, Option.parseRegex(regex), cmd));
|
||||||
}, this);
|
}, this);
|
||||||
|
|||||||
@@ -525,7 +525,7 @@ lookup:
|
|||||||
let file = io.File(filename);
|
let file = io.File(filename);
|
||||||
|
|
||||||
dactyl.assert(!file.exists() || args.bang,
|
dactyl.assert(!file.exists() || args.bang,
|
||||||
"E189: " + filename.quote() + " exists (add ! to override)");
|
"E189: " + filename.quote() + " exists (add ! to override)");
|
||||||
|
|
||||||
// TODO: Use a set/specifiable list here:
|
// TODO: Use a set/specifiable list here:
|
||||||
let lines = [cmd.serialize().map(commands.commandToString) for (cmd in commands) if (cmd.serialize)];
|
let lines = [cmd.serialize().map(commands.commandToString) for (cmd in commands) if (cmd.serialize)];
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ from mercurial import util
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
def fix_symlinks(repo, hooktype, parent1, **kwargs):
|
def fix_symlinks(repo, hooktype, parent1, **kwargs):
|
||||||
|
print map(repr, (repo, hooktype, parent1, kwargs))
|
||||||
revert = hooktype in ('precommit', 'preupdate')
|
revert = hooktype in ('precommit', 'preupdate')
|
||||||
ctxt = repo[parent1]
|
ctxt = repo[parent1]
|
||||||
for filename in ctxt:
|
for filename in ctxt:
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ const Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakR
|
|||||||
|
|
||||||
function ourItems(persistent) [
|
function ourItems(persistent) [
|
||||||
item for (item in self.itemMap)
|
item for (item in self.itemMap)
|
||||||
if (!item.builtin && (!persistent || item.persistent))
|
if (!item.builtin && (!persistent || item.persistent) && item.name !== "all")
|
||||||
];
|
];
|
||||||
|
|
||||||
function prefOverlay(branch, persistent, local) update(Object.create(local), {
|
function prefOverlay(branch, persistent, local) update(Object.create(local), {
|
||||||
|
|||||||
Reference in New Issue
Block a user