/srv/irclogs.ubuntu.com/2010/11/30/#bzr.txt

spivmgz: ooh: IntegrityError: update or delete on table "bugwatch" violates foreign key constraint "bugwatchactivity_bug_watch_fkey" on table "bugwatchactivity"00:03
mgzspiv: does that need a bug filing against something or is there one already?00:12
mgzhttps://bugs.launchpad.net/malone/+bugs?field.searchtext=IntegrityError00:13
mgznothing similar looking there.00:13
spivI *think* the malone team will take care of that for you, I'm pretty sure the OOPS reports are routinely analysed and turned into bugs.00:13
spivBut there's no harm in filing a bug with the OOPS ID00:14
spivIt might even speed the process.00:14
pooliehi mgz01:05
mgzhey poolie.01:05
mgzhm, some dupe finder on file does something useful for once and turns up bug 57591101:11
ubot5Launchpad bug 575911 in Launchpad Bugs "Trying to delete a bug watch results in a non-OOPSing IntegrityError (affected: 2, heat: 6)" [Medium,Fix released] https://launchpad.net/bugs/57591101:11
mgzI'm guessing the fix wasn't intended to make it an OOPSing IntegrityError01:11
pooliehaha01:42
pooliehi spiv, how are you?02:13
spivpoolie: pretty good.  About to submit a merge proposal for bug 309682, then I was thinking of starting on the HPSS request jam's shallow branch mail talked about.02:29
ubot5Launchpad bug 309682 in Bazaar "tags are copied but their revisions may not be (affected: 0, heat: 8)" [Low,In progress] https://launchpad.net/bugs/30968202:29
spivpoolie: so, doing better than the Australian cricket team :)02:30
pooliehahaha02:58
pooliespiv that sounds good to fix03:10
pooliei'm a bit tired and struggling through my mail and todo list03:10
pooliei might stop it and try some easy bugs soon03:10
spivHmm, as usual, reviewing my diff before I'm about to submit it I think “I could add more tests...”03:18
poolieheh, i didn't think about spiv and cricket until just now :)03:19
abentleyspiv: Since you're patch pilot and you like incremental diffs: https://code.launchpad.net/~abentley/bzr/is_executable/+merge/4219703:47
spivheh03:48
spivactually that was last week, vila needs to update /topic I guess...03:48
spivBut sure, I can take a look.03:48
spivI wonder a little about changing the behaviour in a stable branch03:49
spivEven if it better behaviour.03:49
abentleyspiv: Well, that's fair.03:49
abentleyspiv: But it's buggy behaviour, too.03:50
abentleyspiv: It causes iter_changes to report bogus data.03:50
abentleyspiv: We can resumit it for lp:bzr if you think that's best.03:51
pooliethanks for proposing that, abentley03:52
spivBuggy behaviour that was codified in tests... so buggy in a way that perhaps isn't immediately obvious, so it does seem pretty plausible some plugin might be depending on it, even accidentally.03:52
pooliespiv, who is pp now?03:52
poolieand i wonder if you should send a brief report?03:52
spivI'm really unsure how large the risk is here.03:52
spivIt's an "unknown unknown", I guess ;)03:52
spivpoolie: vila I think, and good point...03:52
abentleypoolie: np.03:52
spivabentley: if landing in lp:bzr is good enough for Launchpad to benefit from the fix, then my inclination is to do that, just to be conservative with our stable releases.03:53
abentleyspiv: Okay, I'll retarget it to lp:bzr, and then we'll spin a bzr-2.2.2-launchpad-1 for ourselves.03:53
abentleyspiv: It's not, but we can diverge until we get on the 2.3 series.03:54
spiv*nod*, well, it at least helps a bit to have an approved patch to backport to your diverged 2.2.03:54
abentleyspiv: true.03:55
pooliethe general plan was to have lp run bzr 2.2 releases, until we get to 2.3rc or the last beta03:56
pooliei'll read it too03:56
abentleyspiv, poolie: resubmitted as https://code.launchpad.net/~abentley/bzr/is_executable/+merge/4220303:56
pooliei'd really rather not have lp run its own branch if we can avoid it03:58
abentleyspiv, poolie: And resubmitted once more, because 2.2 has unmerged revisions: https://code.launchpad.net/~abentley/bzr/is_executable/+merge/4220403:59
poolieabentley, i'm so glad you added resubmit&retarget04:00
abentleypoolie: Cool.04:00
abentleypoolie, spiv: I can do a more conservative fix to 2.2 if I adjust the is_executable callsite.  Then it would only affect PreviewTree._comparison_data.04:02
=== 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: jam | 2.2.2 has is out <http://bit.ly/bzr222rn> (rm vila)
pooliespiv did you want to tweak anything in https://code.launchpad.net/~eric97/bzr/fix-merge-docs/+merge/4067104:08
spivpoolie: no, it looked good to go except for the contributor agreement04:09
dmuiris branching supposed to be fairly immediate?04:21
dmuiror am I missing something in my setup?04:21
bob2is that an LP question? or are you branching locally?04:22
dmuirI've got a shared repo, with a svn mirror in a branch called mainline04:22
dmuirbranching locally04:22
dmuirwhen I do `bzr branch mainline new-feature`, it seems to sit there for several seconds04:23
dmuirYes, a few seconds isn't killing me... but this is for repos with fewer than 1000 revs04:24
dmuirhmm, maybe it's just a caching issue04:26
dmuirwhen I make multiple branches, it goes pretty quick04:26
pooliedmuir: it could be a disk cache thing?04:44
pooliedo you get a progress bar?04:44
dmuiryeah, with a counter of some sort x/y with x increasing until it reaches y04:45
poolieand what text?04:45
dmuirbuild phase: adding file contents04:47
spivAh, that's possibly related to #60729804:49
spivbug 60729804:49
ubot5Launchpad bug 607298 in Bazaar "Slow branch creation with cold disk cache (affected: 1, heat: 3)" [Medium,Fix released] https://launchpad.net/bugs/60729804:49
spivWhich is fixed in the 2.3 branch, but wasn't in 2.204:49
dmuirah, cool04:50
dmuirsomething weird though. when I branched bzr.dev, it was immediate, even though I hadn't made a branch in that repo in over a month04:51
dmuiroh, never mind04:57
dmuirthe branch I had for bzr was a no-trees branch04:57
dmuirwhen's 2.3 due?04:58
dmuirtrying to remember what the release cylce was...04:59
dmuiroh, I think I found it04:59
dmuirhttp://doc.bazaar.canonical.com/developers/cycle.html04:59
pooliedmuir: roughly february05:07
dmuircool, looking forward to it :-)05:07
lifelesspoolie: spiv: testtools now has some list/load-test functionality, you may be able to delete some more code from bzr05:46
pooliegreat05:47
mkanatpoolie: Hey.06:01
dmuireol rules are still only global right?06:55
dmuirI've got a situation where when I make changes to a file checked out from an svn repo, the whole file gets marked as modified, even though I've only changed one line. I'm assuming that an EOL conversion is to blame06:57
dmuirdoes bazaar apply any automatic conversions or is "exact" the default?06:58
dmuirspoke too soon. manual says exact is the default06:58
dmuirso maybe it's my ide that's done the conversion...06:59
fullermdIt's not unheard of for editors to do line ending conversions.  IDE's are probably another step more likely than plain-old-editors.06:59
dmuirah, I think I've found the culprit07:00
dmuirI think it's from doing a conflict resolution with meld07:01
vilahi all07:05
spmhey vila!07:06
vilaha ! New kernel, reboots all over the place incoming07:06
vilaspm: hey !07:06
dmuirI'm full of questions today.... what's the quickest way to revert files matching a pattern?07:29
dmuir`bzr revert */_notes` does work07:31
dmuird'oh, I mean *doesn't* work07:38
mkanatdmuir: ls -d1 */_notes | xargs bzr revert   ?08:10
mkanatdmuir: That's just off the top of my head.08:10
dmuirmkanat: I'm getting: ls: cannot access */_notes: No such file or directory08:12
mkanatdmuir: Then you have no such file or directory?08:12
dmuirah, good point :-)08:12
mkanat:-)08:13
dmuirthey're files that have been deleted08:13
mkanatAhh. I dunnow, then.08:13
dmuirI guess I need to use bzr ls08:13
dmuirwohoo!08:16
dmuirbzr status | grep _notes | xargs bzr revert08:16
mkanatAh, cool. :-)08:16
mkanatGood idea.08:16
dmuirthanks for pointing out xargs, didn't know about that one08:16
mkanatdmuir: Welcome. :-)08:18
TirielHi!09:12
TirielI'm new to bazaar, and I read on the website that it has some limitations with XML and binary files09:12
TirielHow bad is this? because these are mainly the kind of files I'll be working with09:12
mkanatTiriel: Where on the website does it say that?09:13
mkanatTiriel: The only limitations that I can think of are that working with enormous binary files can be slow and use a lot of RAM.09:14
Tirielwell, let me check09:14
TirielI'm pretty sure I just read it, but I can't remember where09:14
TirielAh! here http://wiki.bazaar.canonical.com/TheBigPicture09:16
Tiriel" It is less effective with tree-structured data (e.g. XML), and is most limited in dealing with opaque binary files (e.g. Microsoft Word documents)."09:16
spivTiriel: well, the builtin merge is designed to work well with text files09:19
spivTiriel: that's what that's referring to09:19
spivTiriel: e.g. if you use "bzr merge" and the two branches have both changed the same MS Word document, bzr will only be able to say "there are conflicting changes, here are the different versions of the file, it's up to you to resolve that"09:20
TirielOh! is that it?, I don't think that will be much of a problem then09:21
Tirielsee, the plan is to do some translation work, so I don't think there will be a lot of merging09:21
spiv(and bzr allows plugins to extend its merge capabilities, so if you have tools that can help with automatic merging you can quite likely hook them into bzr with a plugin)09:22
Tirielthat's also good to know09:22
TirielI was fearing this issue would be a major stopper09:23
peitschie_Tiriel: sorry to butt in (i only just joined)... are you wondering about bzr merge capabilities on xml docs?09:24
TirielWell, it boiled down to it, I was asking about the broader limitations of bzr when dealing with XML and binaries09:25
Tirielall insight is appreciated09:25
peitschie_sounds good :)09:26
peitschie_just wanted to chip in that most xml merges I've done seem to be going well09:26
spivTiriel: I suggest just trying it out: it's very quick and easy to make a branch of some files, commit a few revisions, etc.09:26
TirielWell, I'm on the research stage atm, I haven't deployed anything just yet09:26
TirielI'm trying to figure out which tool suits best, and bazaar looks very good, but I was concerned about this since XML will take most of the work09:28
peitschie_tiriel: r u expecting to do merging on the binaries at all?09:28
Tirielnot really09:28
Tirielin fact I'm not expecting to do much merging at all09:28
Tirielbut you never know...09:28
peitschie_tiriel: cool.  with the xml things, does everyone use a tool when editing it btw?  i.e., the format will b consistent across edits?09:29
Tirielyes, I plan to stablish a standard slang09:29
Tirielas I said this is all in the planning stage, nothing is sure just yet09:30
peitschie_tiriel: that will serve well :).  As I mentioned earlier, we've been running an 18month old project on bzr (migrated onto bzr about 8months ago) and so far have found xml merging quite nice... once we established everyone using tabs!09:30
Tirielnice, that leaves me at ease.09:31
TirielOn a totally different matter, is it possible to have some HTML code or something to pull the latest version of a file in bazaar and display it on a webpage09:32
TirielI don't really need the details, I just want to know if it's possible09:32
peitschie_bzr upload plugin?09:32
mkanatTiriel: Depending on what you need, you could just use loggerhead.09:32
peitschie_that is helpful to push via ftp or similar09:32
TirielI really don't know what I need right now :(09:34
TirielI was thinking that I may want a website where the contents are grabbed from whatever is in bazaar09:35
Tirieli.e. looking for the files in bazaar instead of /htdocs or whatever09:35
Tirielmaybe it is as easy as serving bazaar through apache and have the website look in there?09:36
peitschie_i'd b looking t bzr upload + cron job 4 that personally :)09:37
Tirielas in pushing the head of bazaar's repo to the website with cron?09:38
peitschie_yup09:38
TirielWhy would pushing from bazaar be better than pulling from the website?09:39
Tirielnot saying that pulling is better, just trying to understand your approach09:40
peitschie_brb :)09:41
mkanatTiriel: Pushing wouldn't require a lot of work from bzr on every web hit.09:46
mkanatTiriel: If you're talking about grabbing a file from a repo on every hit, that is.09:46
TirielVery good point, I hadn't thought of that09:46
TirielAlso, by pushing we can control wich versions get published on the site!09:47
Tirieland it is less coupled. WTF was I thinking!09:50
TirielOk, I'm going to get some fresh air and settle the ideas, thanks to all09:53
peitschie_tiriel: pretty much my reasons match mkanat... less work to push it every once in a while than pull every web hit10:04
Tirielyup, pushing does look like a much better idea, I hadn't thought it through10:07
mkanatHeyyy folks. :-) I need a review for this loggerhead merge: https://code.launchpad.net/~mkanat/loggerhead/view-default/+merge/4222210:27
vilamaxb: qbzr and bzr-explorer needs to be upgraded in bzr/proposed right ?10:30
maxbideally, yes10:37
maxbmkanat: Hi. The NEWS file on loggerhead trunk is incorrect, the top entry is under th 1.18 heading, but it actually only happened on trunk10:38
mkanatmaxb: Oh yeah? Lemme go look.10:39
mkanatmaxb: Ohhhh, you're right.10:40
mkanatmaxb: Fix Committed.10:41
maxbthanks :-)10:42
mkanatNEWS also needs some serious updates for dev.10:43
vilaghaaa, is there a way to explore the ubuntu package branches ?13:02
jmlcode.launchpad.net/ubuntu?13:02
vilabzr info goes into a 'Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.RuntimeError'> ignored' dance when tried against a non-existing one :-/13:03
* vila kisses jml13:04
vila...almost : https://code.launchpad.net/ubuntu/hardy/qbzr13:04
jmlvila: https://code.launchpad.net/ubuntu/+source/qbzr13:09
vilajml: haaaaa :)13:09
vilathanks :D13:09
vilahttps://code.launchpad.net/ubuntu/+source/qbzr/+branches is the one I was after, pfew13:10
vilamakes sense13:10
johnfTricky questions around merges. I've been asked to compile some stats on the lines of code changed every day for a code base.13:23
johnfThe metric I've chosen at the moment is just using a diff -c on each commit and pushing that through diffstat13:24
johnfthis tree is semi complex with lots of feature branches etc.13:24
johnfwhich diverge and then remerge13:25
johnfso for standard commits I think this is fine. But what about a commit that is a merge. Am I going to end up double counting changes?13:25
=== oubiwann is now known as oubiwann_
=== oubiwann is now known as oubiwann_
vilajohnf: a commit including a merge will produce a diff against its left parent, so it will summarize all the diffs in the right parent(s) *and* whatever modifications made to resolve the conflicts13:27
=== oubiwann is now known as oubiwann_
vilait really depends on how you want to interpret the resulting stats and whether you drill down into the merges...13:29
johnfvila: yeah not the simplest task I've ever been given.13:30
vilajohnf: if you don't use append_revions_only then it becomes even more.... interesting13:30
johnfAt the moment I'm tempted to ignore the merge revisions in my stats and assume that conflict changes were small13:32
vilaone could argue that a merge commit is more work than a regular one though...13:34
johnfvila: Yeah agree but I don't see any easy way to avoid the double counting13:35
vilamay be you shouldn't avoid it13:35
vilathat's why I said it depends on what you want to interpret, I'm not sure the raw numbers are meaningful, but how they evolve over time may be more meaningful13:36
vilamaxb, jelmer: qbzr and bzr-explorer should be upgraded in debian first or can we update the bzr/proposed ppa directly ?13:55
vilaboth debian and the ppas are at qbzr-0.19.2-1 and we want 0.19.3 and for bzr-explorer that's 1.1.0 /1.1.213:57
jelmervila: hi13:59
vilajelmer: hey :)13:59
jelmervila: it'd be nice to upgrade debian first, but it's not necessary13:59
=== vila changed the topic of #bzr to: Bazaar version control | try https://answers.launchpad.net/bzr for more help | http://irclogs.ubuntu.com/ | Patch pilot: jam | 2.2.2 is out <http://bit.ly/bzr222rn> (rm vila)
=== zyga is now known as zyga-sick
vilamaxb: so, should we start the SRU with bug #659590 or do you still have pending changes regarding running the tests during build (or not) ?14:51
ubot5Launchpad bug 659590 in bzr (Ubuntu) "dput sftp upload hangs after all files successfully uploaded (affected: 1, heat: 72)" [Undecided,New] https://launchpad.net/bugs/65959014:51
maxbvila: I have pending changes14:52
maxbHmm14:52
maxbExcept14:52
vilamaxb: ok, so we shouldn't copy the package from proposed to stable either right ?14:52
vilamaxb: no pressure, just trying to know where we are14:53
maxbIf we are now decided to *not* run the testsuite on the official buildd, the unresolved discussion between me and jelmer on how to run it does not matter.14:53
maxbThus, I should back out the "run testsuite during build" changes from the sru branch14:53
maxbOn the matter of the bzr/proposed package, I regard that as OK to promote14:54
vilamaxb: that's how I read the reply from pitti regarding MRE/SRU: run the tests after installation14:54
maxbThe indecision remains only on the manner of how to run tests during build14:54
vilamaxb: ok, so I just copy the bzr one and qbzr and bzr-explorer will be upgraded later14:54
maxbworks for me14:55
vilamaxb: where is that defined ? (running the tests)14:55
vilamaxb: I've branch'ed all the relevant ones (hopefully)14:55
maxbOn the SRU: We still have an issue that to technically comply with the SRU procedure we need 2.3b4 in natty first. (You aren't supposed to fix things in maverick until you've fixed them in natty)14:55
vilagrrr, I will get this right on day, I willl !14:57
vilaok, so that's postponed until 2.3b4, I'll add a bug task there...meh how ?14:59
vilaha, right, the other url14:59
=== zyga is now known as zyga-bed
maxblp:~maxb/ubuntu/maverick/bzr/sru is now updated to remove the "run tests during build" changes, rendering it a straight merge of the new upstream version only15:02
maxb<vila> maxb, jelmer: qbzr and bzr-explorer should be upgraded in debian first or can we update the bzr/proposed ppa directly ?15:02
maxbWhoops, missed that15:02
vilamaxb: so this sru branch should now be merged into the maverick package branch and from there in the others ?15:03
maxbWhat do you mean by maverick package branch?15:03
vilalp:ubuntu/maverick/bzr/bzr-ppa15:03
jelmervila: it'd be nice to upgrade debian first, but it's not necessary15:03
maxbvila: There is no need, I have already merged 2.2.2 there.15:04
vilajelmer: but *how* should I do that ? (If I even can)15:04
maxbjelmer|vila: Updating Debian first is convenient for those packages without a PPA packaging branch - I have a script (which I really need to publish somewhere) for one-line PPAizing and uploading of the debian.dsc15:05
* vila 's head spins15:05
vilamaxb: so this sru branch will only be needed when we want to create the bzr package in maverick-proposed ?15:06
maxbIt does not help that we are currently having two interleaved conversations :-)15:06
vila:)15:06
maxbOK, so my sru branch is where I have been preparing the source that I eventually want uploaded to maverick-proposed15:07
maxbTo further confound matters, it does NOT share ancestry with lp:ubuntu/maverick/bzr15:07
vilayeah, I'm mixing that with the ppas, hence my confusion15:07
vilaha, branching it right now15:07
maxbThis is because the Debian packaging branch is sane and manually maintained, and based on bzr.dev, but the "official" ubuntu packaging branches are a parallel import by the automated UDD importer15:08
maxbSo, my recommendation is to ignore the existence of the UDD imported branches for bzr, for now15:09
vila...or use them to fix the parallel imports bugs15:09
* vila ducks15:09
jammorning all15:13
vilajam: hey !15:13
mgzhm, stopped snowing again.15:16
jamvila: can you wait 10s and then say my name again, my audio pings don't seem to be working.15:18
mgzjam: you got any insight on bug 680935?15:19
ubot5Launchpad bug 680935 in Bazaar "repository on flash bzr pack error (affected: 1, heat: 6)" [High,Confirmed] https://launchpad.net/bugs/68093515:19
jamwell, that worked15:19
vilajam: say what ?15:19
vila:D15:19
jammgz: my line numbers are slightly off, but that looks to be a line like:15:20
jam                    self._content = zlib.decompress(z_content)15:20
jamI don't see how we can use the zlib interface any differently than that.15:21
jamlooking at the faq, it would hint that a buffer is too small or too large.15:21
mgzyeah, also my thought, would be a python bug.15:21
vilamgz: hello !15:21
jamFor example, 'z_content' could be empty15:21
jamor it may decompress to something larger than the default buffer size15:21
mgzor just corruption of some interesting sort.15:21
vilamaxb: so the parallel import is about .bzrignore and the debian dir but the others ?15:22
jammgz: zlib.decompress('') does, indeed, give that error, though.15:22
jamnot that I would specifically understand why we would get '' here15:22
mgzhey vila!15:22
vilajam,mgz: lifeless remotely diagnosed a *memory* hardware issue with beuno a couple of.. weeks ago, I'm not sure the message was exactly the same though, may be they remember better than me15:23
jamvila: IIRC, that was different data corruption, but the data on disk seemed fine. There were 3 bit errors in memory from what poolie said, which would be an indication of how ECC mem would fail to find it.15:24
mgzwe generally get zlib errors from on-disk corruption, but normally not this one.15:24
jam(ecc can often fix 1, find 2, but would fail >=3)15:25
weigonif I have a workingdir instance, how can I find out what shared repo it is from ?15:25
weigon... using bzrlib15:25
jamweigon: bzr info? tree.branch.repository?15:25
jamtree.branch.repository.base ?15:25
mgzanyway, what would we need to progress on that bug? a copy of the repo?15:27
maxbvila: Um, no the parallel import is about the entire upstream source being imported as historyless tarballs, not derived from bzr.dev15:31
weigonjam: yep, thanks15:34
vilamaxb: I don't get it. If I do 'bzr log --show-ids -v -l1 bzr' in both branches (sru and bzr-ppa), I have the same file-ids15:41
maxbvila: Correct15:41
maxbNow do it in lp:ubuntu/maverick/bzr and see the difference15:41
vilaparallel import is about having different file-ids for the same paths AIUI15:42
maxbYes15:42
vilaoh15:42
vilaouch15:44
vilamaxb: ok, I won't look at that today then :-/15:45
maxbvila: Sorry, what?15:45
maxbAFAIK the next job is making 2.3b4 land in natty15:46
maxbnot anything to do with the branches15:46
vilamaxb: right, I was referring to the parallel import bugs :)15:46
vilamaxb: 2.3b4 is next Thursday15:47
maxbok, that's not too bad15:47
=== beuno is now known as beuno-lunch
abentleyjam, do you still feel you need info on https://code.launchpad.net/~abentley/bzr/is_executable/+merge/42197?  Do you want me to make a more conservative change?16:44
RenatoSilvadoes the last part of revid (like xirl6fr0zipbof4h) is a unique identifier?16:56
RenatoSilvaI want to add binaries to the branch with namestelling what exact revision they match16:57
maxbThat was quite impatient17:02
vila:)17:02
=== beuno-lunch is now known as beuno
jamabentley: there are a couple of bits. I mostly was hoping to get discussion from others about what is "stable api". But also, I'm not sure whether None isn't more accurate a term for executable on symlinks and directories17:48
jamfrom what I can see, WT and RT both return None17:48
jamand PreviewTree returns what is in the basis tree17:48
jamMemoryTree is the only one that always returns IE.executable, which defaults to Falso17:48
jamFalse17:48
abentleyjam, no, it's only RT according to the per-tree tests I introduced.17:48
jamabentley: your branch also changed WT17:49
jamat least, WT_417:49
abentleyjam, My branch also changed DirStateRevisionTree.17:49
jamah17:49
abentleyjam, None is also inconsistent with our other APIs.17:50
jamright, WT.is_executable returns bool(<is_file> and S_IEXEC)17:50
jamabentley: the fact that most directories have the X bit set, but are "False" for executable seemed odd to me17:50
abentleyjam, RT._comparison_data says False, not None for RT.17:51
abentleyjam, On directories, that bit means they can be searched.  It doesn't mean that they're executable.17:51
abentleyjam, IMO, directories and symlinks are never, themselves, executable, because they're not files, and you can't execute things that aren't files.17:52
vilaabentley, jam: I'm very tempted to say that if dirs and symlinks are never executable, then executable should not even been *defined* for them, we don't define symlink target for files or directories either. But since that would be far more invasive to get there, I think None is more precise than False to convey "never"17:58
vilas/been/be/ ?17:58
jamvila: that was sort of my feeling as well. that said, False does seem a bit more consistent with the current implementations.18:17
jamthe fact that IE.executable is defaulted do False, etc18:17
abentleyvila: I don't see value in having a tri-value where a boolean will do.  There is only one answer to the question "can this be executed"?  And there's no value I can see to a programmer, expecially since None is not clearly distinct from False.18:53
vilathere is a value is using None to mean: this make no sense18:55
vilausing False implies True is valid18:55
abentleyvila: What is the value?  How will this aid my bzrlib programming?  And does the value offset the cost of having to deal with a third potential return value, and the inability to treat the value as a boolean?18:57
vilaI don't see the value in having a boolean where none is needed either, at least 'None' carries this18:57
vilaIt helps to see None more than to see False as you could then realize that is_executable shouldn't be defined for a dir or a symlink whereas a newcomer may wonder: 'Wait, it's False, when will it be True ?'18:58
vilaAnd *that* AIUI is why executability changes were wrongly triggered18:59
abentleyvila: I am saying boolean values are easier for calling code to deal with.  They can be used in conditionals directly.  They can be serialized using standard machinery.19:00
abentleyWhen were executability changes wrongly triggered?  do you mean in the incremental diffs?19:01
vilawow, wow, what are you talking about here ? All the code exist to handle this *today* no ?19:01
vilaisn't it what the bug you're fixing about ?19:01
abentleyvila: No, I think a lot of the code that exists today treats it as a boolean, and mostly gets away with it.19:02
abentleyvila: The PreviewTree code treated it as a boolean, and that's the cause of the incremental diff problems.19:03
vilaso all is left to decide is whether None is better than False because we won't un-implement is_executable for dirs and symlinks19:03
vilathen why not teach this code that is_executable can be None ?19:04
abentleyvila: Because a) it's the wrong value b) implementing that decision everywhere would be a lot of code and API changes.19:05
vilaI can understand that it's *easier* to fix it the way you did, but saying that False == None is a bit... different19:06
abentleyvila: who's saying False == None?19:06
vilayou19:06
vilaexecutable is never defined for dirs/symlinks, you implement it as False19:07
abentleyvila: Most assuredly not.  If I tell you that a directory is executable, is that a true statement or a false statement?19:07
vilaMU :D19:07
abentleyvila: No, it's not MU.  Even if you argue that the state of a directory's executability is undefined, my statement is false.19:08
vilawell, if you agree that your statement is false, then all is well :)19:09
abentleyvila: Indeed, because that means that directories are not executable, and the answer to the question "is this directory executable" is "false".19:09
abentleyvila: It's not a question of "has the executability of this directory been  toggled to the False state", it's a question of "can this directory be executed".19:12
abentleyvila: In any case, I hold that a two-value system is less complicated than a three-value system, and therefore in the absence of clear evidence that a three-value system provides a superior API, I believe we should opt for a two-value system.19:14
vilaha ! That's more convincing, between a zero values (no implementation for dirs/symlinks), 2 or 3 values, then yes, the 2 values being less expensive than the 0 one, let's do that !19:19
abentleyvila: yay!19:20
sqwishyIn bazaar, is there a nice way to destroy the history of a file without making your branch messed up and incompatible?19:55
dashsqwishy: first, build a time machine19:56
sqwishydash: Do you know which channel I could go to to get help with that?19:56
dashsqwishy: there was a time traveler convention at MIT, 7 May 200519:57
dashsqwishy: you might try there/then19:57
dashsqwishy: anyway no, you can't change history19:57
dash(unless you do it the hard way)19:57
jelmerwell, technically bazaar supports having a file without history20:05
jelmerin other words, the history would still exist.. the repository just would just forget about it20:05
jelmer(note that this is different from changing history, which is not possible)20:06
pooliehi all21:00
pooliehi jam?21:02
jamhi poolie21:06
pooliehi there21:09
poolievila is just talking to me, then we could talk if you like21:09
jamvila: go to bed :)21:10
vilajam: hehe, soon soon21:11
=== zyga-sick is now known as zyga
poolievila, so shall we do 2.3b4 this week?21:27
vilagiven that we need to do that to comply with the SRU policy that will allow us to release 2.2.2 into maverick-proposed, yes :D21:28
vilaalso, 'rmadison bzr' says that natty only got 2.3b2 so there is something to be done there too21:30
pooliework out where it's stalling21:30
vilajam: by the way, did you see bug #683307, I wonder if there is an lp bug there (I haven't checked but it's weird to have another mx recursion depth )21:32
ubot5Launchpad bug 683307 in Bazaar "Bazaar crashes on push (affected: 1, heat: 6)" [Undecided,New] https://launchpad.net/bugs/68330721:32
jamvila: that is stacking-on-self-causes infinite recursion21:33
pooliei thought so21:33
jamI've seen 3 of those in the last couple of days, not sure why21:33
vilajam: that's my point, especially since for the previous two ones you found an almost empty branch.conf on lp21:34
vilajam: if the third has the same file...21:34
jamvila: there isn't really a reason to have anything else there.21:34
jamI don't know if people are renaming21:34
jamor creating the dev focus first21:34
jamor we have a regression with the "don't stack on self if self is the default target"21:35
pooliethat's possible21:35
pooliewe should trap this and give a sensible warning21:35
vilapoolie: regarding bug #583667, I think we're not on the same page, I mentioned BZR_LP_XMLRPC_URL only for xmlrpc usages,21:37
ubot5Launchpad bug 583667 in Bazaar 2.3 "bzr talks to edge API servers to propose merges (but not for lp: url lookups) (affected: 1, heat: 10)" [High,Confirmed] https://launchpad.net/bugs/58366721:37
vilaI should clarify that it doesn't apply to launchpadlib for which there is no env var21:37
vilapoolie: would this address your concerns ?21:38
poolieif setting that variable will fix older clients (including older lplib) then that's fine21:38
pooliehm, scratch that21:38
pooliei think putting this in the bzr news is the wrong place21:39
poolieperhaps we should put a post on blog.l.n, or append to that post21:39
jamvila: interesting, tart-sleepymate is correct, but the branch it is stacked on is broken21:39
jamhttp://bazaar.launchpad.net/~sleepynate/tart/tart-sleepynate/.bzr/branch/branch.conf21:39
jamhttp://bazaar.launchpad.net/~andreesie/tart/vanilla/.bzr/branch/branch.conf21:39
pooliesaying, for bzr, you need to either upgrade to 2.0.8, 2.1.x, etc21:40
jamvila: I wonder if the +branch/ change to bzr+ssh is confusing us21:40
poolieor, set BZR_LP_XMLRPC_URL21:40
jamso that we see the stacking location as +branch/tart at one point, but end up setting it to ~/andreesie/tart/vanilla at another point21:40
poolieand we need to check whether setting that will fix all interactions with lp, or only lp: urls21:40
jamthumper: ^^ some questions about your changes to the lp: resolution stuff21:40
poolielifeless: ^^21:40
lifelesshmm?21:41
jamlifeless: I think poolie is pointing you to the BZR_LP_XMLRPC_URL stuff21:41
lifelesswhats that for?21:41
lifelessusers have no use case for controlling the end point; only launchpad developers testing new XMLRPC releases need to do that.21:42
poolielifeless: vila's proposal had a description of how to reconfigure old bzr releases assuming you won't or can't upgrade21:42
poolieeven to a bugfix release from the same series21:43
pooliewhich is a bit of an edge case21:43
lifelesswe're not going to remove edge until it has no users21:43
lifelessthe goal is to drive the userbase to zero as quickly as possible.21:43
poolieright21:43
vilapoolie: right, either they upgrade and they don't care or they don't and they can't read the NEWS21:43
lifelesss/no/very very few/21:43
poolievila, that's my point21:43
vilapoolie: re-phrasing to make sure I got it ;)21:44
poolieif there are folks who won't upgrade, we'll keep supporting them until their hardware dies or whatever21:44
vilawho's 'we' here ?21:44
vilaedge.lp.net21:44
poolieyes21:45
pooliewe=Robert :)21:45
vilaif edge disappears they'll come to us (bzr), we say them: upgrade, they say: we can't, we say: try BZR_LP_XMLRPC_URL, they say: doesn't work, we: upgrade, you're dooned21:45
viladoomed21:45
vilaSo there is still a slight chance that they try to read the NEWS for the bzr they can't upgrade to and find the the warning there21:46
vilawhich was my original intent when putting it there21:47
vilabut that's not satisfying21:47
AdamDVHow can I see the previous versions of a file from the CLI?21:47
poolieAdamDV: `bzr cat -r -1 FILE`, etc21:48
vilabzr cat <file> -r-121:48
AdamDValright21:48
vilapoolie: shouldn't we just wait for lplib and lp.net to come up with a solution ? That's where people will fail after all21:50
poolievila, let's just not document what people using older clients should do in the news file21:51
vilawfm21:51
poolieif lp isn't going to pull the plug it's not urgent21:51
pooliejam, so how are things with you?21:51
jampoolie: moving along pretty well here.21:55
spivjam: good morning21:56
jamone very odd thing I just discovered. peak memory during "bzr pack" if you already have an optimal pack is much higher than peak memory when you don't. I wonder if we are reading in the entire old pack file to compute the md5sum...21:56
jamhi spiv21:56
jamspiv: I wanted to ask you about https://code.launchpad.net/~spiv/bzr/fetch-spec-everything-not-in-other/+merge/4207821:56
spivjam: Today I'm planning to work on the hpss request you suggested in your shallow branching mail.21:57
jamit says you changed the description, but it doesn't show a delta21:57
jamI was wondering what the different was21:57
spivI typoed the bug number21:57
jambbiab, my son is asking for me21:57
spivSo, nothing significant :)21:57
pooliehi there spiv21:58
CardinalFangHi.  Is anyone else running Natty right now?  I'd like an independent test of something.22:40
CardinalFangNamely, I want to know if there's a problem with plugin "bzr-builddeb".22:43
CardinalFang$ bzr branch lp:debian/python-couchdb 0.8-0u1; cd 0.8-0u1; bzr import-upstream 0.8 http://pypi.python.org/packages/source/C/CouchDB/CouchDB-0.8.tar.gz22:44
CardinalFangAt crash location, there's a comment mentioning spiv's tags-copied-but-no-revisions bug, but I think it's not related.22:49
maxbCardinalFang: Not running natty. Will maverick + tip of bzr-builddeb do?22:50
spivCardinalFang: pastebin the crash maybe?22:51
CardinalFangmaxb, I don't know.  If you get AttributeError ^, you'd know.22:51
CardinalFangspiv, I shouldn't have woken you.  I've decided your bug isn't related at all.22:52
spivCardinalFang: also, see if "bzr tags" in that branch reports ? rather than revnos22:52
spiv(in the local branch)22:52
maxbbzr: ERROR: [Errno 2] No such file or directory: u'http://pypi.python.org/packages/source/C/CouchDB/CouchDB-0.8.tar.gz'22:52
maxbfor me22:52
spivCardinalFang: well, even if it isn't that bug, seeing the traceback will help us figure out what the bug is :)22:53
maxbCardinalFang: No AttributeError here when I download the file locally. However, this sounds vaguely like a bug recently fixed in trunk22:53
CardinalFangstack trace:  http://pastebin.ubuntu.com/538464/22:54
CardinalFangspiv, all tags have revnos.22:54
spivOk, that rules out the tag bug.22:54
CardinalFangbzr = 2.3.0~beta2-1;  brz-builddeb = 2.6ubuntu122:55
spivCardinalFang: I'm guessing it's because bzr-builddeb is looking for an upstream branch, but doesn't know of one...22:56
spivIt's worth filing a bug on bzr-builddeb, I think.22:58
maxbNo, it's fixed in trunk r48522:58
spivmaxb: ah!22:58
spivmaxb: heh, my local copy of trunk was at 484 :)22:58
* CardinalFang looks for bzr nightlies.22:58
maxbbzr branch lp:bzr-builddeb :-)22:59
spivThere's also https://launchpad.net/~bzr-nightly-ppa/+archive22:59
spivOh, actually, that's not the PPA I was thinking of..23:00
spivhttps://launchpad.net/~jelmer/+archive/bzr-dailies is the one I was thinking of.23:00
CardinalFangRock.23:01
maxbno, that's obsolete too23:06
maxbYou want https://launchpad.net/~bzr/+archive/daily23:06
maxb(spiv, CardinalFang)23:07
spivmaxb: heh23:09
CardinalFangmaxb, spiv, thank you very much.  I owe you a beer.23:10
spivmaxb: Hmm, I guess the link to bzr-nightly-ppa on https://launchpad.net/bzr should be replaced with that, then?23:10
peitschiemornin all :)23:10
pooliehi there23:10
abentleypoolie: I discussed the branch with jam, but things got derailed into a discussion over what the philosophically-correct return value is when calling is_executable on a directory.23:12
poolieoh, ok23:13
poolieFalse vs None vs error?23:13
abentleypoolie: False vs None.23:13
abentleypoolie: I think False is correct, but I think consistency is the most important consideration.23:15
abentleypoolie: And False is also consistent with other Tree types and other RevisionTree APIs.  Changing it all to None would be a big change.23:16
maxbspiv: Based on the utter deadness of where it currently points, I've just gone ahead and updated it right now23:16
james_wthanks maxb23:17
spivmaxb: thanks :)23:18
poolieabentley: so is it stuck? would you like another review?23:20
abentleypoolie: So landing in 2.2 is stuck.  Another review would be helpful.23:21
abentleypoolie: https://code.launchpad.net/~abentley/bzr/is_executable/+merge/4219723:21
pooliethat one, or the one that supersedes it?23:22
abentleypoolie: That one.  The one that supsersedes it is for trunk.23:22
pooliethanks for the incremental diffs btw23:23
abentleypoolie: You're welcome.23:23
jelmerhi James, Poolie, Spiv, Aaron, Max23:25
jelmerspiv: My daily builds are mostly living under ~bzr now23:25
jelmernevermind, I see Max already mentioned that23:25
poolie:)23:26
james_whi jelmer23:26
abentleyjelmer: Hi.23:27
poolieabentley: what was the old behaviour?23:29
poolieoh, None?23:29
abentleypoolie: yes.23:29
pooliefairly obviously23:29
mkanatHey hey. Anybody available to do a review on a loggerhead merge proposal?23:35
mkanathttps://code.launchpad.net/~mkanat/loggerhead/view-default/+merge/4222223:36
mkanatthumper: Would you be the person to talk to about that, now? :-)23:36
maxbjelmer: Hi, a question. Why are the bzr daily recipes using version numbers like 1.4.0~bzr{revno}~ppa{revno:packaging}+{revno:debian} ? The ordering of {revno:packaging} and {revno:debian} is inverted to what feels natural to me?23:45
pooliehi mkanat23:45
mkanatHey poolie! :-)23:46
pooliemaxb: i agree23:46
poolieabentley: i replied; on the whole it seems like a good change but some testing wbn23:46
poolieperhaps we should do that within hudson23:46
poolieor just manually23:46
abentleypoolie: What kind of testing do you have in mind?23:49
thumpermkanat: hmm23:50
thumpermkanat: I'm not entirely sure23:50
thumpermkanat: poke poolie :)23:51
mkanatthumper: Hahaha, okay. :-)23:51
mkanatpoolie: So, any thoughts on who can do my loggerhead review there?23:52
mkanatpoolie: Or do you just want me to check it in w/o review? (Not sure how comfortable I am about that, although I have tested it.)23:52
pooliei probably could23:52
abentleypoolie: In the cover letter I said "This branch fixes RevisionTree.is_executable to treat directories and symlinks the same way as other Tree implementations-- to return False rather than None."  Was that not a clear enough statement?23:53
pooliesorry, you did23:53
poolieperhaps it is worth mentioning in news though23:54
poolieis this going to systematically change what's returned by iter_changes in non-test cases?23:54
pooliemkanat: shall we discuss it in #launchpad-dev?23:55
mkanatpoolie: Sure, I'm there now.23:55
abentleypoolie: I believe only PreviewTree, because only PreviewTree can use RevisionTree.is_executable in its  it only changes iter_changes when it involves PreviewTree, because only PreviewTree uses is_executable to implement Tree._comparison_data.23:57
abentleypoolie: I believe only PreviewTree, because only PreviewTree can use RevisionTree.is_executable in its _comparison_data implementation.23:58
abentleySo only iter_changes on PreviewTrees should be affected.23:58
poolieso i'd comfortably +1 it now if you could run the tests of the relevant plugins23:59
pooliethat might be a bit annoying if the test suites are not obviously clean to start with though23:59

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