/srv/irclogs.ubuntu.com/2012/05/08/#bzr.txt

spmftr, I <3 $bzr log -l <number> <== that is all02:18
simXCan anyone help me with the configuration of an external merge tool in bzr 2.5?03:24
simX… :(03:35
mwhudsonspm: $ bzr alias sl04:02
mwhudsonbzr alias sl="log --short -l 10"04:02
spmmwhudson: but that would getin the way of sl(1)!!!!04:02
mwhudsonah yes, i guess you already have conditioning around those letters04:02
spmI can't forgo my train04:02
simXbzr 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?04:06
=== yofel_ is now known as yofel
LarstiQsimX: what version of bzr, and what are you doing?07:50
mgzmorning all!08:00
simXLarstiQ: 2.5.0, and all I'm doing is reading the config cmd I set.08:02
simXbzr config --scope=bazaar bzr.default_mergetool=MyCoolMergeTool08:02
simXbzr config --scope=bazaar bzr.mergetool.MyCoolMergeTool="mycoolmergetool --wait \"{this}\" \"{other}\" \"{result}\" \"{base}\""08:02
simXThose seem to succeed.08:02
simXBut then I do this: bzr config bzr.mergetool.Kaleidoscope --scope=bazaar08:02
simXAnd it gives me "bzr: ERROR: Option this is not defined while expanding "'mycoolmergetool --wait "{this}" "{other}" "{result}" "{base}"'"."08:03
LarstiQsimX: that sounds like {this} is not expanded for some reason08:03
simXWell, yeah, but why not?08:03
simXI'm just setting the mergetool cmd and reading it back.08:04
LarstiQsimX: looking at the code now08:04
* LarstiQ has never set a mergetool before08:04
simXMe neither, thus I thought I was doing something wrong. :(08:04
LarstiQsimX: it sounds like a bug08:07
* bialix waves on mgz08:07
* fullermd waves on bialix waving on mgz.08:07
LarstiQah08:08
bialixhi fullermd!08:08
simXLarstiQ: 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
LarstiQsimX: I don't know the code well enough, but I have an idea of what might be wrong08:08
LarstiQsimX: based on the traceback that we get08:09
simXAh.  Where should I file a bug, then?08:09
LarstiQsimX: I'm checking bzr 2.4 to confirm my hunch08:10
simXAlright, thx for the help!08:10
LarstiQsimX: So, I _think_ that the (new) config expanding of {option} is conflicting with the pre-existing mergetools expansion08:11
LarstiQsimX: do you want to file the bug, or shall I/08:12
simXI'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:12
simXDo you see any possible workaround?08:13
LarstiQsimX: not yet, let me dig some deeper08:14
mgzlwn scares the crap out of me for no good reason again08:22
LarstiQmgz: how so?08:22
mgzthey really should pick headlines, and which third party articles to highlight, more carefully08:23
LarstiQsimX: I don't see a workaround :/08:23
LarstiQmgz: the google article?08:23
mgz"Google guilty of infringement in Oracle trial" ... is not actually the case08:23
* simX Incredible sadness. :(08:23
LarstiQsimX: well08:23
LarstiQsimX: you could use bzr 2.4..08:23
simX2.5 bug?08:24
LarstiQsimX: yeah08:24
mgzquoting the config file might be a workaround if that's it LarstiQ?08:24
LarstiQmgz: how does one do that?08:25
mgzhow does str.format normally want {} escpaed...08:25
LarstiQmgz: the issue is that config.py tries to expand {this}, instead of letting mergetool do it08:25
* mgz hasn't actually needed to do that08:25
mgzah, or blast, config doesn't use str.format but its own thing08:26
mgzwhich probably doesn't have escaping support08:26
mgzneed vila, but french holiday today08:27
* LarstiQ nods08:27
LarstiQI'll file the bug anyway08:27
simXThanks.  So it basically means 2.5 is a no-go for external merge tools?08:28
mgzlooks like {{new}} might work?08:28
LarstiQmgz: didn't work for me08:29
mgzdarn.08:29
mgzokay, so that should, which is one bug, and merge tools shouldn't clash, which is another08:29
LarstiQsimX: Imo this warrants a bugfix release for 2.5, but at the moment, it looks like that :/08:30
simX:\08:31
fullermdProbably due for one when it gets fixed anyway.08:31
simXLarstiQ: Welp, toss me a link to the bug once you've filed it, so I can track it?08:33
fullermdNot all that much has happened, but it's been a couple months...08:33
LarstiQsimX: will do08:33
LarstiQmgz: _expand_options_in_string: # We need to iterate until no more refs appear ({{foo}} will need two iterations for example)08:34
LarstiQmgz: so not sure about that one08:34
mgzright, that's what I was reading08:35
LarstiQsimX: bug 99640108:39
ubot5Launchpad bug 996401 in Bazaar "mergetool config clashes with config option expansion" [High,Confirmed] https://launchpad.net/bugs/99640108:39
LarstiQmgz: is it polite to assign this to vila?08:39
mgzwe don't generally work that way, but I can bug him about it tomorrow which should do08:41
* LarstiQ nods08:41
simXOne more quick question: to actually get bzr to use the specified external merge tool, I have to install a plugin like qconflicts?09:18
vilasimX: nothing is really broken, 'bzr config <option>' want to display the value bzr will use. But in this specific case (a config template), the additional options are provided when the template is used so the error is "valid"09:20
simXvila: Yeah, saw the updates in the bug.  Thanks.09:22
* simX Still a bit confused on how to actually get the external tool to launch, though. Is qconflicts necessary?09:23
simXGrr.. keep accidentally sending msgs as actions...09:23
vilasimX: as for your last question, there should be an option to chose the mergetool you want to use but I can't remember it offhand09:23
simXI can't seem to find anything in the documentation. :(09:24
vilafile a bug for that09:24
simXI've set the *default* merge tool, but I merged a branch and got conflicts, now not sure how to even launch the default tool automatically on the various files.09:25
vilaha, can't help there, I don't use it myself ;-/09:26
vilasimX: bzr.default_mergetool and yes, qconflicts seems to be the way to use it09:28
javeim having memory problems with bzr. ive tried several different bzr versions, so either the problem is in my repo, or in my os install09:28
javeI use the fedora 17 prerelease, which has python 27309:29
LarstiQjave: what kind of problems?09:44
LarstiQvila: thanks for the update!09:45
javeLarstiQ: well, in a merge from upstream, or a commit, bzr keeps allocating memory until my 6GB ram is exhausted09:45
LarstiQjave: ouch09:45
LarstiQjave: are large files involved?09:46
javethis is the emacs repo, so no big files09:46
mgzit's a pretty big repo... but not 6GB big09:47
javeive tried bzr 2.4, 2.5, 2.609:47
javeyes its a big repo09:47
LarstiQmight it be trying to repack?09:48
javebut im not doing anything fancy09:48
* LarstiQ attempts a testcommit 09:48
javerepack?09:48
mgzjave, pastebinning, or posting to the mailing list, the tail of your .bzr.log where you run out of memory would be useful09:49
javemgz: ok09:49
LarstiQjave: once in a while bzr tries to gather smaller packs in larger ones09:50
javeLarstiQ: can I tell it not to?09:50
mgzvila: (should be holidaying but...) what I don't understand from what you've said is if just setting the right string in the config file should still work, as you appear to imply that but LarstiQ tested a bunch of stuff and couldn't get merge tools working on 2.5 at all09:51
LarstiQmgz: I didn't test the mergetool functionality itself, just the reading back09:51
javealso I dont care about disk size efficiency, can I get bzr to trade disk efficiency for time efficiency?09:51
vilawhat I said is that 'bzr config <option>' can't expand, nothing about the rest ;)09:51
LarstiQmgz: and for the reading back, {{this}} doesn't help09:52
* LarstiQ will test mergetools functionality once he figures out how to use it09:52
LarstiQjave: not that I know, but you can `bzr pack` yourself, if that is the problem09:52
LarstiQjave: I admit to shooting in the dark09:52
vilai.e. you can't make 'bzr config <option>' succeed, but the template *is* valid and will be populated at the right time09:52
LarstiQjave: the other long shot that comes to mind is if you're not using the C extensions, but just pure-python09:53
LarstiQvila: right09:53
LarstiQjave: fwiw, I managed to commit a revision 108158 on my copy of emacs trunk. And my laptop has 700mb ram09:54
vilaLarstiQ, mgz: in the general case, expansion should occur by default. Templates are the exception and you must use stack.get('xxx', expand=False) and *then* call stack.expand_options(template, {'this': 'xxx', 'other': 'yyy'})09:55
LarstiQvila: and it's also possible to configure a template with bonafide option expansion?09:56
vilayes09:56
LarstiQI see09:56
vilathe additional 'env' parameter to expand_options takes precedence but other references will still be expanded09:57
javeLarstiQ: would you mind trying the branch in question?  bzr+ssh://bzr.savannah.gnu.org/emacs/xwidget/09:57
vilaLarstiQ: also, keep in mind that mergetools was introduced while the new config scheme was designed/implemented so it suffered from lacking features at the time and Gordon did his best09:58
LarstiQvila: aye09:58
vilaLarstiQ: i.e. if this was rewritten *today* the resulting code should be simpler09:59
* LarstiQ nods10:00
LarstiQvila: would it make sense to implement the templating in terms of the config option expansion?10:00
LarstiQif someone were interested in that10:00
LarstiQjave: branched, trying a commit10:01
vilaLarstiQ: totally10:01
vilait's on my radar but pretty low on my TODO list :-/10:01
* LarstiQ nods10:01
LarstiQvila: I might want to do some bzr hacking in a couple of weeks10:02
vilaLarstiQ: you're welcome ;)10:04
LarstiQjave: `bzr merge ../emacs; bzr resolve --all; bzr ci -m "test test"` completed10:04
javehmm10:04
javethanks LarstiQ10:05
javeLarstiQ: which bzr and python version do you use?10:05
LarstiQjave: lp:bzr and python 2.6 from Debian testing10:06
LarstiQjave: does your current .bzr.log have some useful info?10:07
* LarstiQ needs to lunch, bbl10:07
vilaLarstiQ: 'bzr resolve --all' is EVIL, use --take-this or --take-other but '--all' just blew up the conflicts without any attempt to properly resolve them (it really is a last-resort-everything-is-broken-restore-some-sanity option)10:14
fullermdSanity is overrated.10:15
simXLarstiQ, mgz, vila: BTW, got the mergetool to work in 2.5.  Seems actually using the tool is fine, just reading it back using the `bzr config` throws the error.10:37
mgzsimX: great, that's what was unclear to me. could you post a short summary of what you needed to get it working to your question?10:38
simXYep, sure.10:39
simXmgz: Done.10:43
mgzace.10:44
LarstiQvila: I know that, but I don't know the emacs code and didn't care about the conflicts. Just wanted to see if I'd get a MemoryError10:45
LarstiQsimX: cheers! I get as far as qconflicts claiming none of the mergetools exist10:46
vilaLarstiQ: ok, sry for the knee-jerk reaction but '--all' should die ;) And feedback on --take-{other,this} in hostile envs *highly* welcome !10:57
vilaLarstiQ: as in: this *should* work and I think I fixed all known bugs there so new ones should be rare and fixed too10:58
LarstiQvila: I would normally use it to signify I handled all conflicts. It looks like --done can do that job now?11:07
vilaLarstiQ: yup, there is still work to be done to mark more conflicts resolved when the user already took the appropriate actions11:30
=== Ng_ is now known as Ng
=== zyga_ is now known as zyga
lifelesswgz: hi ?18:44
=== zyga_ is now known as zyga
bsdCan anybody tell me how to undo a rename detected by an 'bzr mv —auto' (or 'bzr mv —after a b')?21:05
bsd…without losing the original rename, of course.21:07
=== wilx_ is now known as wilx
fullermdmv it bak?21:33
fullermdOr back, even.21:33
bsdfullermd: hmm, that would lose the original rename.  Using —after might have worked but it throws an error21:59

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!