/srv/irclogs.ubuntu.com/2009/06/13/#bzr.txt

lifelessjelmer: ping00:17
lifelessjelmer: whats a good, small, example of using tdb from C?00:17
dashHmm00:18
lifelessmmmm00:18
lifelessbacon!00:18
lifelessSo dash, whats your bacon number?00:18
dashI just merged from trunk into my feature branch and now it wants to undo all the changes I made00:18
dashmaybe not all, but enough for me to feel like I did something wrong00:18
dashshould I remerge? should I merge from my feature branch into a copy of the mainline?00:19
lifelessdash: the merge command undid your changes?00:19
Peng_1.) What command did you run? 2.) You're not using anything weird like bzr-svn, are you?00:19
dashyes, bzr-svn =/00:19
dashoh, you know what00:19
lifelessPeng_: I bet its a backout merge from trunk; but we should track it down00:19
dashyeah this is probably my fault00:20
lifelessdash: was it the merge command that undid your changes?00:20
dashso I did "bzr merge http://svn-server/..../"00:20
jelmerlifeless: I think tdbdump might be a good example00:20
lifelessjelmer: point me at the src?00:21
dash'bzr diff' now shows a diff that will remove a bunch of my changes00:21
lifelessdash: ok.00:21
jelmerlifeless: apt-get source tdb && $VISUAL tdb-*/tools/tdbdump.c00:21
lifelessdash: next question. Had you on trunk, *or on a branch merged into trunk* undone those same changes00:21
dashyes00:22
lifelessdash: then bzr is correctly propogating those undoes.00:22
jelmerlifeless: and tdbtool for an example of writes00:22
dashyeah, i figured00:22
dashhence saying it was my fault :)00:22
lifelessdash: :)00:22
lifelessdash: just being sure00:22
lifelessdash: you should just reject the undo here.00:23
dashi checked this code into svn, then later reverted it00:23
dashlifeless: right00:23
lifelessI loves it when tools DTRT00:23
dashi love it when they don't surprise me :)00:23
dashi guess i should do the merge in 2 stages then00:23
dashone to reject the rollback done earlier00:23
dashand one to pull in the rest of the changes00:24
lifelessdash: no, you should merge, reject, commit00:24
lifelessone step00:24
lifelessdash: that will mean that the next merge from this branch to trunk will reinstate these changes00:24
dashhm! ok00:24
lifelessand [correctly] show that you wanted them present on this branch at every point.00:24
* dash makes a copy of his branch to make sure he didn't misunderstand :)00:29
dashlifeless: the difficulty is that the mainline contains changes I _do_ want00:33
lifelessdash: thats fine00:33
lifelessdash: the way you reject could be to use 'bzr shelve'00:33
dashtrue.00:33
lifelessdash: another way to reject is00:39
lifelessbzr merge -r [revert-in-trunk]..[revert-in-trunk-1] $trunk00:40
lifelessoh00:40
lifelessbzr merge -r [revert-in-trunk]..[revert-in-trunk-1] $trunk --force00:40
lifeless(because you already have a merge in your tree)00:40
dashthat's what i meant by doing it in two steps00:42
lifelessdash: with only one commit00:42
lifeless?00:42
dashoh, didn't know you could do multiple merges with a single commit.00:42
lifelessso00:42
lifelessspecifically00:42
lifeless1) merge trunk00:42
lifeless2) merge -r X..X-1 trunk --force00:42
lifeless3) commit00:43
lifelessso 2) == reject00:43
dashhah.00:43
dasheven nicer than what i was trying to do.00:43
dashthat makes more sense too00:43
dashokay! other than having to resolve the same conflicts twice, that seems to have done the job01:03
dashlifeless: thanks for the help.01:03
lifelessdash: odd that you had to resolve any conflicts01:03
lifelessdash: but I'm glad you are happy01:03
dashyeah well, i should just know better than to check stuff in and revert it like that. :)01:04
johnfcould someone please try out 1.16rc1 packages I just buit in the bzr-beta-ppa. I've split out the docs into a -doc package. Need someone to make sure that the upgrade is smooth04:36
GPHemsleyjelmer: Are you around?04:38
=== `6og is now known as kgoetz
wgrantjohnf: It seems you accidentally clobbered the Jaunty 1.16rc1 in bzr-beta-ppa with the third Dapper attempt. You also don't have the luxury of python-support or python-central on Dapper, so I wouldn't even try backporting bzr to it...08:37
johnfwgrant: there were already dapper packages but they don't seem to want to build after I split out bzr-doc. I think I'll just revert all the changes for it and it can just have one package08:39
wgrantjohnf: Ah, there is indeed a prehistoric python-support in dapper universe that isn't used for anything. Oops.08:42
johnfand I've royally mucked up the version numbers. I should have been changing ~bazaar not the rc :(08:44
wgrantjohnf: You didn't do too badly - you just incremented the Debian revision, not the RC number.08:45
johnfahh I did do the right thing. Well close enough anyway08:45
wgrant~bazaar[23] would be correct, but what you did isn't world-burning.08:46
LarstiQjohnf: och, you didn't muck up like me introducing a wrong version (-bazaar instead of ~bazaar) that ranks higher than all debian versions we'd want to use08:57
johnfwgrant: so when would you up -[23]? That is something I've never been quite clear on08:59
wgrantjohnf: The first number after the last - is the Debian version.09:00
wgrantAs in Debian the distribution, not Debian the package format.09:00
wgrantDebian's first 1.16 version would be 1.16-1.09:00
wgrantIf they make a change, 1.16-2.09:00
wgrantWhen Ubuntu makes a change to a package, we append 'ubuntu1'. The 1 there is the ubuntu version - we'll increment that as we make subsequent changes.09:01
johnfwhat about in the case where it is say a native ubuntu package do you still always leave at -1 in case it makes it intu debian?09:01
wgrantWe'll use -0ubuntu109:01
johnfahh ok makes sense09:01
wgrantThat way when it makes it into Debian, it'll be -1, and -1 > -0ubuntu109:01
wgrantSo upgrades will work when -1 is synced into Ubuntu.09:02
johnfok new packages should be syncing shortly09:02
wgrantHave you test-built the Dapper on locally?09:03
wgrants/on/one/09:03
wgrantYou can reasonably drop Dapper packages in a couple of weeks, too (Dapper loses desktop support RSN)09:04
LarstiQwgrant: ah, I've been looking forward to that09:06
fullermdMmm.  These DeprecationWarning's on py2.6 are gonna get real old real fast...09:27
=== Kissaki^0ff is now known as Kissaki
wgrantfullermd: In bzr, or in general?09:35
fullermdWell, from pycrypto technically, but since I see it running bzr...09:35
pthulinis there a way to merge one project into another? I have two python projects, and now I want them to be the same without loosing history09:36
wgrantfullermd: That's fixed in Jaunty and Karmic, at least.09:36
fullermdNeither of which is much help to people who run neither Jaunty, Karmic, Ubuntu, or Linux  ;)09:37
wgranthttp://launchpadlibrarian.net/23631444/python-crypto-2.6-337073.diff is useful, in those strange cases.09:38
fullermdInneresting.09:39
visik7ok I'm in a strange situation:11:06
visik7I've my working tree out of date11:06
visik7how could I know at which version is it ?11:07
fullermdWell, you can poke around manually in .bzr/.  At one time, info gave you something you could do some math on.11:28
fullermdOr you could use revno/revision-info --tree, but you have to do that in the future.11:28
lifelessor just run bzr update11:29
fullermdWell, that doesn't make it known.  Just moot   :p11:30
lifelesssureit does.11:31
lifelessit would be -111:31
=== cprov is now known as cprov-afk
jelmerGPHemsley: hi13:46
fcorreahello there. Aw...using bzr 1.13.1 here and working against subversion on the server. Does anyone know why it takes forever to push changes to back to svn? I looked up and found that it used to happen with bzr 0.5-17:28
fcorreabtw it also happens when doing bzr co17:29
jelmerfcorrea: newer versions of bzr-svn should be a bit better in that regard17:30
fcorreajelmer: will try17:30
jelmerfcorrea: also, the first time you do a push/pull it'll be a fair bit slower because it has to analyse the repository, after that it should be significantly faster17:33
fcorreajelmer: yeah, but it also happens when pushing it back to svn, so I assume all the analysis were already done, but I may be wrong17:34
jelmerfcorrea: also, how slow is slow?17:49
MezOut of curiosity, any of the bzr people heading to EuroPython?18:30
Mezother than you, lifeless18:32
Mez(wait, 2 talks? someone with dedication!)18:35
visik7I've my working tree out of date19:31
visik7how could I know at which version is it ?19:31

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