/srv/irclogs.ubuntu.com/2012/04/28/#bzr.txt

=== r0bby is now known as robbyoconnor
nilg`hi is there a way to rebase afterwards?06:31
nilg`a guy has a done a merge and the revision numbers are messed up we want to backtrack that and do a rebase instead, is there any simple way to do that (cause in the mean time other people have committed stuff)06:34
nilg`OK, I think I've found a way to fix that but I would need a "cherrypick" rebase functionality, does that exist?07:29
LarstiQnilg`: there is the rewrite plugin which has rebase, or you can use cherrypick with merge09:16
LarstiQnilg`: but it sounds simpler09:17
LarstiQnilg`: did he merge trunk into a feature branch, and then push that branch on top of trunk?09:17
LarstiQnilg`: also see 'append_revisions_only' in `bzr help config` for preventing exactly that case, if I'm right09:19
LarstiQnilg`: for now you could `bzr uncommit` the merge revision, merge feature into trunk instead of the other way around, and push that09:20
* maxb attempts to stop the jubany udd importer importing the same packages many times over, so it can actually catch up with quantal opening this weekend09:27
iriThis bug is causing significant issues and doesn't seem to have anyone assigned to it: https://bugs.launchpad.net/bzr/+bug/54162610:37
ubot5Ubuntu bug 541626 in Bazaar "'BTreeBuilder' object has no attribute '_find_ancestors'" [High,Confirmed]10:37
iriIt's been around since 2010 - how to get it some attention?10:37
* iri gently pings jelmer10:38
=== yofel_ is now known as yofel
jelmeriri: hi11:10
irihi jelmer. I'm going to appear and disappear a bit over the few hours. If there is any way I can help crack the bug, let me know. I'm good with python but not a bzr user unfortunately.11:32
LarstiQiri: https://bugs.launchpad.net/bzr/+bug/541626/comments/24 and comment 25 seem the most relevant to me13:45
ubot5Ubuntu bug 541626 in Bazaar "'BTreeBuilder' object has no attribute '_find_ancestors'" [High,Confirmed]13:45
irihi LarstiQ13:45
iriSo I'm not sure I understand the implications13:45
iriIs there a reasonable fix?13:46
iriImplement BTreeBuilder._find_ancestors() to return get_parent_map()?13:46
LarstiQiri: implementing the same api in my reading13:47
LarstiQiri: that's a start :)13:47
LarstiQthere is bzrlib.btree_index.BTreeGraphIndex._find_ancestors13:47
LarstiQand bzrlib.index.GraphIndex._find_ancestors13:48
* LarstiQ compares13:48
LarstiQright, they should have the same interface13:48
LarstiQBTreeBuilder also seems to live in bbzrlib.btree_index13:50
iriJust setting up the trunk version ow13:50
iris/ow/now/13:50
LarstiQiri: mind you, I don't really know the bug or what to do about it, but I'm a bit familiar with the bzr codebase13:50
iriI'm just frustrated because it's preventing me from working with git13:51
* LarstiQ nods13:51
LarstiQtests live in bzrlib/tests/test_{btree_,}index.py13:51
iriI don't understand enough about what has gone wrong to write a test for it13:54
iriI can provide access to the broken repository if needed13:54
iribzr trunk won't install into a virtualenv? :-s13:55
irioh, seems that just pip was having trouble with it "python setup.py install" worked13:56
LarstiQiri: no idea, but I run it from source13:56
LarstiQjelmer: can you reproduce bug 541626 already?13:57
ubot5Launchpad bug 541626 in Bazaar "'BTreeBuilder' object has no attribute '_find_ancestors'" [High,Confirmed] https://launchpad.net/bugs/54162613:57
LarstiQiri: I'm going to try the recipe in https://github.com/termie/git-bzr-ng/issues/3813:57
irithanks :-)13:57
* LarstiQ keeps running into hurdles14:06
LarstiQiri: hmrf, ../codex doesn't exist14:11
=== sideffect is now known as sideffect_
LarstiQso that github issue in fact does not contain enough to reproduce :/14:12
iriI guess it is a branch?14:12
iriit looks like github screwed up the formatting of the post14:13
=== sideffect_ is now known as sideffect
iriI don't think where the pull is from is important14:17
LarstiQiri: I'm a git novice so I have trouble guessing at what to do14:18
* LarstiQ runs down to change the laundry14:18
irik14:19
iriI'll try and reproduce14:19
* LarstiQ tries termies test2.sh14:28
iriI can't seem to reproduce with a clean repository, but I can with the one in the git issue14:29
iriIt seems sufficient once you have the git repository to "echo >> test; git add test; git commit -am "update"; git bzr push"14:29
iriuh, where push is to some repository you created14:29
iriI did git bzr push lp:my.username/+junk/test14:30
iriah, got it with a minimal repository14:30
iriweird,14:35
irican't do it now14:35
LarstiQiri: yeah, "echo >> test; git add test; git commit -am "update"; git bzr push lp:~/+junk/test" worked fine for me14:37
irigot it14:39
irihttp://pastebin.com/KCYs8JDL14:40
iriThat reproduced it twice14:40
iriit might be more than necessary14:40
iriThis was the minimum I was able to reproduce with : http://pastebin.com/WeJXKQgG14:46
iriLarstiQ: I commented on https://github.com/termie/git-bzr-ng/issues/38 with a complete script to reproduce14:52
LarstiQiri: cheers! _now_ it blows up :)15:03
* LarstiQ has dinner and will then followup15:03
irigreat, thanks :D15:04
LarstiQhey beuno15:59
LarstiQiri: I updated bug 541626, having a stab at _find_ancestors16:02
ubot5Launchpad bug 541626 in Bazaar "'BTreeBuilder' object has no attribute '_find_ancestors'" [High,Confirmed] https://launchpad.net/bugs/54162616:02
* iri peek16:03
iris16:03
iri:-)16:03
beunoheya LarstiQ!16:04
LarstiQiri: hmm, BTreeBuilder has a find_ancestry(), and BTreeGraphIndex's _find_ancestors docstring mentions: 'It is unlikely that you want to call this directly. See "CombinedGraphIndex.find_ancestry()" for a more appropriate API.'16:08
LarstiQiri: so perhaps something is using the wrong api there16:08
LarstiQbeuno: :)16:08
* LarstiQ looks at the backtrace again16:09
iriinteresting16:09
LarstiQwhich in fact terminates inside find_ancestry(), hmm16:11
jelmerhi iri, LarstiQ16:39
irihi16:39
LarstiQnavond jelmer16:40
LarstiQjelmer: I have a pdb session where this thing goes wrong. It tries index._find_ancestors which results in the AttributeError, so far so good16:41
LarstiQjelmer: but index comes from index_idx, index = enumerate(self._indices) and self._indices only contains BTreeGraphIndexs16:42
* LarstiQ blinks16:42
vorkHas somebody been writing a __setattr__ method? :(16:43
LarstiQvork: in the lazy_import machinery, but I wouldn't expect that here16:46
vork(I meant __getattr__).16:47
LarstiQvork: hmm, versionedfile maybe16:48
LarstiQvork: print style debugging seems to indicate self._indices gets mutated while we loop over it.17:05
jelmeriri: I'm no longer working on that bug, it only seems to affect fastexport as far as I can tell.17:11
iriLooks like LarstiQ is having a good crack at it17:11
LarstiQjelmer: and through it things that depend on it, like git-bzr-ng17:11
iriI was just wanting to raise some interest in it17:11
iriAnd you were the last person to be assigned to it, so I wanted to know why it had been left alone17:11
LarstiQiri: I'll have to go back to my studies soon, but I'll try to get to a point where someone else could pick it up (or me somewhere in the future)17:12
jelmeriri: mostly just lack of time, and the fact that it only affected bzr-fastexport17:12
iriThanks LarstiQ17:12
LarstiQjelmer: I'm currently trying to find out why a BTreeBuilder gets inserted in the list of indices at all17:13
LarstiQjelmer: any ideas how that could happen?17:14
jelmerLarstiQ: IIRC because we're writing to a new pack?17:15
LarstiQjelmer: ah hmm. How do I see if that is going on?17:15
jelmerLarstiQ: sorry, no idea. I never did much with the lower layers of the code17:16
LarstiQjelmer: np17:16
LarstiQwell17:16
LarstiQback to that _find_ancestors implementation then17:17
iriLarstiQ: I have to run, thanks for your help!17:55
LarstiQdoh17:57
* LarstiQ just pushed up lp:~larstiq/bzr/bug54162617:57
vorkLarstiQ: Fixed it?17:58
LarstiQvork: fsvo "fixed"17:58
vorkfsvo=?17:58
LarstiQvork: the script that crashes no longer does17:58
LarstiQvork: "for some value of"17:58
vorkOh, for some v...yeah, just worked it out.17:58
LarstiQvork: the implementation is more correct than the previous suggestion I think17:59
LarstiQvork: but I don't really know what I'm doing18:00
LarstiQvork: you're welcome to try and see if anything goes horribly wrong ;)18:00
LarstiQjelmer: pushing to launchpad from a development-colo branch doesn't work, is there a workaround that doesn't involve first pushing to a 2a branch?18:02
LarstiQjelmer: and, should I file a bug on that or does that come down to "it's a development format, wontfix"?18:02
jelmerLarstiQ: thre's no longer any reason to use development-colo, it's been merged into 2a18:08
LarstiQreally?18:08
LarstiQI missed that happening :)18:08
jelmerLarstiQ: I would indeed say it's a development format so we shouldn't allow it on launchpad18:09
jelmerLarstiQ: yep, that happened before 2.5.018:09
jelmerLarstiQ: the only difference between those two formats is their format strin g:)18:09
LarstiQjelmer: yeah, the friction in my mind came from considering pushing one branch as, well, being one branch18:09
LarstiQjelmer: I remember the discussion at the time18:09
* LarstiQ upgraded his bzr.dev copy to 2a ;)18:10
jelmerLarstiQ: we don't really support colocated branches on lp yet, at least it doesn't display them18:10
* LarstiQ nods18:10
LarstiQjelmer: I didn't want repo-push, just push. If that makes sense.18:10
jelmerLarstiQ: push only pushes the active branch18:11
LarstiQjelmer: yeah18:13
* LarstiQ calls it a day and goes back to math18:13
LarstiQjam: I'll try to bug you somewhere during the week for some guidance18:14
jelmerLarstiQ: ttyl18:14
LarstiQjelmer: hf18:14
jelmerhf?18:14
jelmerhigh five?18:14
LarstiQjelmer: have fun :)18:15
jelmeraha :)18:15
jelmeryou too :)18:15
nilg`thanks a lot LarstiQ18:33
wilxSo, I have a trunk branch and 1.1.x branch from the trunk.20:46
wilxI am usually merging from the trunk to the 1.1.x branch.20:48
wilxBut I have also now made some changes on 1.1.x and I would like to have them on trunk as well.20:49
wilxNow, do I cherry pick/apply diff from 1.1.x revision to trunk or should I just merge from 1.1.x to trunk?20:49
wilxIs there any danger in doing it both ways?20:49
mgrandiso you are merging trunk to 1.1.x?20:50
wilxUsually.20:51
mgrandiso20:51
wilxBut now I want to also do it the other way around.20:51
mgrandiyou can 'shelve' the changes in the 1.1.x branch20:51
mgrandimerge trunk -> 1.1.x20:51
mgrandiand then unshelve the changes, and then merge them again20:51
wilxUhm, no. There are tens of revisions on 1.1.x from the branch point.20:51
mgrandioh20:52
mgrandiso they are commited?20:52
mgrandithen the merge will just take care of that20:52
wilxBasically, is merging between two branches both ways anyhow dangerous?20:52
fullermdIt's not dangerous _technically_.  But it's probably not what you want, unless you intend both branches to converge to the same contents.20:52
wilxWell, I have branched for 1.1.x release too early. I tried to be disciplined and make any necessary changes first on trunk and then merging them to 1.1.x. Unfortunately, I was not so disciplined all the time so I need some 1.1.x changes on trunk as well.20:54
vorkWell it should be fine, bzr's supposed to adapt to your workflow, right?20:57
fullermdIf you want trunk to have everything 1.1.x has, merging 1.1.x->trunk will work fine.  If not, it's not such a great idea.20:58
fullermdEspecially if you're doing trunk->1.1.x merges too.20:59
wilxYes, at this point I do need all of that.20:59
fullermdYou want all the changes?  In that case, there's no question; just merge.21:00
fullermdIt sounds from your description almost like you're working toward 1.1.x on trunk, in which case having a separate branch seems a little unnecessary.21:00
fullermdThe usual case is more that you make 1.1.x, and then trunk goes on with changes you won't want 'till 1.2.x or 2.0.x (or 11.x, if you're Sun)21:01
wilxOk, merge it is.21:02

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