/srv/irclogs.ubuntu.com/2012/06/21/#bzr.txt

=== r0bby_ is now known as robbyoconnor
jnlhi, when i pipe bzr log --line to a pager the lines gets chopped off to 78 with (with a "..." at the end), can i avoid this?07:57
mgzmorning08:13
bialixhi all08:14
bialixhi jelmer08:14
jnln/m, looks like bug in old version (2.0)08:22
matttbeHello08:41
matttbeRecently, I wanted to update the version of Cairo-Dock in Ubuntu.08:41
matttbeI updated my branch to be synced with the main branch (bzr uncommit -r 25; bzr revert; bzr pull # => now on rev 26) and used merge-upstream option (bzr mu --version "3.0.2" --distribution=quantal).08:41
matttbeOn Launchpad, I can see that the previous rev (26) has the same rev ID on my new branch (lp:~cairo-dock-team/ubuntu/quantal/cairo-dock/3.0.2) and on the main branch (lp:ubuntu/cairo-dock).08:41
matttbeBut if someone tries to merge my new branch into the ubuntu branch, it seems there is a conflict. => https://code.launchpad.net/~cairo-dock-team/ubuntu/quantal/cairo-dock/3.0.2/+merge/11102008:41
matttbeNote that on rev 26, there is a patch (in debian/patches) which was applied but the diff (available in LP)  seems correct except that if you have a look to the conflict, it seems the previous patched was unapplied before merging:08:41
matttbeThis is what I can find in src/gldit/cairo-dock-callbacks.c:08:41
matttbe<<<<<<< TREE08:41
matttbeif (pDock->iSidTestMouseOutside == 0 && pEvent)  //(...)08:41
matttbe=======08:41
matttbeif (pDock->iSidTestMouseOutside == 0 && pEvent && ! pDock->bHasModalWindow)  // (...)08:41
matttbe>>>>>>> MERGE-SOURCE08:41
matttbeBut we can find this diff on rev 26:08:41
matttbe-  if (pDock->iSidTestMouseOutside == 0 && pEvent)  // (...)08:41
matttbe+ if (pDock->iSidTestMouseOutside == 0 && pEvent && ! pDock->bMenuVisible)  // (...)08:41
matttbeShould I have to remove my previous patches, commit and then use bzr merge-upstream?08:42
mgzmatttbe: have you had any luck getting an answer?09:47
matttbemgz: no09:48
matttbemgz: but if we use 'bzr pull' instead of 'bzr merge', we don't have this bug because  it seems patches are unapplied just before:09:48
matttbe  > Unapplying quilt patches to prevent spurious conflicts09:48
mgzright, my guess would be one branch was done with the quilt plugin enabled and the other wasn't09:49
mgzbut I don't understand from yuor description if your branch or lp:ubuntu/cairo-dock has the quilt patches applied in tree09:50
matttbeyes, lp:ubuntu/cairo-dock has quilt patches applied in tree09:50
matttbeand these patches are removed in the new one09:51
mgzin the diff I see the patches are completely removed, right?09:51
matttbeyes09:51
mgzwere they merged upstream?09:51
mgzor just dropped?09:52
matttbemerged upstream09:52
mgzokay09:52
* mgz ponders09:52
matttbebut it seems the problem is that they are merge upstream but the same line has been modified too09:52
mgzso, either you can play with the quilt options in bzr-builddeb and see if one of them helps,09:56
mgzor just do the merge locally, resolve the conflict and push it?09:56
mgzjelmer may have better ideas.09:56
matttbenote that in lp:ubuntu/cairo-dock, there is a patch (which is applied in tree) to remove one line in: src/gldit/cairo-dock-keybinder.h09:56
matttbeNow this patch is no longer needed (merged upstream) but if we use 'bzr merge', the line is still there09:56
matttbeyes, I merge it locally, resolve conflict, revert the wrong change in src/gldit/cairo-dock-keybinder.h and  push it on another branch09:57
* jelmer reads up on the last few minutes of converstaion..10:02
matttbebut if we use 'bzr pull' we don't have any problem (but if the sponsor want to merge this branch just to modify the ubuntu version in debian/changelog and push only one rev, it's not so easy and he has to check that all files are corrects)10:02
matttbemaybe it can be interesting to unapply patches just before merging (if it's possible)10:02
jelmermatttbe: bzr-builddeb can do that10:02
matttbejelmer: but who has to do that? the sponsor?10:03
jelmermatttbe: matttbe whoever does the merge10:04
matttbeok, thank you!10:04
jelmermatttbe: the bzr-builddeb has some documentation; you'll need a newer version of bzr-builddeb10:06
matttbejelmer: I've the version 2.8.4 from Ubuntu Quantal repos10:08
jelmerthat should be new enough10:11
=== jml is now known as jml_
=== jml_ is now known as jml
matttbejelmer: but what should the sponsor has to use? I used 'bzr merge-upstream' and everything was ok for me (but not for the sponsor)10:21
=== zyga-afk is now known as zyga
matttbeI see that now 'bzr mu' unapplied patches and it's great but then, the sponsor has to use 'bzr pull', or is there another solution?10:22
jelmermatttbe: if you've done the merge then the sponsor shouldn't have to do it again10:24
=== yofel_ is now known as yofel
matttbejelmer: except if he want to do modifications, no? e.g. the current Ubuntu version in debian/changelog is set as UNRELEASED (or should I've to set modify it but I thought that it had to be done by the sponsor)10:28
jelmermatttbe: sure, but he shouldn't get conflicts that you (or bzr-builddeb for you) resolved earlier10:35
matttbeyes but he doesn't have this conflicts if he uses 'bzr pull' because 'quilt pop -a' command is automatically launched. This is why I wonder why patches are not automatically unapplied if we use 'bzr merge'.10:40
matttbeBut if you say that the sponsor has to use 'bzr pull' and not 'bzr merge', I can understand. Now I know what the sponsor has to do with my branch ;)10:40
jelmermatttbe: I'm not sure I follow - 'bzr merge' already should be automatically unapplying patches for '3.0 (quilt)' during a merge10:41
matttbejelmer: yes, you're right, sorry. But if it removes patches, it will not see that patches have been removed and then the diff is wrong.10:46
matttbejelmer: Or is it maybe simply because patches shouldn't be applied in tree?10:46
jelmermatttbe: What do you mean with "But if it removes patches, it will not see that patches have been removed and then the diff is wrong" ?10:46
jmlI'm using 'bzr branch lp:foo' in an automated environment. Is there any way to shut up the warning about launchpad-login?10:47
jmlI guess I can just specify the http url.10:47
jelmerjml: specifying the http URL is probably easiest10:48
jelmerthere might me some warning suppressing config option too, though I'm not sure about the name..10:48
jelmerjml: no, doesn't look like we have a way to silence that message~10:48
jmljelmer: thanks.10:49
matttbejelmer: on lp:ubuntu/cairo-dock, there is a patch (applied in tree) which removes one line in one file. With the new version, we can remove this patch (merged upstream). On my branch, 'bzr mu' has unapplied this patch and I've removed it (with 'quilt delete -r').10:57
matttbeBut if the sponsor merge my branch, the line has not been removed.10:57
matttbeIt's maybe because if this patch is unapplied just before merging, the line is still in the tree (ok) and then, if we merge this branch with no applied patches with my new branch, this line will remain because on my branch, I don't have changed this file (if we have a look to the diff file, we don't see any modification about this line because I don't modify between the two revisions)10:57
matttbeSorry, I'm not sure that it's understandable :)10:57
matttbe(and I don't know how bzr works to do the merge)10:57
jelmermatttbe: is the change also gone from the working tree, and from the .pc directory (quilt should take care of that)11:10
matttbeafter the merge (my new branch => lp:ubuntu/cairo-dock), the '.pc' directory is empty and debian/patches only contain 'series' (which is empty)11:12
matttbein fact, I guess I'll have the same result if I do that:11:16
matttbequilt pop -a ## Now the line is reverted back in the corresponding file11:16
matttbebzr commit ## just to do the merge or I have to use bzr merge --force11:16
matttbebzr merge my_new_branch ## the line is still there11:16
matttbe(yes, I confirm I've the same problem if I launch these commands)11:18
=== jelmer is now known as Guest22079
=== jdobrien is now known as webm0nk3y
=== webm0nk3y is now known as jdobrien
alf_james_w: jelmer_: Hi! I am trying to merge a new version of a package with merge-upstream, but it complains that "bzr: ERROR: Upstream version 2012.06 has already been merged." . I had previously merged 2012.06 and commited, but then reverted/uncommitted the changes.13:42
james_walf_, run bzr tags and you will see an upstream-2012.06 tag?13:43
james_w"bzr tag --delete upstream-2012.06" and you should be good to merge again13:43
alf_james_w: Right, "upstream-2012.06     ?" . I did that and now I am getting: bzr: ERROR: Unable to find the tag for the previous upstream version, 2012.06, in the branch: upstream-2012.0613:45
james_walf_, hmm13:45
james_walf_, do you have a 2012.06 tag hanging around as well?13:46
alf_james_w: no13:46
james_walf_, hmm13:46
james_walf_, and I guess debian/changelog has no mention of 2012.06 any more?13:47
alf_james_w: aha, I made an intermediate commit to update the debian/ dir and have a 2012.06 entry in the debian changelog as UNRELEASED.13:48
james_walf_, that will be it then13:49
alf_james_w: ok, so how do I get around that? Do I have to uncommit?13:51
james_walf_, if you remove that entry from the changelog and commit then it should work13:51
alf_james_w: so 1. remove that entry, commit, then 2. merge-upstream ?13:52
james_walf_, I think so13:52
alf_james_w: it worked, thanks!13:53
jam1james_w: I replied to jml's message about upgrading jubany. I imagine we'll want both you and vila around if/when we deploy to Jubany.13:55
jam1What time do you usually start in the AM?13:55
jam1(utc)13:55
=== jam1 is now known as jam
james_wjam, 130013:56
jamjames_w, so about 1hr ago, right?13:56
james_wjam, yeah13:57
vilajam: huh ?13:57
jamvila: see the thread about upgrading udd13:58
jamI think it is reasonable to try to roll out storm again, and if it fails, just roll it back.13:58
jamBut we don't have to be afraid of that step, as long as we can catch it and roll it back quickly if it starts failing.13:58
* vila blinks13:58
jamand if we get it working, then we can think more sanely about a next step.13:58
jamvila: why do you think it is unsafe to *try* a storm rollout?14:00
vilabecause it failed at last attempt ?14:00
vilacorrupting the db ?14:01
vilamaxb knows the details, I've just read his emails14:01
jamvila, james_w: did it actually corrupt the db? I realize some bits got deadlocked.14:01
jamand it wouldn't be rolling out the exact code, it would be with an update to avoid the increased isolation level.14:01
jamI don't see a point to rolling out the exact thing we know was failing.14:01
james_wit did write some bad data due to the db due to storms behaviour regarding str/unicode14:02
jamjames_w: was that part of the fixes from max?14:02
james_wbut I plan to fix the instance Max found and do another pass looking for other cases14:02
jam(fixes unrelated to locking to quote you)14:02
james_wjam, we haven't yet fixed the last instance he found14:02
james_wbut we fixed some other things before rolling back14:02
jamso that would be a blocker, certainly.14:02
james_wyep14:03
=== zyga is now known as zyga-food
jamjames_w: so another possible transition plan would be to wait until we get some sort of staging system setup.14:04
vila+1e614:04
jamI feel like the timeline on that is a bit... unbounded14:04
vilaI thought a basic test was conducted on ec2 ?14:05
jamif it isn't, then it 'races' with finishing the unicode/str fixes14:05
jamif we can get a staging set up first, or close to the same time, then doi t14:05
jamit14:05
vilanot to mention the pristine-tar failures ?14:05
jamvila: isn't pristine-tar 100% orthogonal to this?14:05
vilawhen it comes to deployment, no14:06
james_wa staging system that would do everything except push the branches back?14:06
jamjames_w: something like that14:06
jamI would have some concern that 'doing work but throwing it away' might thrash (if say the primary is stopped for a while)14:06
jamjames_w: but we really need a place we can test things that isn't prod14:06
james_wyes14:07
vilajames_w: as long as you start with a copy of the dbs14:07
vilajames_w: pushing does some more db updates but.. well, if the rest is ok, you'll know what to expect14:08
jamjames_w: do you have any idea of a timeline for the unicode fixes? I imagine if you felt there was no way to get the code deployed, it wasn't worked on as a priority. :)14:08
jamvila, james_w: So if we feel there is a reasonable recovery step (snapshot the dbs first, know exactly what to roll back to), it feels like we can at least start to get forward momentum. And if we can get things moving, then we can *improve* stuff.14:09
jamjelmer_: are you still doing up-merges?14:11
james_wvila, what bd operations does the push do?14:11
james_wdb14:11
jelmer_jam: nope, I'm done14:11
james_wit won't test things like filing merge proposals, or the push code14:11
jamjelmer_: how are the lp branches coming?14:11
james_wand makes the bookeeping a bit off14:11
james_wis that an issue?14:11
vilajames_w: I thought the revids were recorded after pushing ? (That's a gut feeling not from reading the code)14:12
jelmer_jam: I was struggling with some tests yesterday, am currently reviewing14:13
jamjelmer_: as in doing reviews for others? Or getting the branches reviewe14:13
jamd?14:13
james_wvila, ah yes, sorry, I was reading the wrong bit14:13
vilajames_w: at least when I test locally, doing the same import without pushing seems to redo the same steps14:13
james_wyeah14:13
james_wI see what jam means about thrashing now14:14
james_wjam, indeed, I hadn't done the fixes because it wasn't clear what the plan was14:14
jelmer_jam: reviewing for others14:14
james_wjam, they are just a couple of hours work though14:14
jamanyway, I'm at EOD (have to go take my son to swimming), but I'd like us to hash out a quick 'next steps' and see what can get the ball moving again.14:18
james_wI'll followup on the mailing list14:26
=== zyga-food is now known as zyga
=== jordan_ is now known as jordan
=== deryck is now known as deryck[lunch]
=== deryck[lunch] is now known as deryck
LeoNerdFSCKING REBASE!18:26
LeoNerdCan anyone tell me why I have to 'bzr unbind' before it'll actually work? I hate having to do this18:26
LeoNerdOtherwise it immediately claims that bzr: ERROR: Bound branch BzrBranch6(file:///home/leo/src/perl/IO-Async.TASKS/) is out of date with master branch RemoteBranch(bzr+ssh://cel/var/bzr/leo/perl/IO-Async.TASKS/).18:27
jelmer_LeoNerd: why would you want to use rebase with a checkout?18:30
LeoNerdBecause I never do anything that isn't in a checkout18:30
LeoNerdI don't trust my ability not to lose my laptop or crash its disk, so everything is backed up on my server18:30
LeoNerdCurrently I  bzr unbind;  bzr rebase ..... bzr bind :bound; bzr push --overwrite :bound18:31
jelmer_LeoNerd: generally you would make a checkout of the master branch18:38
jelmer_LeoNerd: and it's pretty uncommon to rewrite branches in the main project branch18:38
LeoNerdHrm? It's not the main branch. It's a feature branch18:39
jelmer_anyway, what you're trying to do isn't really wrong but it's not very common either18:39
LeoNerdI rebase it after every main release18:39
=== zyga is now known as zyga-afk
CodeNinjaSDDoes bazaar support E-mail messages to one or more addresses should be generated when a change is committed. Format of e-mail may change (e.g., doc committer committing to src tree)18:56
CodeNinjaSDWhat about sthe ability to attach searchable/annotated tags, other than revision number to code artifacts19:00
gour /c19:03
psusiI have noticed that I made a slight error a few commits back.  With git, I would fix the error, commit it, then rebase -i to sqash that commit back into the previous one.  How can I do this with bzr?19:16
psusior maybe pop the last few commits off the branch into patch files, fix the errored commit, then reapply the patches19:16

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