/srv/irclogs.ubuntu.com/2010/02/14/#bzr.txt

wkharoldtest00:30
josh_kis it possible to bzr branch a subdirectory of a project?00:45
Pengjosh_k: Not really.00:54
josh_kPeng yeah00:54
josh_kfiguring out I need to make separate branches00:55
=== maxb changed the topic of #bzr to: Bazaar version control | try https://answers.launchpad.net/bzr for more help | http://irclogs.ubuntu.com/ | Patch pilot: vila | bzr 2.1.0rc2 and 2.0.4 have gone gold
maxbHas a date been set for 2.1.0 final?01:04
=== khmarbaise_ is now known as khmarbaise
fbondTEST03:37
fbondDisregard, etc.03:37
vishguys the latest bzr update broke dependencies for bzr-gtk10:49
Pengbzr update where? The PPA?10:50
Peng(Not that I can help, but I'm curious, at least.)10:50
vish"bzr-gtk: Depends: bzr (< 2.1~) but 2.1.0~rc2-1 is installed."10:51
vishPeng: there is a ppa?10:51
Penghttps://launchpad.net/~bzr/+archive/ppa and a couple others (~bzr-beta-ppa and a nightly one), but you shouldn't expect the dependencies to be perfect there, either.10:52
vishhmm , there is no bzr-gtk for Lucid :(   bzr update was uploaded by james_w or maxb ..10:54
maxbHuh? I don't have access to bzr PPAs11:08
vishmaxb: nah , the Lucid update , it mentioned your name :)11:09
maxbum, really!?11:10
vishmaxb: i think it was wrt something about untangling the bzr-tools11:10
maxbThat was bzr-builddeb11:11
vishah right ...11:11
vishmaybe the bzr-gtk needs to bump dependencies11:11
vishanyone know how to force a package to install?11:12
vishignore dependencies rather11:12
maxbIt's not worth it, you'll end up with a permanently upset apt until you fix the dependency issue11:12
vishmaxb: yeah , i wanted to mainly check if the -gtk worked with the new bzr [or i'm just being plain crazy ;)  ]11:13
vishit was just an idea :)11:14
maxbJust bzr branch it into ~/.bazaar/plugins/, much easier11:14
vishah.. will give it a try11:16
geserHello, is the fix for bug #515597 supposed to be included in the bzr package in lucid (2.1.0~rc2-1)?11:31
ubottuLaunchpad bug 515597 in bzr "TypeError: merge_text() takes exactly 2 arguments (3 given)" [Critical,Fix released] https://launchpad.net/bugs/51559711:31
spivgeser: I'd guess no11:36
spivgeser: it was fixed just after 2.1.0rc2 in upstream according to the NEWS file11:36
geserspiv: how to proceed? wait for the next rc or apply the change on the package in lucid?11:40
maxbSurely 2.1.0 final is due any day now?11:41
spivgeser: not sure11:58
spivgeser: on one hand as maxb says probably the next release will happen soon (although I don't remember the exact schedule)11:59
spivgeser: but if you wanted to make a 2.1.0~rc2+r4812 or something in the meantime, I don't see any harm12:01
spivgeser: (in addition to the fix for #515597, there are a few other fixes, of which #513432 is probably also pretty important)12:02
geserspiv: I don't know how much that bug affects the bzr usage but there is already a bug filed about the bzr package in lucid: bug #52154612:04
ubottuLaunchpad bug 521546 in bzr "TypeError: merge_text() takes exactly 2 arguments (3 given)" [Undecided,New] https://launchpad.net/bugs/52154612:04
spivgeser: I haven't looked closely, but probably only affects custom merge hooks12:09
spivgeser: i.e. the 'news_merge' plugin that's now distributed with bzr (but not enabled by default), and the merge hook in bzr-builddeb for debian/changelog files12:09
spivgeser: that latter case is going to hit ubuntu devs pretty hard though12:09
riochI'm about to create my first release in a project. Should I branch my code?14:20
mathrickrioch: that's not a bad idea, but at least tagging would be good14:42
mathricksomething to identify unambiguously the revision you released14:42
mathrickbranching depends on whether you intend to support the release further, or only make new releases14:43
riochmathrick: well the way I see it is, I might want to fix a serious bug, without disrupting new development14:45
riochand im not sure of the difference between a tag and a branch14:45
mathricktag is jus a descriptive label attached to a particular revision14:46
mathrickso you can go back to it later and know precisely where you released14:46
mathricka branch is, well, a branch, a separate line of history14:46
mathrickit's possible to tag now, with the expectation you might not need anything else, and branch only when you actually need to fix something14:47
mathrickif you tag, you won't have any problems going back to that point later on14:47
riochmathrick: ok. so is that possible using launchpad?14:48
mathricktagging? Sure, lpad only keeps your history, and understands tags too14:49
mathrickrioch: bzr help tag14:49
mathrickthen push14:49
mathrickif you ever need to go back and branch, bzr branch -r tag:RELEASE_1_0 ~/project14:50
mathrickthen you push it again to launchpad and have a new branch exactly at the point you released 1.014:50
riochthat would mean I always develop in the trunk branch, tag my releases, and then if I need to bugfix a release, I grab the related tag and create a branch out of it.14:52
riochdoes that seem sensible/correct?14:52
mathrickyes, that's exactly what I proposed14:52
riochit seems good to me :)14:52
mathrickrioch: you can mix it freely, too. For instance, pre-2.0 developer releases will only need tags, because you don't intend to support them. So you tag 1.9a1, 1.9a2, 1.9b1, 1.9rc etc, then once you have released and tagged 2.0, you can branch it because it's gonna be more persistent14:52
riochso you mean branch and tag major releases?14:53
mathrickor something, whatever fits your project14:53
mathrickas long as you have them tagged, you can always go back14:53
mathrickthe problem with DVCS isn't branching, it's accurately recreating the chronological order of events14:54
mathrickand that's what tags help with14:54
riochSo tagging is important. Got it. :)14:54
mathrickyeah, if you make formal releases, then you really want to tag14:55
riochI was thinking of having a branch for each major release, and what you mentioned about tagging pre-releases seems like a smart idea, but it seems that I'd end up with a lot of branches which wouldn't be used.14:55
mathrickit's pretty embarassing to go back to a release two months later and be unable to identify which revision you released it from14:55
mathrickrioch: that's why you only tag them. Tags by themselves don't do anything, they just stick to a revision and can be read14:56
mathrickso you keep your history linear when possible, and only go back and branch to releases you actually need to support14:56
mathrickprereleases are obviously not supposed to be supported, so nothing more is needed14:57
riochI think I will do that. I suppose the confusion for me is trying to align it with launchpad. I want to release a beta version, but there is no separate branch for it, so I tag it...14:57
mathrickyes, and launchpad understands tags, so it'll show you that they exist14:58
riochSo at the moment, I've set a milestone to released and uploaded the files for download. Now I can just go and tag it and it's done?14:58
mathrickyup14:58
mathrickjust push to lpad afterwards to have it receive the tag you created14:58
riochhere goes :s14:59
riochHow can I check if it worked? bzr said: no new revisions to push.15:01
mathrickrioch: bzr log lpad:myproject15:03
mathrickit should have Tags: RELEASE_1_0 or whatever you called it next to the revision you tagged15:03
riochhmmm nothing there15:05
riochAll I did was bzr tag pumped-0.1 and then bzr push lp:pumped15:05
riochwas that correct?15:05
mathrickyes15:07
riochif I do bzr tags, I can see it listed for revision 17 (latest revision)15:07
riochlet me see if I can get the tag15:07
mathrick------------------------------------------------------------15:07
mathrickrevno: 1715:07
mathricktags: pumped-0.115:07
mathrickcommitter: Jon Black (jon@pumped.nl)15:07
mathrickbranch nick: pumped15:07
mathricktimestamp: Sun 2010-02-14 13:10:12 +010015:07
mathrickmessage:15:07
mathrick  fixed setup.py to copy glade files15:07
mathrickoops, sorry for pasting15:07
mathrickstill15:07
mathrickrioch: it's usually a good idea to make a commit just for the release, stating that in the commit message, and attach the tag to it15:08
mathrickit's a bit easier to read this way15:08
riochyeah, I think I'll do that next time.15:08
riochbut it worked, so I'm happy.15:08
riochThis means I can carry on coding and always get that version back from bzr, and if I need to, create a branch from it?15:09
mathrickyup15:09
riochgreat. thank you so much for helping.15:11
mathrickyou're welcome15:11
riochanother question, more launchpad related. Can two series point to the same branch?15:14
mathrickno idea15:15
mathrickrioch: oh, and regarding the workflow, if you find yourself going back and branching more than you expected, you might want to reverse the workflow and start branching eagerly, and then splitting clearly bufgixing work from development15:17
mathrickwith bugfixing happening on release branches and then being backported to trunk15:17
mathrickthis way you'll avoid headaches when you commit a bugfix to trunk, and then can't pull it to release branch because it doesn't have the preceding commit15:18
mathrickin fact, doing bugfixes on branches first is a good idea in general for precisely this reason15:18
riochmeaning I should always branch first before fixing15:19
riochI think I will only ever need to branch when the bug is so important that it can't wait for the next release.15:19
riochI don't expect that to be very often.15:20
mathrickyes, and work on the branch first. So if you find a bug in pumped-0.1, you go: bzr branch -r tag:pumped-0.1, then go to the branch, fix it there, and only then merge trunk with the branch15:20
mathrickrioch: fair enough15:20
mathrickjust remember doing it in this order will give you cleaner merges without the need for cherrypicking15:20
riochwhen you say "go to the branch", you mean the newly created branch for that bug fix15:21
mathrickwell, newly created branch for pumped-0.115:21
riochyeah15:21
mathrickif you find another one, you don't need to branch again, you just fix it there15:21
mathrickand backport (well, forward-port) to trunk again15:21
riochI'm not looking forward to doing this in practice :)15:21
riochI think I'll save this chat for reference. lol.15:21
mathricknah, it's pretty trivial once you have a clear mental picture of how it works15:22
mathrickit's just understanding how the history graphs behave15:22
mathrickbzr operates on tree states as the fundamental items, so all patches necessarily depend on everything before them15:23
mathrickdarcs for instance doesn't, having patches as the fundamental unit, so there branches just happen incidentally and you'll usually be able to move an unrelated bugfix easily if it didn't touch the parts that have changed15:23
mathrickbut darcs has a horrible UI15:24
riochgetting that mental picture is the part that makes me nervous.15:26
mathrickbtw, bzr people here: how difficult would it be to create something similar on top of bzr? http://github.com/droundy/iolaus15:26
mathrickrioch: it's just practice15:26
=== radoe_ is now known as radoe
gerard_praise to everyone who made bzr-svn possible19:24
gerard_it's wonderful! :)19:24
goundygerard_, lol you're right I remember when I used it. it's so greate :°)19:30
jelmergerard_: Thanks!19:40
gerard_jelmer: you're the (main) author right?19:41
gerard_really great that I could just get trunk from the launchpad mirror and then only download the extra revisions for another branch19:42
gerard_it works much much better than git-svn19:42
gerard_the fact that I can just push to svn... mmmm... :)19:43
mtaylorbzr seems to think that one of my files is a binary file... is there a way to convince it otherwise?20:21
gerard_mtaylor: remove the NUL char?20:22
mtaylorgerard_: hrm...20:22
maxbbzr-svn is great, it's true. Though it suffers rather, speed-wise, when pointed at a 380k revision svn repository20:42
gerard_maxb: yeah, but I think we can blame that on svn20:44
maxbMy cache.tdb alone is 250MB20:44
maxbmm... it would be nice if bzr-svn could ignore the revisions not related to the project I'm operating on20:44
=== poolie changed the topic of #bzr to: Bazaar version control | try https://answers.launchpad.net/bzr for more help | http://irclogs.ubuntu.com/ | Patch pilot: poolie | bzr 2.1.0final rsn
lifelesstechnical term ?21:06
=== lifeless changed the topic of #bzr to: Bazaar version control | try https://answers.launchpad.net/bzr for more help | http://irclogs.ubuntu.com/ | Patch pilot: poolie | bzr 2.1.0final releasing soon!
dutchieis there a merge algorithm that just uses the one from the tree being merged?21:16
=== davidstrauss_ is now known as davidstrauss
lifelessdutchie: you could write a per-file hook in 2.1 to do that on selected file (or all files if you want... )21:19
mwhudsonjelmer: ping21:19
dutchielifeless: hmm, don't think it's quite work it, when I can just move the .OTHER file on top of it21:20
dutchiejust wondered if there was an easy built in way21:21
lifelessyes21:22
pooliedutchie: vila is likely to add that in his resolve work21:22
lifelessyou can write a per-file merge hook in bzr 2.1 :)21:22
pooliei don't think it's landed yet21:22
poolie"easy" means something different for lifeless21:22
poolie:)21:22
dutchieI can't be bothered faffing about updating to a non-distro version when I can do it in one line with find21:22
lifelesspoolie: I think dutchie means 'discard local changes always' not 'discard on conflicts'21:23
lifelessdutchie: do you mean that ?21:23
dutchieis there a difference?21:23
lifelessdutchie: a huge one21:23
dutchieah yes, so there is21:23
poolieif you mean that then you should say21:23
poolie'bzr revert -rbranch:../otherthing .'21:23
* dutchie ponders21:23
poolieafter doing the merge, before committing21:23
dutchieI think I want a true merge, but discard local on conflicts21:25
maxbThat seems an odd thing to want.21:29
maxbEither the local changes are valuable or they are not.21:29
lifelessI think we need a new hook to satisfy that really nicely21:30
dutchieI'm merging in translations from launchpad; most of them come from the remote branch I'm merging in, but some are done to the branch directly in the mainline21:37
dutchieI can't really resolve conflicts manually, as I don't know what the words actually mean21:38
dutchieso I'm just using the translation from LP21:38
lifelessand having poke at it it willbe a little complex to do nicely21:39
lifelessconflicts aren't trivially accessible mid-flight, and the built in merge doesn't use the generic conflict return value.21:39
lifelessthats something we can improve though21:40
thrasholdCan anyone suggest a standard .bzrignore for autoconf projects that I can use as a basis for mine?22:32
lifelessthere should be a decent on in lp:libcpuinfo22:32
thrasholdThank you very much22:33
malibuI'm wondering if someone can help me out... Something has gone horribly wrong with my bzr working copy... I get a memory error when I commit it and it's stuck23:06
malibuare there any commands I can do to kind of clear it out?23:06
PengYou get a MemoryError? Do you have any extremely large files? Or a ton of files?23:08
PengOr are you on SunOS?23:08
mwhudsonjames_w: wow that email about branch formats DoSes thunderbird quite effectively23:08
james_wnice23:08
PengEek, what email? I use Thunderbird.23:09
mathrickhow difficult would it be to create something similar on top of bzr? http://github.com/droundy/iolaus23:09
fullermdPeng: Only if you're on SunOS   :p23:09
mwhudsonPeng: on the udd list23:09
mathrickthis being darcs-on-git23:09
lifelessmathrick: what bzr version23:10
lifelessPeng: its on udd23:10
mathricklifeless: did you mean malibu?23:11
lifelessmathrick: I did, sorry.23:11
lifelessand to answer the question, fairly easy23:11
lifelessmalibu: what bzr version23:11
mathrickand would that have a chance of working properly with everything else built with bzr?23:12
lifelesssure, I mean it depends on what you do ;)23:13
lifelesslooms for example work very well with everything else, and they provide a custom branch format- they are a deepish extension to map packaging into bzr23:13
lifelessbbs23:13
malibuPeng, Define extremely large.. Largest file is about 120Mb23:16
malibubzr 2.0.123:17
Pengmalibu: It's not surprising that bzr would use several hundred MB of RAM, then.23:17
malibuPeng, really.. that sucks23:18
lifelessmalibu: git., hg, bzr - they all do this23:18
lifeless2-3 copies of the file in memory is needed to do diff/merge/etc23:19
malibuYeah I went with bzr because I need lightweight23:19
lifelessmalibu: just saying, its a limitation all the current open source DVCS tools have23:19
maliburight, I understand.23:19
malibuI'm just looking to do a dropbox kind of thing without dropbox23:20
malibuAnd bzr seems to be the only one that has a minimal local working copy size23:20
malibu*sigh* I guess I will look for something else23:21
mathricklifeless: that sounds very nice. Honestly the incidental branches are the only thing I miss from darcs23:23
mathrickas I already have interactive commits23:23
mathricklifeless: oh, and does "depends on what you do" also include log viewers not going bonkers when you do that? :)23:24
bob2malibu: tahoe-lafs is a lot more like dropbox than a dvcs is23:28
pooliemalibu, or you could use unison23:55
malibuI was just looking at a page on unison actually23:58
malibuI was leaning towards just using rsync + a lightweight incremental backup tool23:58
malibuWhich maybe is kind of what unison is23:59
malibubob2: tahoe-lafs.. I will look that up23:59
malibubob2: Ick.. my whole intention is to avoid 'the cloud'23:59

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