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

james_wmwhudson: thanks for the pointer to iolaus01:37
james_wlifeless: sounds similar to some of the ideas you were telling me about: http://github.com/droundy/iolaus01:38
* james_w crashes01:38
jelmer\o/ it's in haskell01:43
lifelessjames_w: yes, there are similarities01:46
poolieigc, re bug 52417701:47
ubottuLaunchpad bug 524177 in bzr "Doc rebuilds are deleting chm files" [Undecided,New] https://launchpad.net/bugs/52417701:47
poolieis that some kind of problem with the scripts on escudero?01:47
pooliealso, when you file bugs, can you please triage them too?01:48
poolieno point making someone else reopen the bug to do it01:48
pooliespiv, maybe at the end of the eintr thread we should add something about it to the developer guide01:55
spivpoolie: yeah01:56
spivpoolie: and, assuming we keep until_no_eintr (which I think we need to for reading from pipes at least), put a very clear warning in its docstring.01:56
spivProbably with a pointer to full treatment in the developer guide.01:56
pooliehm01:57
poolieso until_no_eintr is a bit dangerous because it's highly likely to be needed on functions that can return partial results01:58
poolieand you need to loop separately on them too01:58
poolieperhaps01:58
pooliei suppose it's not actively dangerous, just often not sufficient01:58
poolieso a patch that describes the way these things should be handled might be a good way to get to agreement with gzlist01:58
pooliejust an idea01:58
pooliealso01:58
pooliewe could add a test_source for known broken apis01:59
spivRight, so until_no_eintr is right for things that are very close to the underlying syscall, or at least std libc, interface.02:02
spivBut as soon as you have any layers between that and until_no_eintr it's probably wrong.02:03
spivAnd you either need to push the eintr handling down into a lower layer, or use a different API entirely.02:03
spivI think I am converging on agreement with gzlist.02:04
spivThere was a disconnect because he wasn't aware of the pipe.read issue being a valid and appropriate use of until_no_eintr, so he was of course sure the right thing was to rip out until_no_eintr, whereas I was of course sure we still wanted it :)02:05
spivI'm not aware of a better alternative for the pipe.read than just wrapping it in until_no_eintr, but if one comes up we can evaluate that.02:05
lifelessfreetown2: hmm, 350mb apt-get update02:11
lifelesserem grade.02:11
poolielifeless: ?02:19
lifelesspoolie: lucid moving fast02:19
=== _thumper_ is now known as thumper
parthmpoolie: I am going through your review comment https://code.launchpad.net/~parthm/bzr/2.0_376388_dot_bazaar_ownership/+merge/1959303:37
parthmDoes http://pastebin.com/m4d62c257 seem like a reasonable approach in osutils?03:37
parthmI also plan to add osutils.open that optionally takes ownership_src arg. This can then be used succintly for creating files like log and conf.03:38
poolieparthm: that looks pretty reasonable03:53
poolieparthm: raise just one warning when it fails, and use trace.warning not warnings.warning03:55
parthmOK. Thanks.03:55
parthmI saw your comment regarding making this patch for trunk. That sounds fine to me. I am thinking that for now I will continue working on the same branch so that review comments are not lost. Then it can be merged up?03:57
poolieyep03:58
parthmOne more question, is there a doc that lists the dependencies we need to have in order to hack bzr? I have been installing packages seperately one at a time as I hit issues (pyrex, testtools, pyftpdlib, subunit etc.).03:59
parthmDue to time some tests also get skipped.03:59
poolieis this on ubuntu?04:00
pooliethe easiest way is to say 'apt-get build-deb bzr'04:00
spivTheoretically the INSTALL file should list the dependencies, but that part of it seems to be out of date.04:02
parthmYes. Its ubuntu. build-deb sounds good. Thanks.04:04
parthmYes. INSTALL does look out of date :)04:05
poolieparthm: what do you think of http://pastebin.ubuntu.com/379525/04:50
poolieare there any other questions it should answer?04:50
parthmpoolie: This certainly answers most of my. I wasn't aware of the appendpath trick. Maybe we can have pointers for getting further help (irc, mailing list). Specifically I faced a problem getting into irc (i am new to it) as it required a registered nick, I kept getting "cannot send" messages before I googled and realized what was happening.05:00
poolieyeah that kind of sucks actually05:00
pooliei'll add some pointers05:00
parthmMaybe somewhere a tip can be put in regarding avoiding "resubmit merge request" as comments are lost. I made that mistake.05:01
parthmThe doc looks good.05:02
parthmI seem to have hit upon an interesting situation. http://pastebin.ubuntu.com/379534/ Not sure what I did (maybe ^C of some test?), I ended up with some unknown file/dir which don't exist on disk. How do I get rid of it?05:07
spivparthm: that's pretty weird.05:11
poolielifeless: did you or anyone already register #bzr with freenode?05:14
lifelesspoolie: yes years ago05:18
pooliedid you register the group too?05:19
lifelessdon't know what you mean05:20
poolieok, that works05:20
lifelessI've just added you to the channel access list though05:20
pooliehttp://freenode.net/group_registration.shtml#groupcontacts05:20
lifelesswhat does that mode do ?05:21
poolieallows non-registered users to talk05:22
poolieisn't it obvious? ;-)05:22
parthmNice :)05:22
lifelesspoolie: no, its not :P05:22
lifelesspoolie: you might like to drop op though; and tell chanserv the mode bits you want, otherwise netsplits can confuse things.05:23
=== ubott2 is now known as ubottu
lifelesspoolie: [dropping op because freenode frown on folk sitting with op on for extended durations, telling chanserv so that it sticks properly]05:23
poolieok05:24
poolie>  freenode frown on folk sitting with op on for extended durations05:24
pooliewhy?05:24
lifelesssomething about community spirit; I don't recall really.05:25
lifelesshttp://freenode.net/using_the_network.shtml05:25
lifelessUse the chanserv "op" command to obtain channel operator status only when needed. This will help to keep your channel temperature low and reduce conflicts.05:25
lifeless</quote>05:25
parthmpoolie: I plan to send a new merge request for 2.0_376388_dot_bazaar_ownership against the trunk. Its seems overrideAttr are not available in 2.0. I will be using them for writing the tests as you suggested.05:25
pooliehm05:26
lifelesspoolie: /msg chanserv access #bzr list -- thats what I looked at when you asked, and you weren't there so I did05:26
poolieyeah, i see05:26
lifelessaccess #bzr add poolie05:26
pooliei think all the core devs should have access05:26
lifelessI don't know if that makes you fully-capable; I don't  know enough to tell.05:26
lifelessI suggest you try adding e.g. jam05:27
poolie'flags #bzr' gives more linenoise05:27
lifelessif you can't I'll dig deeper to find out how to make you as-capable as me05:27
pooliehang on05:27
poolieso you have also sRA bits05:28
lifelessI don't know what they mean05:28
poolieand f05:28
lifelessI didn't want to randomly type stuff in until I check05:28
lifelessare you able to add jam ?05:29
poolieoh go on :-P05:29
cody-somerville+f - Enables modification of channel access lists.05:29
cody-somerville +F - Grants full founder access.05:29
pooliesend chanserv help flags05:29
poolieso i think i can't grant access, but i'll try05:29
poolieyeah, i can't grant rights05:30
poolieso i think i need you to do05:30
poolieflags #bzr poolie +*05:31
lifelesspoolie: you look the same as me now05:31
poolieew05:31
pooliesweet, thanks05:31
cody-somervillepoolie, lifeless: You guys should get the +F flag from Christel (who is a freenode staff member IIRC).05:32
lifelesscody-somerville: thanks for helping out05:32
pooliecody-somerville: by asking christel, i suppose?05:33
* cody-somerville nods.05:33
cody-somervillelifeless, Is that a polite way of telling me to bugger off? :=)05:33
poolieseems away atm05:33
poolieno, seriously, thanks05:33
cody-somervilleIf you guys register yourself as a group, you can get your own cloaks and then you grant anyone with that cloak certain privileges (ie. ops).05:34
Kamping_Kaiserjelmer: out of intrest, does that subvertpy test need disabling in testing/unstable or only stable?05:34
pooliecody-somerville: right, i was just asking about that too05:34
pooliei wonder if we should register our own group or be subsidiary to canonical05:34
lifelesscody-somerville: no, its me saying thanks05:34
poolieistr some mail about this05:34
lifelesscody-somerville: I so rarely look at IRC modes it all pages out.05:34
lifelesspoolie: I think we should be like ubuntu, or perhaps subsidiary to ubuntu - more than staff can help.05:35
lifelesscody-somerville: besides which, I have no politeness chip.05:35
poolietheir policy seems to prefer a company05:35
lifelesswhose?05:36
pooliefreenode's policy05:37
lifelesshmm, odd.05:37
poolieok, so it's filed now05:37
pooliewe'll see05:37
cody-somervillepoolie, Ubuntu is a registered group.05:37
pooliei'm glad that's sorted05:37
poolieok, i tried to register Bazaar c/o Canonical05:37
cody-somervillepoolie, You have a cloak of canonical/launchpad/poolie05:37
poolieand i granted flags to some core devs05:38
lifelesscody-somerville: are cloaks like bitmasks ?05:38
cody-somervillelifeless, They mask your hostname05:38
lifelessyes I know that05:38
lifelessbut their value05:38
lifelesscan you have e.g. canonical/launchpad/ubuntu/fsf/bazaar/lifeless05:38
lifelessoh, add debian05:39
pooliei think they are hierarchical05:39
lifelesshmm thats a bit annoying05:39
lifelesscommunity membership is more setlike05:39
poolieone propeller beanie at a time please05:39
lifelessor can you choose amongst many cloaks you have permission to use ?05:39
lifeless(at login time I mean)05:40
cody-somervilleYou can only have one but you can combine them - although its a bit awkward.05:40
cody-somervilleSome people have: pdcp/supporter/ubuntu/member/$nick05:41
cody-somervilleand what not.05:41
pooliek05:42
poolieso more to the point is """[+o]  attracts the attention of participants who react negatively to authority. Have your nick added to the channel access list and op yourself only when needed. """05:42
lifelesshttp://web.media.mit.edu/~marcelo/cornucopia/05:43
mneptokpoolie: OH, LOOK AT *YOU*, MISTER IMPORANT!05:43
pooliesee05:43
* mneptok pouts in the corner05:43
* cody-somerville recommends a script created by Dennis Kaarsemaker, http://www.kaarsemaker.net/downloads/code/chanserv.py05:43
parthmI am getting two failures while running blackbox selftest on unmodified trunk http://pastebin.ubuntu.com/379546/ . Is this expected?05:44
mneptokIIRC, i had a /canonical/staff Freenode cloak when i was an employee05:44
lifelesscody-somerville: sadly its for xchat :P05:44
lifelessparthm: no, because pqm selftests trunk on every commit05:45
mneptoki think "canonical/staff/bzr" would look sexy on poolie05:46
pooliethat's pretty strange05:46
pooliei pick up my wizard staff and cloak05:46
spivparthm: hmm, both in "expectFailure"05:46
mneptokwhile lifeless should get canonical/staff/i/get/around/more/than/a/monaco/hooker05:46
spivparthm: what version of testtools do you have?05:47
pooliek05:47
poolieso that's done05:47
lifelessmneptok: how much does a monaco hooker get around?05:47
poolienow i don't need to document05:47
parthmspiv: testtools-0.9.2. I installed it locally from a downloaded tarball.05:47
poolieok, i think this ^^ is exactly what i was reading about inappropriate behaviour :)05:47
mneptoklifeless: my memories of that time in my life are kinda hazy ...05:47
mneptokwait ... was that out loud?05:48
pooliebut presumably in their maserati05:48
spivparthm: hmm, that's what I have (well, a deb saying 0.9.2-1, from the bzr PPA IIRC)05:48
lifelessspiv: doesn't look like testtools to me ?05:48
lifelessits interesting that some extensions are not built05:49
lifelessparthm: try running 'make'05:49
* parthm running tests again after make05:50
spivparthm, lifeless: FWIW, trunk with and without extensions passes those tests for me, as known_failure05:50
lifelessah05:51
lifelesscould be testtools then, but that version should be fine05:51
parthmI see the same failures even after make. :(05:51
lifelessparthm: are you sure that version of testtools is being loaded?05:51
spivparthm: what if you don't use --parallel=fork?05:52
spiv(and what version of subunit?)05:52
poolieparthm: you can vote on https://code.edge.launchpad.net/~mbp/bzr/doc/+merge/19682 if you want; I put in your suggestions05:52
lifelessoh, I didn't realise subunit was in there. Smells like an old subunit perhaps.05:52
spivlifeless: neither did I at first, but parthm sensibly included the command line in the paste :)05:52
parthmlifeless: Yes. I see the correct path in the error log.05:52
parthmsubunit is 0.0.2 from packages05:53
lifelesspoolie: as a potential user, you might like https://code.edge.launchpad.net/~lifeless/testresources/bug-522338/+merge/1968405:54
lifelessparthm: thats pretty old05:54
lifelessparthm: what platform are you on?05:54
parthmpoolie: will do. thanks.05:54
parthmlifeless: I am using ubuntu 9.1005:55
parthmwill run again w/o fork.05:55
lifelessparthm: you might want to grab the subunit PPA, it has newer subunit, testtools all packaged05:57
pooliemaybe we should add a version assertion to bzr?05:58
lifelesspoolie: it doesn't turn up all that often. We can if you like05:58
pooliemaybe next time05:58
parthmyep. subunit was the problem. all tests pass without fork. will install the latest ppa.06:00
parthmi agree with poolie, it would be good to have a version check. for someone new to bzr codebase its very helpful if the error message clearly indicates this.06:01
parthmthanks for the help06:01
parthmgot to go. have a nice day!06:31
Kamping_Kaiserjames_w: bzr-builddeb from testing fails to build on stable ( http://paste.debian.net/60457/ ). Would this be a dependencies issue, or is the setup.py file actually broken?06:38
quicksilverHmm. bzr missing defaults to 80 cols with no terminal on stdout?06:39
quicksilverthat seems nasty.06:39
lifelessquicksilver: it defaults to your terminfo06:40
lifelessand if there is no terminal, we use something that will often be sensible06:40
lifelessKamping_Kaiser: possibly a parser change in rst06:41
quicksilverI'd hoped --line would default to infinitely long lines06:41
quicksilver(if there was no terminal)06:41
lifelesswe did that for about 3 days06:41
lifelessafter gigabytes of output in test runs it got changed06:41
quicksilverok :)06:41
lifelessI can see your argument, perhaps file a bug - we may have solved our issue the wrong way.06:42
Kamping_Kaiserlifeless: rst?06:42
lifelessyou could mention that other tools defaults to no-apparent-limit (if they do)06:42
lifelessKamping_Kaiser: ReST - restructured text06:42
Kamping_Kaiseroh06:42
lifelessthe language README is written ni06:43
mneptokNI!06:43
Kamping_Kaiserlifeless: would that be bzr's rest parser? I'll check the changelog incase theres some info06:43
lifelessno06:43
lifelesspython module06:43
Kamping_Kaiserok06:43
quicksilverlifeless: what I'm actually doing is writing a command line tool to analyse a bunch of repos with --missing and deduce some things about their topology.06:45
quicksilverlifeless: like, which ones have already been merged into "mainline", and which of the non-merged ones shared common parents, etc06:45
quicksilverlifeless: are you aware of any prior art?06:46
lifelessquicksilver: bzr removable06:51
Kamping_Kaiserlifeless: looks like its a stray space. whats the preferred way of submitting trivial changes? patch? bzr branch?06:53
quicksilverlifeless: thanks. Interesting. I had slightly more ambitious plans but that's definitely the basic function.06:57
Kamping_Kaiser(used a patch :))07:01
lifelessKamping_Kaiser: 'whatever works'07:24
lifelesspoolie: the apt-cache policy bug is committed to apt trunk07:50
pooliegreat07:51
lifelessvery small patch for being open for 5 years :(07:55
pooliemany are07:55
pooliei'd like to do a scatterchart of (open_time,close_time)07:55
ejathi .. anyone can help me with this bug 52426908:00
ubottuLaunchpad bug 524269 in bzr "cant bzr update in development trunk" [Undecided,New] https://launchpad.net/bugs/52426908:00
naoki_Hi08:03
naoki_http://paste.ubuntu.com/379585/08:03
naoki_bzr branch svn+ssh://...  fails on Windows.08:04
naoki_I think it isn't a bug of bzr-svn.08:07
ejatlifeless: thanks for changing the description .. so confirm its a bugs ?08:14
lifelessejat: doubt it08:17
lifelessejat: I suspect you're missing ca-certificates or something08:18
naoki_I read strace. All opened fd is closed correctly.08:19
naoki_I can't find a suspect.08:19
poolienaoki_: hello!08:20
lifelessnaoki_: disable your virus scanner08:20
pooliethe first error looks like one we fixed recently08:20
poolielifeless: you're probably right but that's such a bad thing to have to say :-/08:21
lifelessnaoki_: its not hooking in at a low enough level, so it is interfering with normal system calls08:21
lifelesspoolie: it is; I blame microsoft.08:21
ejatlifeless: sorry .. after upgrade .. im missing the bzr-svn .. after reinstall bzr-svn .. working fine08:23
ejatlifeless: can i change the status to invalid ?08:26
lifelessI hope so08:27
poolielifeless: i mean other apps must hit this08:29
pooliewriting a file then reading it is not such a strange thing to do08:29
poolieperhaps we should show a message and block08:30
lifelesspoolie: sure08:30
naokiIn linux, strace shows close() correctly.08:41
naokiBut in Windows, Process Monitor desn't show CloseFile!08:41
poolieinteresting08:42
naokihttp://paste.ubuntu.com/379598/08:43
naokiIn line 86, CreateFile failse. (rename)08:44
naokiIn line 85, WriteFile happens to pack file.08:44
naokiThere are no CloseFile between line 85 and 86.08:45
naokihttp://paste.ubuntu.com/379599/08:45
naokiThis is strace in Linux.08:46
naokiwrite(7, "E", 1) is writing 1 byte.08:47
naokinext, close(7), and then, rename() happens.08:47
lifelesspoolie: I've fixed the sort performance in testresources09:14
pooliemm i saw09:14
pooliei wonder if the effort estimates are actually accurate enough that it's worth sorting carefully09:15
lifelesspoolie: well, it takes 0.02 seconds to sort for u1 now09:20
lifelessso there is room to grow :P09:20
lifelessanyhow, its not sorting carefully now09:20
lifelessits sorting quickly09:20
lifelesspoolie: you might find http://www.youtube.com/watch?v=1HatEDkNnn8 and the related videos interesting09:42
poolieigc, you really don't have to finish the explorer bug tonight09:51
jelmerKamping_Kaiser, it needs disabling when subvertpy is built against svn < 1.510:08
Kamping_Kaiserjelmer: <= or < ? I thought i had 1.5.1, since its a stable system10:10
jelmerKamping_Kaiser, <10:10
Kamping_Kaiserhmm. most odd.10:10
naokiI want subvertpy binary package...11:11
jelmernaoki: for windows you mean?11:11
naokiYes11:11
jelmernaoki: Isn't subvertpy included in the windows installer?11:11
naokiYes. But I test bzr-svn with python2.6 and python2.5 I have.11:12
naokiYes. But I'd like to test bzr-svn with python2.6 and python2.5 I have.11:12
naokiWow! I can build subvertpy!11:19
naokiI can reproduce svn+ssh: problem with Python 2.6...11:23
jelmerwhich problem?11:25
naokiIn Windows, bzr branch svn+ssh://.../foo foo fails.11:28
naokisvn+http is OK. In Linux, all OK11:28
naokitraceback is http://paste.ubuntu.com/379585/11:29
naokistrace in Linux is http://paste.ubuntu.com/379598/11:29
naokiProcmon in Windows is http://paste.ubuntu.com/379599/11:29
naokiIn Linux, close() called after last 1-byte write()11:29
naokiIn Windows, CloseFile() isn't called after last 1-byte WriteFile()11:30
naokiSo rename() fails.11:31
jelmernaoki: that doesn't seem related to bzr-svn11:36
jelmerit happens deep down in bzrlib (though it's perhaps masking another error from bzr-svn)11:36
lifelessnaoki: have you tried turning off your virus scanner? just to see?11:37
naokiI've disabled auto-protect feature in AntiVirus. But I can't totally disable AntiVirus because I am using my company's PC.11:40
lifelessthe lack of a close is interesting though11:41
lifelessperhaps a generator in the svn side not completing appropriately11:41
=== jayne_ is now known as jayne
radoejelmer: is the usage of --layout=trunkX (like trunk2) documented somewhere?12:20
=== mrevell is now known as mrevell-lunch
jelmerradoe: What layouts are available you mean?12:26
jelmer"bzr help svn-layout"12:26
radoejelmer: no, I had to used --layout=trunk2 to be able to svn-import a somewhat weird svn repo. And Ihad to look into the source to figure this out, as it is not mendtioned anywhere. bzr help svn-layout only mentions trunk without an additional level.12:28
radoeHm, my connection has some serios lag, sorry for the typos...12:29
jelmerthe 2 just means two levels of directories before the actual branches12:30
radoejelmer: yes, I figured this out, but had to look into the sources to get it. And I'm not sure why I had to use it anyway, because my trunk/branches are directly below the URL I specified. Let me explain about layout used in SVN a bit...12:34
radoejelmer: The repo root used is svn+ssh://app/svn/instsrv. The repository has a /packages directory, which holds individual packages, like nagios-client12:36
radoejelmer: so I tried to svn-import like "bzr svn-import svn+ssh://somehost/app/svn/instsrv/packages/nagios-client"12:37
radoejelmer: and got the error  "12:37
radoe"bzr: ERROR: The specified path is inside a branch."12:38
jelmerradoe: svn-import imports all branches in a repo or all branches under a specific directory12:38
jelmerradoe, it looks like you're trying to retrieve an individual branch12:38
radoejelmer: i had to specify layout=trunk2, simply trunk did not work (same error)12:38
jelmerradoe: for an individual branch, use "bzr branch svn+ssh://somehost/app/svn/instsrv/packages/nagios-client nagios-client"12:39
radoejelmer: well, like I said, the repo is somewhat weired. It holds different packages below /packages, each with trunk and branches.12:40
jelmerradoe, what is the repo root?12:41
radoejelmer: svn+ssh://somehost/app/svn/instsrv/12:42
jelmerradoe, does it say it's using trunk2 when it starts?12:43
radoejelmer: I had to specify trunk2 explicitly like in "bzr svn-import --layout=trunk2 svn+ssh://rdoering@zsl01/app/svn/instsrv/packages/nagios-client" to get what I want.12:46
jelmerradoe: Does the repository also have parts that do not follow the branches/tags/trunk convention?12:46
jelmeror perhaps at different levels?12:47
jelmerthat would confuse the heuristics12:47
radoejelmer: possible, let me check...12:48
radoejelmer: below /packages/*/ there is always a trunk, only some have a branches/ dir12:50
jelmerradoe, and packages is the only top-level directory?12:50
radoejelmer: no, I'm lookiong at the others currently.12:51
radoejelmer: ah, in parallel to /packages there are two directories which qualify for trunk1 layout.12:52
Ngwhy would bzr think a file has been removed/added when its md5sum hasn't changed?13:01
PengBecause you did "bzr rm" and "bzr add"?13:02
PengOr an equivalent merge?13:02
PengThere's more to a file's identity than its contents.13:02
NgI'm merging an update from my pristine upstream branch into my local modified branch, but I haven't explicitly rm'd/add'd these files13:02
Ngnormally when I do this it just merges in the upstream changes13:02
beunoNg, maybe the merge deletes it?13:03
Nghttp://paste.ubuntu.com/379718/ that's the pristine branch, with a diff of the revision that relates to the bzr import of the new release zip13:04
Ngskipping down to the bottom of that, version.php - after the merge that change shows up as a full conflict13:04
Ngnot the whole file, just that one line. I'm sure that's within bzr's merging abilities, it always has been before13:05
NgI wonder if this is some subtle, barely visible side effect of bzr import13:05
beunohm13:07
beunojames_w may know13:10
james_wwhu?13:11
james_wNg: I'm not too sure13:13
james_wNg: why do you say bzr thinks a file has been removed/added?13:14
Ngjames_w: hmm, that might actually just be fallout from trying to correct the conflicts. I just branched afresh and did the merge and it looks more like it thinks that lots of files that are already in the branch have been added13:15
naokiI got it!13:16
naokiplink.exe have an pack file handle!13:16
james_wNg: can you show me the bzr status of the fresh merge?13:16
Ngjames_w: http://paste.ubuntu.com/379723/ is the merge itself, http://paste.ubuntu.com/379724/ is bzr st13:17
moldyhi13:17
james_wNg: it seems like the root id of your tree changed somehow13:18
james_wthat's not usual13:18
moldyis there decent bzr completion for zsh yet?13:18
james_wNg: I assume that you don't do anything odd on your branch, and the pristine branch just uses "bzr import" each new version?13:18
Ngjames_w: correct13:20
james_wNg: care to run a couple of bits of python for me?13:21
Ngjames_w: sure :)13:22
james_wNg: python -c "from bzrlib.branch import Branch; print Branch.open('.').basis_tree().path2id('')"13:23
james_wrun that in both branches13:23
Ngjames_w: both say TREE_ROOT13:24
james_woddness13:25
james_wNg: not different tree roots then apparently13:25
james_wlets try all the file ids changing13:25
james_wpython -c "from bzrlib.branch import Branch; print Branch.open('.').basis_tree().path2id('license.txt')"13:25
james_win both again please13:26
Ngok those are different13:26
=== mrevell-lunch is now known as mrevell
james_wok13:27
james_w python -c "from bzrlib.branch import Branch; b = Branch.open('.'); rev = b.revision_history()[-2]; print b.repository.revision_tree(rev).path2id('license.txt')"13:27
james_wthat in the pristine branch please13:27
james_wshould print the same as the working branch did13:27
Nghuh, no, it's still different13:30
NgI can make both branches available if that would be helpful, there's nothing secret in either13:33
NgI hope the answer isn't that I'm doing something stupid ;)13:33
james_wI can take a look13:34
james_weasier than IRC-RPC13:34
Nghehe13:35
Nghttp://mairukipa.tenshu.net/~cmsj/bzr-wat.tgz - "www" is the working tree, "wordpress" is the upstream imports13:35
naokiPing: jelmer13:37
jelmernaoki: pong13:37
naokiI foud ssh client have "upload/xxxxx.pack" handle.13:38
naokiI tried cygwin ssh and plink (PuTTY)13:38
naokiBoth client have pack file handle.13:38
naokibzr branch from svn+ssh success if I kill ssh client before renaming ".pack" file.13:39
naokiIs there any way to kill source.transport connection before groupcompress?13:40
naokiOr bzrlib should not rename but copy .pack file?13:40
jelmernaoki: why would that be necessary?13:40
naokiBecause commit_write_group() renames .bzr/repository/upload/randomname.pack13:42
naokiSo ssh client should not have the handle of the file.13:42
bialixhi naoki, jelmer13:45
naokihi13:45
jelmernaoki: The ssh client doesn't handle the bazaar packs at all13:45
naokiI don't know why ssh client have a handle of pack file.13:46
naokiBut procmon tells me the ssh client have the handle.13:46
naokiAnd I success to branch when I kill the ssh client.13:46
bialixnaoki, can you convert your patch for unicode Popen to merge proposal?13:48
bialixthis is related to bzrlib13:48
naokiOkey, I'll do. bialix13:49
bialixnaoki: about SSH: do you have a real reasons to prefer plink over pageant?13:49
naokiI use pagent daily. So I set SVN_SSH=plink.13:50
naokiIs there way to use paramiko with ssh?13:50
naokiI've tried http://sshwindows.sourceforge.net/13:51
naokiBut ssh.exe also grip a handle of pack file.13:52
bialixsorry, I meant paramiko13:52
naokiVery very strange..13:52
bialixsvn has no pack files, right?13:53
naokiProcmon tells me only ssh client have the handle when renaming.13:53
naoki# I added "time.sleep(100)" in front of rename()13:54
jelmernaoki: It's inheriting handles from the parent process perhaps?13:54
naokiOh13:56
naokiHow libsvn sucks!13:56
jelmernaoki: I don't know, just speculating13:58
naokiCan paramiko do port forward?14:02
naokisorry, port forward cant convert svn+ssh://remotehost to svn://localhsot14:03
jelmernaoki: you can't use paramiko for svn+ssh14:04
jelmernaoki: you need to have a ssh executable14:04
jelmernaoki: svn and svn+ssh are different protocols14:04
james_wNg: so, there's something a little odd going on here14:04
james_wNg: I can't pinpoint any bugs. Is there a chance you had this happen before and dealt with it?14:04
maxb*blink* Why can't you use paramiko for svn+ssh?14:05
Ngjames_w: it's not impossible, but I don't immediately remember anything obviously weird happening previously14:06
james_wNg: ok14:06
james_wNg: something a bit odd happened when you merged the last couple of versions, but I can't really work out what14:06
jelmermaxb: Because we call out to libsvn14:09
jelmermaxb: and that just invokes ssh.exe14:09
maxboh, I see14:09
Ngjames_w: thanks for looking. If it was you, would you manually fix up this merge and keep using these branches, or reconstruct the working one from a fresh copy of the pristine branch?14:10
james_wNg: I'd fix up14:10
james_wNg: have you modified any of the files that it is complaining about?14:11
Ngjames_w: I don't think so. I can imagine I might previously have removed things like license.txt, but I shouldn't have any changes in the php/css stuff14:12
james_wyou did remove license.txt :-)14:12
james_win that case it's pretty much in the situation you want moving forwards14:12
james_was merges from the pristine branch should be much more happy now14:12
Ngjames_w: ok, thanks :)14:14
naokiafk14:15
=== salgado is now known as salgado-lunch
naoki_apr_proc_create uses CreateProcessW(bInheritHandles=TRUE)15:16
naoki_libapr/threadproc/win32/proc.c15:16
naoki_libsvn uses this function.15:17
naoki_http://msdn.microsoft.com/en-us/library/ms682499%28VS.85%29.aspx15:24
naoki_Inheriting handles is required for pipe.15:25
naoki_So, libsvn and libapr is not wrong.15:25
naoki_One option is killing connections before commit_write_group().15:28
naoki_Second option is pooling enough connections before start_write_group()15:30
naoki_Any other solutions?15:30
jelmernaoki: we shouldn't kill connections before commit write group, there might be more actions the user would like to do15:47
jelmerWhy would pooling connections before start write group help?15:47
naoki_when start write group, bzr creates pack file.15:53
naoki_A handle of the pack file is inherited to ssh client process.15:53
naoki_When commit_write_group, bzr renames the pack file.15:54
naoki_ssh client blocks renaming.15:54
=== salgado-lunch is now known as salgado
jamnaoki: if you set BZR_SSH=paramiko it will use pageant as well16:11
jamand avoid spawning a separate process16:11
jamah, but jelmer is saying you need an actual ssh process...16:11
jelmeryou can set BZR_SSH but that will just be ignored :-)16:11
jamnaoki_: what about a pre-exec function that closes the extra file handles16:13
jamall you need is stdin/stdout, right?16:13
naoki_libsvn creates ssh process. We cannot control it.16:14
jamwell, we could have an ssh wrapper16:15
jamjelmer: does it need something explicitly called 'ssh' ?16:15
jelmeryou can set a different executable in ~/.subversion/config16:16
naoki_or SVN_SSH environment16:20
naoki_But how the wrapper release handles?16:21
jamnaoki_: so we could set SVN_SSH before we call out to svn+ssh16:21
jamnaoki_: well, given that there is a program that can ask Windows what program has what files open, I'm sure you can enumerate your own file handles16:22
jamI don't know the functions16:22
jamthis: http://social.msdn.microsoft.com/Forums/en/netfxbcl/thread/37dc9843-2583-41fc-8260-b78183aa4bed16:23
jamsays there is NtQuerySystemInformation16:23
jamalso: http://stackoverflow.com/questions/733384/how-to-enumerate-process-handles16:25
jamnaoki_: possibly we could also open the file handle with "DELETE_OK" and possibly a rename-ok?16:26
=== beuno is now known as beuno-lunch
jamit seems surprisingly ugly: http://www.techreplies.com/development-resources-58/enumerating-handles-processes-c-like-procxp-782021/16:28
naoki_How about try rename, catch PermissionDenied, and then copy instead of rename?16:53
slicslakany macosx users here?  should I d/l bzr or use macports?  i prefer macports but I don't want to use it if the port isn't maintined well (It appears to be a few versions behind atm)16:55
naoki_In NewPack.finish()16:55
naoki_http://paste.ubuntu.com/379852/17:00
mobbyHi, sorry if this is the wrong place to ask this so feel free to point me in the direction (politely ;-) but I would like to know a bit more about co-located branches Bazaar.17:04
mobbyI don't know anything about co-located branches so you will have to have some patience :)17:05
mobbyReally my question is... How do colocated branches work? Or more specifically as a developer how would I use co-located branches day-to-day17:06
rubbsmobby: I'm not an expert, and I"m not too sure how they would work in Bzr, but colocated branches allow for multiple branches within the same directory17:07
jamnaoki_: given that the file may be >>GB in size, I'm not particularly happy with that solution, but it would be possible17:07
jamwhen does it get deleted, though?17:07
rubbsgit does this by having all of the repo information in one directory and you "switch" between the different branches.17:07
rubbsmobby: every time you switch you reload the working tree.17:08
mobbyah rubbs that the bit that I was really wondering about17:08
rubbsmobby: IIRC it would also let you have a project within a project.17:08
jammobby: so the way *I* do it isn't exactly colocated. I set up a shared treeless repository (bzr init-repo --no-trees) and then a single working tree (bzr co --lightweight trunk work)17:08
jamand that point you can create new branches cheaply17:08
jamand switch between them17:08
jamthe colo: plugin does something akin to this17:08
jamonly puts the branches under a new namespace "colo:" and hides them under .bzr/branches IIRC17:08
rubbsjam: just curious is this also the answer to the "externals" question?17:09
jamthe main reason I prefer not having them colocated17:09
jamis that I can have *multiple* working trees sharing the same set of branches17:09
mobbyyeah I saw the colo plugin, which intrigued me but I couldn't find much information for what it was all about and hence me coming here17:09
jamwhich I use fairly often17:09
jamI have a 'work' which is my primary action item, and then an 'alt_work'17:09
jamSo if I work on a bugfix, and submit it for review, I'm on to the next17:10
jambut the review needs some minor tweaks before landing17:10
jamso alt_work gets switched, fixed, submitted17:10
jamwithout disturbing the current work17:10
jamrubbs: do you mean bzr-externals ?17:11
rubbsjam: ah, I haven't looked into that recently. I'll go check it out.17:11
mobbyso I suppose the co-located branch thing works best with branches of the same project rather than branches of differing projects?... I have a feeling I might have asked a stupid question there...17:14
rubbsmobby: not a dumb question because I was a little confused. it works best with branches of the same project.17:15
mobbyah ok cool. thanks.17:15
rubbsnp17:15
jammobby: 'it works best' because switching a tree to an unrelated one takes a lot of effort17:16
jamotherwise we don't specifically care17:16
mobbyso rather than having folder upon folder of branches for each bit of work you are doing you can just have one folder which is the working tree and when you swicth branches the working tree files are updated to reflect that branch?17:16
jammobby: right17:16
rubbsmobby: correct17:16
rubbsjam: you beat me to it ;)17:17
jam(with or without the colo: plugin, as mentioned)17:17
mobbyah great thanks! Yeah that does sound good.17:17
rubbsmobby: I believe it was created to reflect a more git-like workflow.17:17
rubbsand that is the way git works (more or less)17:17
mobbyso I suppose if you had uncommitted changes in the working tree, if you switched you would lose those changes (if it doesn't warn you)?17:17
jammobby: generally it preserves them17:18
jamwith the idea that you may be switching to a new branch to put those changes17:18
jam(like a bugfix, etc)17:18
rubbsmobby: if it doesn't do what you want, you could potentially use shelve to get around the default behavior17:18
mobbyyeah sorry my VCS knowledge is pretty much reserved to CVS and SVN as that is what I've been using in working life. I decided that I would look into others, found Bazaar and think it is really very good. Thus I;ve been trying to improve my knowledge of Bazaar and its capabilities17:19
mobbyoh that;s cool it preserves them17:19
mobbythanks guys for your help.17:20
rubbsmobby: don't apologize for learning ;) I just thought I'd point that part out, didn't mean to make you feel ignorant.17:20
rubbsnp17:20
awilkinsSVN does switching between branches, but it's merging is painful17:22
mobbyno you didn't make me feel ignorant at all, I've learnt a lot in just a few mins :)17:22
mobbyyeah that's the other thing even my SVN knowledge is fairly limited as works process has not required further investigation into features17:23
rubbsgood to hear! I think I can speak for both jam and myself when I say we like to help people learn about bzr.17:23
mobbyI started trying to think of better ways of working, started learning about Bazaar, found out what VCS's can do (and realised how little I knew) and I've enjoyed using bazaar. I'm just trying to get as confident with it as possible so I can recommend its use in the compant i work for17:24
aleksander_mdoes 'bzr send -o patch.merge' include always by default the patch preview?17:25
* awilkins now has to install Vista (sob)17:25
naoki_os.O_NOINHERIT avoids HANDLE inheritance17:26
aleksander_mthe mini-tutorial says that it 'usually' contains the patch preview, but I cannot get it included17:26
mobbyThanks again for the help guys. Bye.17:28
jamnaoki_: I thought you had to inherit handles to get pipes17:33
james_whi jam17:37
jamhey james_w17:37
james_wI'd like to merge https://code.edge.launchpad.net/~jameinel/bzr-builddeb/changelog-parser/+merge/18557 but I don't understand one of the comments in the file17:37
jamk17:38
james_wthere's a comment in there asking about it17:38
jamjames_w: the strict=True stuff?17:39
jamso the BASE file is used as a reference17:39
jambut its content won't ever be put into the final changelog file17:39
james_w# BASE lines don't end up in the output, so we allow strict=False17:39
jamjames_w: so we determine if THIS or OTHER should be used, based on whether they match BASE17:40
jam(if one matches BASE, then the other gets chosen)17:40
jamhowever, only THIS or BASE content is ever put into the file17:40
james_wright17:40
jammy idea was that17:40
jamif someone went through and cleaned up old content17:40
jamsuch that it now passes strict17:40
jambut didn't used to17:40
jamthen we can still use the advanced merging17:40
james_wI think that makes sense17:41
james_wthanks, merging now17:41
jamjames_w: I'm currently testing the md5sum caching logic17:42
james_wI just used the old code in a merge and got confused by it not conflicting on anything17:42
jamI have a patch, but want to make sure it works properly17:42
james_wgreat17:42
james_wwhich approach did you choose>17:42
james_wthe "correct" way?17:42
jamdownload .dsc, compare md5sums for files that are on disk17:42
jamI think that was the correct way17:42
jamanyway to avoid downloading the .dsc ?17:42
jamthough probably if it requires an extra round trip, we don't win17:43
james_wnot really17:43
james_wthey are small, so yeah, it's just round trip costs17:44
james_wwe should only download a .dsc once though17:44
jamwell, once per run at least17:44
james_wwell, twice for syncs, but yeah, that can't be avoided17:44
jam... why did it delete all of the old downloads?17:44
jamis that the cleanup when finished stuff?17:44
james_wyeah17:45
jam :,(17:45
jam:'(17:45
james_wI don't want the entire history of Debian and Ubuntu on jubany17:45
jamsure17:45
jammesses with my work, though :)17:45
james_wyou could change it to download in to the updates dir if that's not what it is doing17:45
jamwell, my testing17:45
james_wthen when you use --no-push they will stick around17:45
james_wand it will then just download the .dsc each time17:46
jamit downloads into updates, but even with --no-push they went missing17:46
james_wanyway, changelog merge improvements merged, thanks17:46
james_wah, maybe there's a finally block at a lower level too17:46
james_wthat's probably worth removing once we have the cache17:46
james_wthat's a win wherever it is used17:47
jam        if commit_db.has_commit_started():17:47
jam            revid_db.cleanup_last_run(cleanup, push_back)17:47
jam            commit_db.finish_commit()17:47
jamthat cleanup includes an rmtree17:47
james_woh, yeah, so not a win17:47
james_wwe could make the cleanup smarter then17:47
=== beuno-lunch is now known as beuno
jamjames_w: so how does that all work. You have  a global sqlite file, and if you start working on a package import, but don't finish it, the next run you nuke the wohle directory?17:51
jamwhat is the rationale?17:51
jamjust that you can't trust the intermediate steps?17:51
james_wyeah17:51
james_wI wasn't confident that the work wouldn't be in some inconsistent state17:52
james_wif bzr is atomic, and bzr-builddeb makes use of that in the correct way then we could just carry on17:52
james_wbut I wasn't confident in that17:52
jamgenearlly bzr is atomic17:53
jamgenerally17:53
jamhowever, I also see this:17:53
jamif push :commit_db.start_commit()17:53
jamwith *no* matching finish_commit()17:53
jamargh17:53
jamI missed the else:17:53
jamhttp://paste.ubuntu.com/379881/17:54
jamso it seems that when starting, we nuke the old content17:54
jamunconditionally17:54
jameither we first rollback, and then nuke it17:54
jamor we just nuke it17:54
james_wcleanup_last_run is misnamed17:55
james_wit's finish then cleanup17:55
james_wI think17:55
jamwell, it checks if there are rows in the db17:55
jamand if there are or aren't it calls cleanup_cb()17:55
jamso all code paths lead to cleanup17:55
=== asac_ is now known as asac
jamwhich rmtree(updates/<PACKAGE>)17:55
james_wah, yeah, we always cleanup17:56
james_wyou're right17:56
james_wwhich would interfere with any caching of the packages17:56
naoki_I've made patch and report bugs17:56
naoki_https://bugs.launchpad.net/bzr/+bug/52456017:56
ubottuUbuntu bug 524560 in bzr "bzr branch from svn+ssh fails on win32" [Undecided,New]17:56
jamwell, at least it shouldn't re-download files in a single run17:56
jamwhich is better for me17:56
jambut it would be nice to not re-download them between runs, since I'm using --no-push so lp doesn't get updated17:56
james_wyeah17:56
jamanyway, test is currently running to at least look for double-downloads of a single import17:56
james_wok, all your fixes are on production now17:59
jam\o/17:59
james_wincluding the encoding one17:59
james_wand it's up and running again17:59
james_wit's got 2000 nops to churn through though unfortunately17:59
jamjames_w: which.. requires getPublishedSources for all of them?18:00
james_wyeah18:00
=== deryck is now known as deryck[lunch]
jamjames_w: https://code.edge.launchpad.net/~jameinel/udd/single-download-524123/+merge/1973118:02
james_wjam: merged, thanks18:09
pynonoirHi. If I replace a normal directory with bazaar branches, by a shared repository with the same branches inside (same path for bzr+ssh), will my users have some problems when pulling/pushing ?18:13
jamjames_w: thanks18:13
jampynonoir: you should be fine18:14
Kinnisonas long as the urls to the branches don't change, you should be fine18:14
jamonly possible problems would be perms18:14
Kinnisonoh true; permissions if this is multiple unix users18:14
pynonoirthere are indeed multiple users18:14
* Kinnison typically doesn't expect repositories to be shared between users18:15
Kinnisonunless you *really* need the space savings, I'd say it wasn't worth the risk18:15
pynonoirKinnison: that was more to save bandwidth18:16
Kinnisonhmm18:16
Kinnisonin what sense?18:17
Kinnisongive me a use-case in which you expect bandwidth to be saved18:17
Kinnison(I'm not very well today; so forgive me if I'm a touch slow :-)18:17
pynonoirmmm, if there is a branch called A on the distant server. Then one of my users make a clone (bzr branch), do some modifications and then push it as a new branch on the distant server18:19
pynonoirmaybe only the delta can be sent if it pushed on a shared repo ?18:19
PengIf each user has a separate shared repo, you should still get most of the bandwidth savings..18:22
pynonoirPeng: good idea, I will do this18:22
pynonoirthanks18:22
Kinnisonand that will negate any user permissions issues too :-)18:23
=== deryck[lunch] is now known as deryck
=== radoe_ is now known as radoe
=== salgado is now known as salgado-afk
Lo-lan-doHi all.  What to do if bzr check tells me about sha1 mismatches?19:57
fullermdFlip a bit at a time until they match?   8-}19:58
Lo-lan-doHaha.19:59
Lo-lan-doAnd seriously?  Should I worry, or is it a harmless warning that should be marked as such?20:00
james_wI doubt it is harmless20:01
james_wunfortunately I don't know how to dig deeper20:03
Lo-lan-doWill bzr reconcile fix them?20:03
james_wI'm not sure about that either20:03
james_wyou could file a bug/question20:03
rubbsit wouldn't hurt, but doubt it would fix it.20:03
lifelessLo-lan-do: please file a question20:03
lifelessif the data is private, file a private bug20:04
Lo-lan-dolifeless: ?20:05
lifelessif the error message contains data that you feel is confidential, you can't get privacy on answers.lp20:05
lifelessbut you can in bugs20:05
Lo-lan-doOh, I see.  Launchpad.20:06
Lo-lan-doNo questions unless I register?20:08
lifelessyes20:09
lifelessif you don't want to register, you can mail the list20:09
Lo-lan-doI'll do that, thanks.20:11
mkanatmwhudson: Have there been any more hangs?20:44
mwhudsonmkanat: don't think so21:16
james_wLo-lan-do: what are the messages exactly?21:36
james_wperhaps others have seen them before or know what they will refer to, but I don't21:37
Lo-lan-dosha1 mismatch: ('6500@9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk%2Fgforge%2Fwww%2Fplugins%2Ffckeditor', 'svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:6500') has sha1 9287ea6b641b2676b769ce316258446d8f20f4fd expected da39a3ee5e6b4b0d3255bfef95601890afd80709 referenced by lolando@debian.org-20090923124104-8gq9ozsdlowgtyue21:59
_TiN_Hi, what is the solution to serve bazaar, with apache? I'm trying to add support for bzr-vcs in http://trac.usla.org.ar22:05
james_wLo-lan-do: aha, bzr-svn, that changes things a little. I'm still no closer to knowing if it's a problem or what to do about it though.22:07
mneptok_TiN_: http://doc.bazaar.canonical.com/bzr-0.15/http_smart_server.htm22:08
mneptok_TiN_: note the strongly worded "this is NOT secure!" bit22:08
Lo-lan-dojames_w: I'm re-running check, will paste output into a mail if it helps.22:08
lifelessmneptok: that warning is gone now22:09
james_wLo-lan-do: good idea, it might clue some people in22:09
lifelessmneptok: please ref current docs22:09
jamjames_w: the packaging script was stopped for a while, right?22:10
jamI just ran hottest-100 and got about 5 branches moved from 'ok' to 'packaging-out-of-date'22:10
james_wjam: yeah22:11
james_wjust catching up now22:11
jamwell, as of 2 hrs ago22:11
jamk22:11
mneptoklifeless: couldn't find CURRENT for FastCGI setup. but PEBKAC is more than likely to blame.22:12
_TiN_mneptok: I'm trying with fcgi and mod_python and doesn't work, I suspect bazaar is not generating correctly the app22:12
lifelessmneptok: http://doc.bazaar.canonical.com/latest/en/user-guide/http_smart_server.html22:13
lifeless'fast cgi bzr' into google22:13
mneptok_TiN_: is mod_python actually loaded as a module in your Apache configs?22:13
_TiN_mneptok: iep, In this tracs i have svn hg git22:14
mneptok_TiN_: FYI, i have never set up bzr+apache, so i'm not the best resource. please click that URL lifeless pasted.22:14
mneptok_TiN_: if you read that document, it's "the blind being led by the sighted." if you ask my advice, it's "the blind being led by the blind idiot." :)22:15
jamlifeless: it looks like we need to strip some zeros out of our sha1 strings (bug #524553)22:22
ubottuLaunchpad bug 524553 in bzr-windows-installers "Bazaar is getting wrong sha1" [High,Invalid] https://launchpad.net/bugs/52455322:22
jam:)22:22
lifelessjam: oh did you get an answer to it? my mail is closed...22:23
jamlifeless: he was getting "abcd0fgh..." and we were saying "abcd000fgh", of course his sha1 strings were only 35 chars long22:23
lifeless! where was he getting the truncated one from ?22:24
ubottuError: I am only a bot, please don't think I'm intelligent :)22:24
jamI'm pretty sure it amounts to using '%x' versus '%08x' sort of thing22:24
jamlifeless: I have no clue, custom code I would assume22:24
lifelessheh22:24
fullermdIt was compressed.  Space savings are important.22:26
jamfullermd: of course, the next step is to get a collision under these circumstances22:28
fullermdPshaw.  Everybody knows hashes don't collide.  I checked every file in my home dir, and none of the hashes were even close.22:30

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