/srv/irclogs.ubuntu.com/2011/04/15/#bzr.txt

mgzInvalid -W option ignored: unknown warning category: 'ImportWarning'00:00
mgzI get spew, but otherwise seems harmless.00:01
mgzThat one line change does seem a daft thing to drop Python 2.4 support over.00:01
poolieoh, do you?00:01
pooliei don't want to drop 2.4 support over this00:02
poolieah, i was wrong00:02
pooliei forgot karmic's _default_ python is not 2.400:02
spivmgz: we need -Wignore:UnknownWarningWarning ;)00:03
poolie:)00:03
poolieso it's either a conditional binding of that name if it exists, otherwise just -Werror for some explicit things00:03
pooliehm, really rebooting now, unity bug filing done for teh moment00:04
hugogeegreetz all :D00:05
hugogeeI run openbsd and am interested in using Bazaar. Good stories, bad, i would like hear. tx00:07
hugogeesup poolie00:07
pooliehi hugogee00:08
poolieit's good; i like it00:08
pooliewhat are you going to use it for?00:08
hugogeeYes it seems good. I just want to know what i am up against trying to get the shoe to fit. :D00:09
hugogeecommunity collaboration.00:09
hugogeehow well does it work with binary files?00:09
pooliewhat kind?00:09
poolieit compresses them well, if they're at all compressible00:10
hugogeeWord, excel...00:10
poolieit's not going to be able to natively diff or merge them00:10
hugogeediff ? or00:10
pooliethere is a plugin to diff them00:10
hugogeeoh, do tell.00:10
poolieto show the changes from one version to the next00:10
pooliei have to say Word and OpenBSD sounds like a strange combination to me :)00:10
hugogeeHehehe00:11
hugogeeIts for collaboration.00:11
poolieif it's all office files, you may be better off using microsoft's collaboration things00:12
pooliemuch as i like bzr it is designed more for managing code00:12
hugogeenaw!00:12
hugogeeyes i understand but subversion does handle binary. so long as i can backup and restore all will be fine.00:13
hugogeem$ < great00:13
hugogeem$ > free00:14
poolieif you're happy with svn's binary handling bzr should be fine too00:14
pooliespiv one more thought:00:15
hugogeeyes, i am trying to make it easy for this nice little community of people.00:15
pooliespiv, mgz, getting a -W meta warning during 'make check' is pretty harmless00:15
mgzthat's my feeling too.00:15
poolieotoh other places might also hit ImportWarning00:16
mgzI prefer changing the makefile to the code.00:16
poolieother than just this thing00:16
poolieright00:16
spivI'm fine with just changing the makefile.00:16
spivI don't think anything depends on stderr of 'make check' being clean00:17
poolieso 2.1 apparently fails on py2.7 with AttributeError: 'module' object has no attribute '_WritelnDecorator'00:21
pooliethis rings a bell00:21
mgzI didn't fix 2.7 errors on 2.100:22
mgzonly 2.300:22
mgza couple also landed on 2.2, but if you want to use... dammit... Python 2.7, you need Bazaar 2.300:22
pooliefair enough00:22
pooliei was just testing my change didn't break later versions00:23
mgzthis may not be clearly documented anywhere.00:23
pooliei would almost land a change saying this or giving a clean error00:23
pooliebut it can probably wait until someone hits it00:23
poolieit's a bit like the plugin versioning thing, and whether it's important to warn about too-new bzrs00:23
lifelesshi mgz00:26
mgzhey lifeless!00:26
pooliehi lifeless00:27
lifelesshey poolie00:30
pooliewow running the 2.1 tests on natty is a bit annoying00:33
pooliebzr itself runs fine but there are snags around the edges00:33
poolielifeless: thanks for the pqm improvement00:33
lifelesspoolie: my pleasure00:34
pooliecan we have one of us also do xfail?00:34
poolieah a clearer way to put that would be00:34
pooliecould you either do it (not right now) or give me a clue where to change it?00:35
pooliedo those machines just run pqm trunk?00:37
lifelessSo xfail00:37
lifelessThe machine uses subunit from package00:38
lifelessand a branch of pqm which the losas pull into on request00:38
lifeless*if* the subunit they have has a TestResultFilter ready to handle xfail00:38
lifelessthen its easy - just another parameter to the filter thats constructed00:38
lifelessif not, then we need to start with subunit and bubble it through00:39
lifelessnot terribly hard00:39
pooliek, so first we need to either grep the package for that, or find out what package is installed00:39
poolieand this would be the subunit outside of the chroot00:39
lifelesspoolie: yes00:44
lifelesspoolie: my packaged subunit here says00:45
lifeless |  __init__(self, result, filter_error=False, filter_failure=False, filter_success=True, filter_skip=False, filter_predicate=None)00:45
lifelessfor pydoc subunit.test_results.TestResultFilter00:45
lifelessso I think johns patch needs a re-look, then merged, a release, package, and updated in CAT00:45
poolieok00:46
pooliebiab01:02
poolienice revert speedup jam02:39
pooliespiv:02:54
poolieblah02:54
pooliehttps://code.launchpad.net/~mbp/bzr/trivial-2.1/+merge/5780202:54
spivpoolie: approved03:33
hugogeenite folks! :D05:21
=== Topic unset by poolie on #bzr
pooliegack06:14
=== poolie changed the topic of #bzr to: Bazaar version control <http://bazaar.canonical.com> | try https://answers.launchpad.net/bzr for more help | http://irclogs.ubuntu.com/ | Patch pilot: poolie
poolieomg look at them all06:14
lifelesspoolie: hairball?06:17
pooliexchat-gnome has what may be a natty regression06:18
pooliethat just typing //topic doesn't print the topic, it clears06:19
poolieit06:19
puzzlementpoolie: Sent you an email re spiv's availability (or lack thereof) this afternoon.06:23
pooliegot it, thanks for letting me know06:24
poolieno problem06:24
jamthanks poolie, morning?07:53
pooliehi jam!07:53
pooliespiv is off sick07:57
poolieor more precisely his son is sick07:57
pooliejam, how are you08:03
pooliei'm going to merge up the 2.4 regression fix, and finish off some old patches in the queue08:03
jampoolie: things are going pretty well here. Getting some random fallout in the test suite from my 'faster-merge' patch. It turns out that a fair amount of code accidentally assumed that all files would be declared to the TreeTransform08:04
jamso only mentioning the actually changed ones had random fallout elsewhere08:04
jamnothing hard, just annoying08:04
jamand then I fixed one incorrectly, but accidentally ran the bzr.dev test suite instead of my working copy before submitting it again :)08:04
poolie:)08:06
pooliein a while we might get a faster pqm, which would be nice08:06
poolieit's funny how old bzr 2.1 is08:07
jampoolie: indeed.08:07
jam(on both accounts)08:07
poolieeg it has hard test suite dependencies on paramiko and others08:07
jampoolie: we always tried to make stuff like paramiko soft, but we often missed a test here and there.08:07
pooliei think i will try to finish the diffoptions thing08:13
pooliemaybe after one more of jelmer's patches08:13
bradmpoolie: so, hi08:20
bradmpoolie: do you think we still need that old chroot on balleny?08:20
pooliebradm: nah08:28
bradmpoolie: okey, I'll blow it away then, and close off that ticket08:34
=== psynaptic|away is now known as psynaptic
jampoolie: you have both "760435-unittest-deprecations" and "760435-less-fail" was the latter supposed to have a precondition on the former?08:42
poolieah yes08:42
jampoolie: anyway, both "merge: approve"08:43
jamOf course, assuming it is all mechanical08:43
jambut it certainly seemed fine08:43
poolieit is08:46
pooliethanks for checking though08:58
pooliejam i've been stewing on a blog post about matchers09:14
pooliemaybe after i do one more hr task i will actually write it odwn09:15
lifelesspoolie: too java ish ?09:19
pooliea bit09:19
lifelesspoolie: you should see the one I turned my nose up... was worse09:19
* poolie looks09:19
pooliehaha09:19
pooliei'd like to say09:19
poolieassertsomething not fileexists('foo')09:19
poolieand have it give a smart message when it fails09:19
pooliei think i have a testtools bug about it09:20
jampoolie: specifically that 'not' gives bad messages?09:20
jamor that fileexists('foo') tends to just give success/failure rather than a clear message?09:20
poolieby the time it gets to 'not', all it sees is a boolean09:21
poolieideally this would be a bit more HOF-ish09:21
lifelessHOF ?09:24
lifelesspoolie: assertThat('foo', FileExists()) doesn't work for you ?09:24
pooliehigher-order-function09:25
pooliethat's ok, though a bit longwinded09:25
pooliewhat if i want to assert it does not exist?09:26
lifelesspoolie: assertThat('foo', Not(FileExists()))09:26
poolieso you get 'foo matches FileExists(something)'09:28
lifelesswhat is something ?09:28
=== hunger_ is now known as hunger
jamlifeless: I think the point is that if "assertThat('foo', Not(FileExists())" fails, he wants to get a nice message "file "foo" was not supposed to exist, but what found"09:32
jam*but was found09:32
lifelessso it will say "'foo' matches FileExists()" with current testtools09:34
jamAnd Not(Matcher) doesn't tend to give good error messages.09:34
lifelessit is a currying/HOF approach; the protocol is /slightly/ more than simple functions can do though09:35
jamlifeless: so I can't put my finger on it exactly, but I have noticed that bzr test suite failure messages are more legible than the Launchpad ones going through Matches09:35
jamMatchers09:35
lifelessjml and I would welcome improvements09:35
poolielifeless: in short i wonder if they should return matches as well as mismatches09:35
lifelessmatchers are taking off organically in lp development09:35
pooliealso i would like to just call them, getting rid of the self.assertThat09:35
pooliewhich is a bit longwinded09:35
jampoolie: golang seems to just use "assert(...)"09:36
poolieraising an exception is a clear indication of failure09:36
jamusing matchers09:36
jamat least from niemeyer's examples that I've seen09:36
lifelessa key part of the point of matchers is to separate [mis]matching and error conditions09:37
lifelessthings raising AssertionError are pretty awkward to layer upon09:38
pooliewell, this is the tradeoff09:39
poolieperhaps it is possible to find something that is not so longwinded but does allow layering09:39
pooliejam i think there assert() is a semi builtin09:40
poolielike in python in fact09:40
pooliethough not crippled09:40
=== Ursinha-afk is now known as Ursinha
jmlIt would be easier in a language that had better partial function application syntax09:40
jampoolie: http://paste.ubuntu.com/593640/09:40
jamit is on an object09:40
jamI don't know what "c" is09:41
jamcase ?09:41
poolietoo much python :)09:41
jmlThere are some issues with the matcher traceback that make it harder to read (duplication, layers of stack that are boring to most people)09:41
pooliei think it's a good step forward,  just not utopia09:41
jmlsure09:42
jmlI don't have solutions for the syntax issues that you are raising, so I'd welcome ideas.09:42
pooliejam i'd guess it's basically a typedef for TestCase09:42
jampoolie: yeah, that was my guess, too. though having "s *S" and "c *C" is really odd to me. :)09:43
jamalso, declarations are backwards from c, so c *C is "C *c" in C-code09:43
jamI might have been able to fit more letter C in that sentence09:43
pooliejml: stephane says "why are they having a thing called Thunderdome in Dublin? Shouldn't it be in Silverton?"09:45
jml:)09:45
poolie"the cracked lookingglass of a servant, a symbol of irish art"09:45
lifelessc.Assert(result.Host, Not(Equals), host)09:45
lifelesslooks almost exactly like our Matcher syntax09:45
lifelessslightly less curried09:46
lifelessor more, depending on point of view09:46
pooliemm the half-currying is a bit odd too09:46
pooliemaybe it's good if it makes the expected bit clear09:46
poolieanyhow, i really have to go...09:46
pooliehave a good weekend09:46
lifelessciao09:46
pooliecongrats on your appservers09:46
lifelessit will be nice to be running lp on something more powerful than your pqm machine :P09:50
lifeless[thats a slight troll, we do have some seriously powerful machines in play already :))09:51
jmlpoolie: one of my many favourite lines from that book :)09:59
maxbjelmer: We need to fix the dulwich branches - PPA and daily builds are now being impacted by something similar to what I saw in bug 70717010:18
ubot5Launchpad bug 707170 in Bazaar Git Plugin ""Cannot add revision(s) to repository: missing text keys" branching lp:dulwich and alioth packaging branch into same shared repo" [Undecided,Invalid] https://launchpad.net/bugs/70717010:18
kgoetzcan i list all files modified modified between certain revisions without a full diff?10:33
lifelessbzr st -r x..y10:34
kgoetzthanks10:40
Odd_BlokeI have accidentally branched from a non-trunk branch and created my branch ready to merge into trunk.  How can I remove the changes introduced in branch I based it on?11:08
=== psynaptic is now known as psynaptic|break
=== psynaptic|break is now known as psynaptic
tasslehoffwe went from svn to git a while back, and find that git on windows is slow and sad. does bzr-git work well/fast on windows?11:48
tasslehoffwe thought to start there, and then maybe move everything to bzr if it works out11:48
maxbI think bzr-git works pretty well. I don't use Windows, though11:49
jelmertasslehoff: bzr-git on Windows doesn't work with ssh yet11:53
tasslehoffjelmer: ah. that was important to know. thanks.12:07
jelmertasslehoff: it shouldn't be hard to fix, it just hasn't happened yet12:10
=== gthorslund_ is now known as gthorslund
=== psynaptic is now known as psynaptic|away
=== beuno is now known as beuno-lunch
=== psynaptic|away is now known as psynaptic
=== beuno-lunch is now known as beuno
knighthawkI'm still trying to figure out bzr-svn. I did a successful svn-import then pulled a branch from that. but now I have no idea how to do an update or a commit back to the svn repo18:50
knighthawkI thought a merge from my branch to the import then I could commit back.18:51
knighthawkbut I'm still stuck on doing the update.18:51
knighthawkit seems my biggest issue right now is that I don't have a working tree in the import (and I don't think I should need one) but then I can't update from there.18:53
maxbknighthawk: It sounds like you have some terminology confusion besides other things. I think many places where you're saying "update" you don't mean "bzr update", the command.19:14
maxbFor clarity, best to avoid that confusable.19:14
maxbThe key point to understand about bzr-svn is that it presents the virtualization that svn branches operate just like bzr branches19:15
maxbAlso, there's nothing special about a bzr branch produced by "bzr svn-import" - it's just a shortcut to individually "bzr branch"ing each branch in the subversion repository19:16
maxbSo, if you want to land a branch developed in bzr back into svn, then you have much the same options as you do when landing a branch developed in bzr back onto its parent bzr branch.19:17
maxbSo, one option is that if the parent branch has not diverged, you can simply push your changes19:17
maxbOr, if the upstream branch has diverged, it's usually appropriate to merge your development into a local copy of upstream, and push the result19:18
=== Ursinha is now known as Ursinha-afk
wizonesolutionsI'm getting an I/O error on one of my repository packs :( can't do anything to it, and it's in the repository for a branch I want to check out...20:24
wizonesolutionsSo I don't think I could bzr branch it somewhere else and check out from there either since it'd probably have to touch that pack20:25
wizonesolutionse2fsck came back clean, but I think the drive is just old and starting to run into some probs...not really sure how to recover this file or proceed...20:25
wizonesolutionsas suggested by smartctl20:26
maxbwizonesolutions: You should pastebin the exact error, "an I/O error" is insufficiently detailed to best understand your project20:44
maxberm20:44
maxbs/project/problem/20:44
wizonesolutionsmaxb: It really is just "input/output error" though from Bazaar's standpoint it's a ShortReadvError or something. But an underlying I/O error is the cause. My box decided to go crazy though so when it comes back...will let you know.21:13
wizonesolutionslol @ sed on IRC21:13
maxbHrm. Well, if you can't even copy the file from that disk to elsewhere, then you do have serious problems21:14
wizonesolutionsmaxb: Yeah :/ I'm not sure if bzr branch is working cuz my system is acting weird. Probably cuz of bzr using 100% CPU again or something. But it did seem to be getting farther with that approach than before.21:15
wizonesolutionsThe issue's in the shared repo, not the branch itself.21:15
maxbIf it's a younger pack which is broken, it's possible that there might be scope for recovering older parts of history. But some dataloss is almost certain21:15
wizonesolutionsso if I can branch elsewhere then I can save it and I'm good21:15
wizonesolutionsah21:15
maxbCan you run "find .bzr/repository -ls" and pastebin it?21:15
wizonesolutionsSure...couple mins, gotta see if I can still SSH in or something and what it's up to21:17
wizonesolutionsmaxb: http://pastebin.com/Q4Ldj5nF21:28
maxbwizonesolutions: And which packs have problems?21:29
maxbIn any case, if the disk is in doubt, I think your first priority should be to get the files off as intact as possible21:30
wizonesolutionsmaxb: 34d110e625509acc103c649ed7cc6cb7.pack is the culprit. The couple-gigger21:30
maxbOuch, it had to be, didn't it21:30
maxbBeing that that's the oldest pack in the repository, recovery prospects are not good21:31
wizonesolutionsWell, I've got the files backed up elsewhere fortunately. Perhaps I can try to restore it from there, .bzr and all, and hope that it comes back sane. This is where every branch containing the full history starts to hold its salt, eh :)21:31
wizonesolutionsSeems like branching to another dir actually did fail. I mean that makes sense given that the whole point of a shared repository is that it gets touched when doing stuff on the branches under it and that some revs are shared, etc. so I'm not surprised.21:32
wizonesolutionsmaxb: Oh, but it's a checkout, the one I have. But I should be able to unbind it without probs...yeah so I have the files at least. Well that's the main thing21:33
maxblightweight or heavy checkout?21:34
wizonesolutionsheavy21:34
maxboh21:34
maxbwell, no problem then21:34
wizonesolutionsyeah so I'll see if restoring it from backup does the trick...probably should21:35
wizonesolutionsthese hard drives man, they always obey Murphy's Law21:35
wizonesolutionsI love and hate how hard drives just keep working even as the problems build up21:35
wizonesolutionsand then eveeeeeentually they nail you when you least expect it21:36
wizonesolutionsIt's one of those things I never test until there's a problem, but by the time there's a noticeable problem things are bad. :/21:36
wizonesolutionsah well21:36
wizonesolutionsthanks a lot maxb for the time and help!21:37
pooliehi all23:57

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