/srv/irclogs.ubuntu.com/2011/02/17/#bzr.txt

pooliei wonder why 717345 isn't showing up on john's kanban?00:05
bignoseI'm trying to configure ‘bzr builddeb’.00:30
maxbgo on...00:30
bignoseit has an ‘--orig-dir’ option; what change can I make to a config file to set that option?00:31
bignoseI've tried making a ‘[builddeb]’ section in ‘~/.bazaar/bazaar.conf’ with ‘orig_dir = foo’00:31
bignosebut the program ignores it00:31
maxbhttp://jameswestby.net/bzr/builddeb/user_manual/configuration.html00:33
bignosethanks.00:34
bignosewhy all-caps for the section name?00:34
bignosethat doesn't match most other INI file styles.00:34
bignose(the ‘[DEFAULT]’ is an intentional exception so it stands out)00:35
maxbSomeone thought it was a good idea at the time?00:35
bignoseif Launchpad would accept my OpenID then I would submit a bug report about that.00:36
bignosebut it doesn't, so I'll just fume quietly.00:36
maxbI'm not sure a quirky naming choice constitutes a bug00:36
poolie:) hello bignose00:37
bignosepoolie: heh, I wondered whose attention that would get. hi!00:38
bignosemaxb: low severity, but it still violates a convention.00:38
poolieistr there is a convention of '[DEFAULT] in configobject, but i may be wrong00:39
bignosepoolie: I think so, yes00:39
bignosebut the other sections shouldn't be all-caps00:40
bignosein the case of Bazaar, I would expect they'd simply be named after the module or command, with no changes to capitalisation00:40
marvin2Hi, what's the correct way to change the default parent branch of a branch?02:02
Pengbzr pull --remember?02:03
marvin2Peng: I just cloned a branch from machine A (to machine B). Now I want the branch in machine B to use machine-A's parent as its default parent (it currently refers to machine-A as its parent)02:04
marvin2Peng: So I retrieve the parent of machine-A and do a bzr pull --remember <machine-A's-parent>?02:04
PengWait I have no idea what we're talking about.02:05
PengIf you want to change the "parent branch" listed by e.g. "bzr info", use "bzr pull --remember some-other-branch"02:05
marvin2OK02:05
marvin2Peng: OK, thanks.02:06
bignoseI don't think ‘bzr pull’ is right02:20
bignoseif it's not already a mirror ‘pull’ will make it a mirror. that's probably not what marvin2 wants.02:21
bignosemarvin2: I would do it by editing ‘.bzr/branch/branch.conf’ but there may be a command to do it02:24
spivYou can also do "bzr config --scope=branch parent_location=URL" in bzr 2.302:24
bignosemarvin2: ‘bzr pull’ is not what you want in this case02:24
spiv(Maybe you can omit the --scope?  Doesn't hurt to be explicit)02:25
marvin2bignose: Cool, will give that a try - bzr pull --remember did work, but I don't want to pull from the original location just to set the default parent.02:51
bignosemarvin2: yes, ‘bzr pull --remember’ will “work”, if by “work” you mean what ‘bzr pull’ does :-)05:58
bignoseif you didn't intend to change the view of the branch history, then it's unlikely to have done what you want.05:58
spivpull won't necessarily change the branch history at all, e.g. if the branches have diverged.06:02
spiv(But would still update the parent_location with --remember I think)06:02
spivProbably you could use ‘bzr merge --remember URL; bzr revert’ instead, although in this case you'd lose any local working tree changes you hadn't committed.06:03
spivAnyway, 2.3 has a UI for setting config variables.06:04
cjohnstonQuestion.. If I have a branch, merged in some code from a merge proposal, and now want to back out that code from the merge proposal, what the best way to do that? bzr revert, bzr remove-branch, ...? I have not committed the code that I merged in07:21
pooliethen revert07:21
cjohnstonso bzr revert <file-name> is the correct syntax poolie ?07:22
poolieyes07:26
poolieor plain 'revert' to revert the whole tree07:26
cjohnstonthank you very much poolie07:29
poolieyou're welcome; have a good night07:29
cjohnstonthanks.. you too07:30
vilahi all !07:46
=== ubot5` is now known as ubot5
maxbjames_w: Thanks for the bzr-builddeb MP approvals - just wanted to note that I can't land them myself, so please let me know whether I should wait, poke someone on IRC, or request the team membership to do so09:48
quotemstrWhy is bzr complaining about Transport operation not possible: http does not support mkdir()12:05
quotemstr?12:05
quotemstrAh. FAQ.12:05
james_wmaxb, yeah, sorry for not mentioning it, I'll get to it13:30
maxbnp, just wanted to be clear what the next step was13:31
speakmanwith bzr annotate I can see which one's responible for a certain line of code14:23
speakmanbut in my case, the last edit of the line was just an uncommenting14:23
speakmanhow can I trace when it was put there in the first place?14:24
rubbsspeakman: this may not be the easist solution, but you can run bzr log filename to see what revisions it was changed on, then use the revision spec on the annotate to see who did it14:35
rubbsnot sure if you can see all of the history of jsut one line easily though14:35
jelmerspeakman: qannotate and gannotate can help you skip to older revisions more easily14:36
speakmanjelmer: thanks14:52
bigjoolsjelmer: around?15:03
jelmerbigjools: hi!15:38
bigjoolsjelmer: hey!  can you do me a favour and take a quick look at this, there's a failing git import and it's kinda old and embarrassing that nobody chased it up: https://answers.edge.launchpad.net/launchpad/+question/12297115:39
=== deryck is now known as deryck[lunch]
sobersabrehi15:50
sobersabreI have downloaded email hook. and it worked, i.e. sent an email.15:50
sobersabreI added configuration to ~/.bazaar/bazaar.conf in [DEFAULT] section15:50
sobersabreWhat is the syntax for addint the rules per branch. is it possible ?15:51
sobersabrehm... I think I've found this.15:52
bigjoolsjelmer: did I scare you? :)15:56
=== beuno is now known as beuno-lunch
vilabialix, GaryVDM: Ping16:13
vilajelmer: ping, have you ever used dicts as values in config files (don't even try if you haven't please :) ?16:18
bigjoolsjelmer, jelmer_: did you get my reply?16:18
jelmer_bigjools: Sorry, my VPS seems to be under a lot of load for some reason16:18
vilaOMG, we've lost our pilot !16:18
vila:)16:18
jelmer_bigjools: I did get your reply, I'm digging into the error16:18
bigjoolsjelmer_: great, thanks for looking.16:19
jelmer_vila: hi!16:19
jelmer_vila: I haven't, I wouldn't have thought that worked...16:19
vilajelmer: good, forget about it, I never mentioned it :)16:20
=== deryck[lunch] is now known as deryck
=== beuno-lunch is now known as beuno
lifelessjam: around ?18:13
lifelessjam: rousskov here is one of the key contributors to squid and is using lp to host his feasture branches; he is getting a 'lock held' message when running 'bzr update' locally - but there is no stale lock on lp or locally - http://bazaar.launchpad.net/~rousskov/squid/3p1-rock/.bzr/18:17
lifelessjelmer_: or perhaps you are around ?18:18
* lifeless is a bit rusty on this code now18:18
rousskovat crowberry [process #10913], acquired 8 seconds ago.18:18
rousskovprocess number changes every "bzr update"; time is always small18:19
rousskov"bzr break-lock -v [URL]" does/shows nothing18:19
maxbrousskov: Hi, could you run 'bzr info' in your local branch18:20
maxbIn particular I am interested in whether one of the URLs contains the string %7e18:20
rousskovCheckout (format: pack-0.92)18:20
rousskovLocation:18:20
rousskov       checkout root: .18:20
rousskov  checkout of branch: bzr+ssh://bazaar.launchpad.net/%7Erousskov/squid/3p1-rock/18:20
rousskovRelated branches:18:20
rousskov    push branch: bzr+ssh://bazaar.launchpad.net/%7Erousskov/squid/3p1-rock/18:20
rousskov  parent branch: /home/rousskov/programs/bazaar/repos/squid/3p1-plus18:20
rousskov  submit branch: /home/rousskov/programs/bazaar/repos/squid/v3.118:20
rousskovyes, they have %7E18:21
maxbright, in that case this seems to be an URL canonicalization bug in bzr, such that it thinks the encoded and non-encoded form of the ~ character reference different repositories, so it tries to lock them both, and ends up fighting with itself18:21
maxbThe easy solution for now is to replace %7E with ~ in your .bzr/branch/branch.conf18:22
maxbObviously this shouldn't be required, and we need to file a bug and research why this problem is only coming to notice now18:22
rousskovI do not have ~/.bzr/branch/branch.conf. Would ~/.bazaar/locations.conf work?18:23
rousskovOr do you mean ./.bzr/...18:24
rousskov(you do)18:24
maxbyes, I do :-)18:24
rousskovTree is up to date at revision 9630 of branch bzr+ssh://bazaar.launchpad.net/~rousskov/squid/3p1-rock18:25
rousskovmaxb, thank you18:25
rousskovlifeless, thank you18:25
maxbnp :-)18:25
lifelessmaxb: thanks!18:26
lifelessI'd totally forgetten about this bug18:26
rousskovFWIW, this is an old branch/setup. I did upgrade bzr recently (v2.3.0)18:27
lifelessyah, this was a bzr self incompatability18:27
lifelessit had a bug for a bit where it wronte the %7E18:28
lifelessand then the url handling in it had a bug that got fixed and the two interacted18:28
rousskovmakes sense18:28
jamlifeless: I'm around now.18:30
rousskovWhile I am here, I recently had a contributor doing "bzr push" to an lp branch (instead of "bzr commit") and essentially overwriting my recent commits with his merged and new stuff. Is that a bug or a feature?18:31
jamrousskov: he didn't "overwrite" them, but he likely moved them to be merge commits instead of mainline18:31
jamI can draw a graph if you like18:31
jamyou can set "append_revisions_only = True" in .bzr/branch/branch.conf and it will prevent that18:32
rousskovyes, they become hidden, the tags were lost, etc.18:32
rousskovI cannot set append_revisions_only on contributor's computer, can I?18:32
rousskov(should not that be the default?)18:32
jamrousskov: you set it on the branch you are sharing18:33
jambzr config -d lp:$SHARED_BRANCH append_revisions_only=True18:33
jamthough you need a newer bzr for 'bzr config' to exist18:33
rousskovNice. Will try.18:33
jamrousskov: it should not lose the tags18:33
jamyou should still be able to do "bzr log -r tag:foo"18:33
rousskovwell, they become invisible in "bzr log"18:34
jamyou might try "bzr log -n0" to show merged revisions18:34
rousskovand revision numbers I recorded earlier got changed, so I think I can argue that it was not totally seamless/harmless operation.18:35
rousskov(even if bzr still knows everything I did)18:35
jamrousskov: sure. shared branches should generally be used with append_revisions_only = True. It is something we've talked about making default, though people expressed concern over the transition, et.c18:37
rousskovsure, as usual. Thank you for explaining what happened. And I do see the tags with -n0.18:38
pooliehi all21:39
mneptokpoolie: hi!21:39
pooliehey there21:40
pooliehow are things at Monty Program?21:40
jelmer_hey poolie, mneptok21:41
* mneptok hands jelmer_ some Chap-Stick and pure, unadulterated fury21:42
mneptoksorry, it's all i have handy :/21:43
pooliehey jelmer21:43
pooliewhat are you up to?21:43
jamhey poolie21:43
pooliehi jam21:43
pooliejelmer we should get your lazy-hooks things unblocked21:44
poolieoh, also, just from looking at the kanban21:45
pooliehttps://bugs.launchpad.net/bzr-hg/+bug/691994 - is that still in progress in launchpad?21:45
jelmer_hmm, Chap-Stick, that might come in useful21:46
jelmer_hmm, there's still something laggy about my connection21:47
jelmer_poolie: Yeah - I'm trying to finish off another fix for bzr-hg that's related which I'd like to land together with that one21:47
pooliefairy nuff21:47
pooliei just ask because there's an mp that seems to be landed21:48
jelmer_I'd like to get the lazy hooks stuff unblocked too, I'm a bit confused about the status at the moment.21:48
jelmer_hi jam21:57
pooliejelmer, i'll try to review and update them21:58
jelmer_poolie: cool, thanks :)22:07
* jelmer_ is reviewing MPs from 2008.. it's a bit embarrassing22:07
jmlI just got this in a test that I recently added to Launchpad:22:52
jmlException IndexError: IndexError('list index out of range',) in <bound method _LockWarner.__del__ of <bzrlib.lockable_files._LockWarner object at 0x10f65d50>> ignored22:52
jmlI have no idea where it comes from or why it happened, and I can't reproduce the error locally.22:52
jelmer_jml: Does it actually cause anything to fail or is it just a warning?22:53
jmljelmer_: it was printed to stderr during a test where I am trying to make sure nothing gets printed to stderr22:53
jelmer_jml: ah, ok - so from bzr's perspective it's a warning22:54
lifelessa test before yours isn't cleaning up properly / has found a bzr bug : a gc.collect will likely fix the symptoms, but not help you discover the cause22:54
lifelessjelmer_: thats a fail22:54
lifelessIndexError('list index out of range',)22:54
jelmer_lifeless: I'm not saying it isn't22:54
lifelessjelmer_: buggy code22:54
lifelessjelmer_: lockwarner isn't meant to crash itself22:55
jmllifeless: I'm not sure I want to add a gc.collect() to this test22:55
jelmer_I'm not sure what could be raising the IndexError though, given how trivial _LockWarner.__del__ is22:56
jelmer_jml: could warnings.warn() be raising an IndexError perhaps?22:56
jmljelmer_: how so? (the code I'm executing is sphinx, I don't know it very well)22:56
jelmer__LockWarner.__del__ is as trivial as:22:57
jelmer_        if self.lock_count >= 1:22:57
jelmer_            warnings.warn("%r was gc'd while locked" % self.repr)22:57
lifelessis .repr an attribute ?22:58
lifelessor a property22:58
jelmer_lifeless: it's an attribute that's being passed into LockWarner's constructor23:01
lifelessdoes *it* have a repr23:02
lifelessor a __str__ that can go boom23:02
jelmer_ah, sorry23:02
jelmer_no, it doesn't - it inherits them both from its base class: object23:02
lifelessjelmer_: I mean23:03
lifelesswhat is self.repr.__str__23:03
lifelessand self.repr.__repr__23:03
jelmer_ah, heh23:03
jelmer_that wasn't what you were asking though :)23:03
jelmer_the "repr" argument that's being passed in should be a string from what I can see23:04
jelmer_as it's just the return value of LockableFiles.__repr__()23:04
lifelessok23:05
lifelessthat seems unfragile23:05
lifelessjml: have you (or your test helpers) fiddled with the guts of warnings ?23:05
jmllifeless: not me. I'm inheriting from lp.testing.TestCase and running in zope, so who knows.23:06
mgzwarnings.warn can certainly throw an index error23:09
mgzespecially if tests previously have been warnings.filters has been messed with the control/supress warnings for a previous test23:10
jmlLP has all sorts of warnings fiddling in it.23:11
mgzhm... actually, code looks safer than I remember, iterates over it, doesn't index23:11
mgzone way to find out, if you can repo23:11
mgzis add try/except/printstack23:12
lifelessraose23:12
jmlmgz: I can't. Wish I could.23:14
lifelessjml: why can't you?23:14
lifelessjml: I mean, if it happens in ec2 reliably, thats reproduction isn't it ?23:14
jmllifeless: I've only run it once on ec2. Trying again now.23:15
jmllifeless: the feedback cycle is prohibitively long.23:15
lifelessits terrible23:15
lifelesssoon as a ta work item slot turns up we'll do something about that23:15
pooliehi mgz, jml23:18
mgzhey poolie. man I mangled my sentences just now.23:23
jmlpoolie: hello23:25
pooliehi jml23:27
poolieso the lep seemed to go reasonably well23:27
pooliesome constructive feedback23:27
jmlpoolie: cool23:30

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