[00:21:48] James_F: have I ever shown you https://git.legoktm.com/legoktm/bin/src/master/add_codesniffer.py ? [00:28:35] legoktm: No! That's rather neat. [00:32:34] legoktm: Ideally it'd init the repo with the git commit hook so it sets change IDs, but I'm just fussing now. ;-) [00:36:08] legoktm: So my local command is `git remote rm origin; git remote add origin ssh://jforrester@gerrit.wikimedia.org:29418/mediawiki/extensions/(basename "$PWD"); git fetch; git master; nuke; set gitdir (git rev-parse --git-dir); scp -p -P 29418 jforrester@gerrit.wikimedia.org:hooks/commit-msg "$gitdir"/hooks/; ../../add_codesniffer.py` which definitely isn't insane. ;-) [00:36:36] wow [00:36:39] what does nuke do? [00:37:14] Oh, yeah, that's `alias nuke "git clear; and git remote update; and git checkout master; and git pull"` [00:37:47] also instead of scp'ing to get the hook, you can just keep a copy of it lying around and copy it in as needed [00:37:49] https://git.legoktm.com/legoktm/grr/src/master/grr/__init__.py#L181 [00:38:32] * James_F nods. [00:45:01] legoktm: Also, is there a plan to get rid of wikibase-codesniffer? [00:50:16] not really [00:50:27] I have some ideas but haven't discussed them or written them down anywhere [00:50:57] Kk. [15:25:38] since the revision slots re in the database, it is possible for someone to change `main` to something else right? [15:25:49] *are [18:24:42] davidwbarratt: do you mean whether 'main' will always be wikitext? [18:25:11] Krinkle no I mean what happens if someone renames "main" to something else? [18:25:53] I don't know offhand whether 'main' is mandatory to exist. But, I do know that slotnames must be registered programmatically, so the someone = developer, but not a user. [18:26:33] I also don't know whether an existing blob of content can be re-purposed for another slot, e.g. "moving" it. [18:26:54] although I imagine it can't be, I mean, logically anyway. In essense, there is no history though. Each revision and content blob is on its own. [18:27:23] intereting [18:27:27] Krinkle thanks! [18:27:46] So one could, if a UI were made, make an edit whereby a slot is added containing the content previously in "main", and put something else in "main" or remove it (if and only if "main" is optional, which I'm not sure of). [18:28:03] The move would likely not be recognised though, just copy/paste, "happens" to be similar. [20:02:50] Krinkle: Yeah, slot order replacement isn't currently planned behaviour.