[02:18] ftr, I <3 $bzr log -l <== that is all [03:24] Can anyone help me with the configuration of an external merge tool in bzr 2.5? [03:35] … :( [04:02] spm: $ bzr alias sl [04:02] bzr alias sl="log --short -l 10" [04:02] mwhudson: but that would getin the way of sl(1)!!!! [04:02] ah yes, i guess you already have conditioning around those letters [04:02] I can't forgo my train [04:06] bzr is giving me a "Option this is not defined while expanding" error when setting the cmd for an external merge tool. What's the deal? === yofel_ is now known as yofel [07:50] simX: what version of bzr, and what are you doing? [08:00] morning all! [08:02] LarstiQ: 2.5.0, and all I'm doing is reading the config cmd I set. [08:02] bzr config --scope=bazaar bzr.default_mergetool=MyCoolMergeTool [08:02] bzr config --scope=bazaar bzr.mergetool.MyCoolMergeTool="mycoolmergetool --wait \"{this}\" \"{other}\" \"{result}\" \"{base}\"" [08:02] Those seem to succeed. [08:02] But then I do this: bzr config bzr.mergetool.Kaleidoscope --scope=bazaar [08:03] And it gives me "bzr: ERROR: Option this is not defined while expanding "'mycoolmergetool --wait "{this}" "{other}" "{result}" "{base}"'"." [08:03] simX: that sounds like {this} is not expanded for some reason [08:03] Well, yeah, but why not? [08:04] I'm just setting the mergetool cmd and reading it back. [08:04] simX: looking at the code now [08:04] * LarstiQ has never set a mergetool before [08:04] Me neither, thus I thought I was doing something wrong. :( [08:07] simX: it sounds like a bug [08:07] * bialix waves on mgz [08:07] * fullermd waves on bialix waving on mgz. [08:08] ah [08:08] hi fullermd! [08:08] LarstiQ: As in, you think the merge tool should work and its just incorrectly giving me the error when reading the cmd back, or the merge tool cmd setting actually won't work? [08:08] simX: I don't know the code well enough, but I have an idea of what might be wrong [08:09] simX: based on the traceback that we get [08:09] Ah. Where should I file a bug, then? [08:10] simX: I'm checking bzr 2.4 to confirm my hunch [08:10] Alright, thx for the help! [08:11] simX: So, I _think_ that the (new) config expanding of {option} is conflicting with the pre-existing mergetools expansion [08:12] simX: do you want to file the bug, or shall I/ [08:12] I'm happy to file the bug myself, but it sounds like you might be able to add a little more info/context, so maybe you'd be better off doing it. [08:13] Do you see any possible workaround? [08:14] simX: not yet, let me dig some deeper [08:22] lwn scares the crap out of me for no good reason again [08:22] mgz: how so? [08:23] they really should pick headlines, and which third party articles to highlight, more carefully [08:23] simX: I don't see a workaround :/ [08:23] mgz: the google article? [08:23] "Google guilty of infringement in Oracle trial" ... is not actually the case [08:23] * simX Incredible sadness. :( [08:23] simX: well [08:23] simX: you could use bzr 2.4.. [08:24] 2.5 bug? [08:24] simX: yeah [08:24] quoting the config file might be a workaround if that's it LarstiQ? [08:25] mgz: how does one do that? [08:25] how does str.format normally want {} escpaed... [08:25] mgz: the issue is that config.py tries to expand {this}, instead of letting mergetool do it [08:25] * mgz hasn't actually needed to do that [08:26] ah, or blast, config doesn't use str.format but its own thing [08:26] which probably doesn't have escaping support [08:27] need vila, but french holiday today [08:27] * LarstiQ nods [08:27] I'll file the bug anyway [08:28] Thanks. So it basically means 2.5 is a no-go for external merge tools? [08:28] looks like {{new}} might work? [08:29] mgz: didn't work for me [08:29] darn. [08:29] okay, so that should, which is one bug, and merge tools shouldn't clash, which is another [08:30] simX: Imo this warrants a bugfix release for 2.5, but at the moment, it looks like that :/ [08:31] :\ [08:31] Probably due for one when it gets fixed anyway. [08:33] LarstiQ: Welp, toss me a link to the bug once you've filed it, so I can track it? [08:33] Not all that much has happened, but it's been a couple months... [08:33] simX: will do [08:34] mgz: _expand_options_in_string: # We need to iterate until no more refs appear ({{foo}} will need two iterations for example) [08:34] mgz: so not sure about that one [08:35] right, that's what I was reading [08:39] simX: bug 996401 [08:39] Launchpad bug 996401 in Bazaar "mergetool config clashes with config option expansion" [High,Confirmed] https://launchpad.net/bugs/996401 [08:39] mgz: is it polite to assign this to vila? [08:41] we don't generally work that way, but I can bug him about it tomorrow which should do [08:41] * LarstiQ nods [09:18] One more quick question: to actually get bzr to use the specified external merge tool, I have to install a plugin like qconflicts? [09:20] simX: nothing is really broken, 'bzr config