/srv/irclogs.ubuntu.com/2008/06/15/#bzr.txt

jelmerok00:07
jelmerpackaged bzr-loom, bzr-avahi and bzr-upload00:08
lifelessnice00:08
lifelessbzr-search ? :P00:08
lifelesshmm00:08
lifelesstime to grab trackerd's source00:08
jelmerlifeless: Sure, once it's not under such heavy development anymore :-)00:09
beunolifeless, I thought of something I'll need for loggerhead in bzr-search. Using custom locations for indexes00:13
lifelessbeuno: open_index_for is the place to extend to do that00:14
beunoI'll take a shot at a patch as soon as I properly get LH using bzr-search00:14
lifelessI wrote it with that in mind, e.g. to allow indexing bzr-svn repositories to ~/.bazaar/search/UUID/00:14
beunogreat, should be easy-ish then00:15
lifelessspecifically, an index is given a root transport when its opened00:15
lifelessand separate branch object00:15
beunojelmer, have you continued using bzr-upload?00:17
jelmerbeuno: yeah, I use it now and then00:17
beunovila was relunctant to make it public yet, but, if there's going to be a deb, I suppose we should announce it somehow00:17
jelmerbeuno: Symlink support is a problem for some branches though, so I have to fallback to manual copying :-(00:18
beunoI have too, and haven't run into any major issues00:18
jelmerbeuno: I've just created a package, it's not been uploaded yet00:18
jelmerIf you'd rather not have it out there yet, I'd be happy to wait00:18
beunoactually, I'd prefer it is, so we can have more contributors  :)00:19
beunoand it seems to work good enough en most cases00:19
beunobut, well, vila has to agree too00:19
lifelessbeuno: did you upload your bzr-search LH branch ?00:24
beunolifeless, not yet, no. I was burnt out yesterday and was having problems getting the branch PATH to send to bzr-search (aka, don't hardcode the path)00:25
beunoI'm looking at it now, but I'm leaving to a birthday in ~20-30 minutes, so I don't know if I'll make it  :/00:25
beunoit's a stupid thing, really. I was just going around in circled yesterday00:26
lifelessrelease early release often :)00:32
lifelessjust push-with-caveats00:32
beunoyes, I just thought making people edit the source code to change my local path seemed pushing that too far00:33
beunoI'll try to fix it, and, if now, push anywa00:33
beuno*anyway00:33
beunolifeless, pushed it to: lp:~beuno/loggerhead/bzr-search_integration00:58
lifelessbeuno: cool00:58
lifelessbeuno: so why does LH need non-colocated indices?00:58
lifelessI mean:00:59
beunolifeless, it may not, but there may be use cases where LH can't write to the .bzr directories00:59
lifelessif a user creates an index00:59
lifelessthen other pull/push operations update it00:59
lifelessLH doesn't need to do indexing00:59
beunoyes, that should be the default behaviour00:59
beunohaving that hook is perfect01:00
beunoright now we have an odd timer which re-scans every 6 hours  :/01:00
beunobut I can see a few use cases where LH will only be able to read the repos, not write to them01:01
lifelessoh man01:01
lifelessI am loving this01:01
lifelessI'm looking around the tracker source code01:01
lifelessso to find where dpopen occurs I do a bzr search dpopen :)01:02
beunodesktop integration, very sexy01:02
lifelesswell01:03
lifelessI don't think bzr-search is a good idea for the searchbar ;)01:03
lifelessbut I wanted to see what tracker does under the hood01:04
lifelessalso look at telling it to ignore .bzr01:04
lifeless(I may be wrong about bzr-search being a good idea for the deskbar search, its just current opinion)01:05
beunowhy don't you think it's a good idea?01:06
lifelesscontext01:06
lifelesswhich is another way of saying that it will reduce precision01:06
beunohm, I haven't used tracker to know about how that can be achieved. It's the first thing I remove when doing fresh installs  :)01:06
beunobut, conceptually, being able to track down commits and source code *does* sound good for someone who uses such a thing01:07
beunoof course, there are many other more interesting places to get it working first, like bzr-gtk01:08
beunoand bzr-gedit01:08
beunowhich I suspect can share the code01:09
lifelessyah01:09
beunoI'm off to get drun... ehm, a birthday party01:12
lifeless:)01:12
lifelessoh oh oh I should do suggestions01:23
trovila: no packages for 1.6 for ubuntu yet. i didn't want to install it from source, that's all :)01:27
trovila: nm. i see there's a beta-ppa repo available now. i'll install from there01:46
lifelessok, this should be interesting02:08
lifelessindexing all debian source02:08
bob2haha02:08
lifelessremember that mega repo I created?02:08
lifeless16K branches, 22G02:08
lifelesswhile index is per-branch the underlying code isn't so coupled02:08
lifelessso:02:08
lifeless>>> import bzrlib02:09
lifeless>>> from bzrlib.plugins import search02:09
lifeless>>> index = search.index.open_index_url('.')02:09
lifeless>>> r = bzrlib.repository.Repository.open('..')02:09
lifeless>>> from bzrlib.ui.text import TextUIFactory02:09
lifeless>>> bzrlib.ui.ui_factory = TextUIFactory()02:09
lifeless>>>02:09
lifeless>>> index.index_revisions(index._branch, r.all_revision_ids())02:09
lifeless:)02:09
bob2bwaha02:12
trowhat does this mean? "bzr: ERROR: Repository KnitPackRepository('https://myusername@server.org/bzr/.bzr/repository/') is not compatible with repository KnitPackRepository('file:///home/tro/code/asdf/.bzr/repository/')"02:19
troi'm trying to push an existing checkout to a remote webdav branch02:19
trowebdav repo, sorry02:19
bob2is bzr-svn involved?02:21
lifelesstro: one of the repositories is rich root, one isn't02:27
trobob2: i thought it was, but i just tried with a brand-new empty one and it didn't work02:28
lifelesstro: how did you make the brand new empty one?02:28
lifelessbbiab02:28
trolifeless: i think i created the repo with the same version of bzr, but maybe 1.5 instead of 1.602:28
troi used bzr init-repo --no-trees02:28
troi'll try updating the bzr version on the remote side and recreate the repo (it's empty now anyway)02:29
bob2the remote one seems to be rich root02:30
trowhat's the default that is created with "bzr init-repo"02:30
bob2--pack-09202:32
troi don't have to worry about old bzr versions. should i just recreate the repo with --rich-root-pack ?02:32
bob2well, once you figure out which is whichm yeah02:33
trohow do i find out which format a tree is in?02:43
bob2repository, technically.  bzr info https://myusername@server.org/bzr/.bzr/repository/ ; bzr info file:///home/tro/code/asdf/.bzr/repository/02:43
trook, now i see that my checkout is the one that's in pack-0.92. any way to convert it to rich-root-pack?02:44
bob2what command ddi you run that caused that error? co?02:45
trobzr push02:46
trohmm .. when both the remote repo and the local checkout are in pack-0.92 i get the same error02:46
bob2dunno how you can get that error if both sides are pack-0.92, sorry03:46
lifelesstro: bzr info -v will tell you the format of a url04:30
lifelesstro: can you do that and show the repository format line here from each output04:30
lifelessafk again04:32
trolifeless: from the shared repo:05:14
tro       control: Meta directory format 105:14
tro    repository: Packs containing knits without subtree support05:14
trofrom the checkout:05:14
tro       control: Meta directory format 105:14
tro  working tree: Working tree format 405:15
tro        branch: Branch format 605:15
tro    repository: Packs containing knits without subtree support05:15
trothey're both pack-0.9205:15
lifelesstro: but you get that error when you push  ?06:08
lifelesstro: did you do 'bzr info -v URLITISPUSHINGTOO' ?06:08
kumi2hm, on linux I see a No handlers could be found for logger "bzr" message when I use the bzr command06:30
kumi2and I get duplicate messages on stdout06:30
kumi2[ 8249] 2008-06-12 23:11:37.746 INFO: All changes applied successfully.06:30
kumi2All changes applied successfully.06:30
=== mwhudson__ is now known as mwhudson
lifelesskumi2: please file a bug, that shouldn't happen08:02
=== Verterok is now known as Guest51306
=== _Verterok_ is now known as Verterok
=== mwhudson__ is now known as mwhudson
mwhudsoncodespeak's svn still seems to defeat bzr-svn11:36
jelmer0.4 branch?11:40
mwhudsonyeah11:41
mwhudsonjelmer: http://pastebin.ubuntu.com/20308/11:41
jelmerhmm, something is not concatenating urls right12:12
=== Leonidas is now known as Zedshawnidas
james_wHi all12:30
=== Zedshawnidas is now known as Leonidas
=== bigdo2 is now known as bigdog
sven_hi! i get a traceback when running 'bzr parent bzr+ssh://some/repository/some/file'. see http://pastebin.com/m1c159a5c . not sure if thati15:22
sven_not sure if that's supposed to work, but it seems wrong to get a traceback anyways...15:23
james_wwhat's "bzr parent"?15:25
jameshjames_w: by the look of the arguments list in the output, not the problem15:29
james_wno, I was just curious15:29
jameshprobably the parent of the current branch15:29
james_wit's not a command I've seen before, I was wondering where it came from. It might be useful to have in the core.15:30
jamesh  mysql_plugins        /home/sven/.bazaar/plugins/mysql_plugins [0.3.7]15:30
sven_sorry, bzr parent is from a plugin library i'm using. new paste with `bzr parent` substituted: http://pastebin.com/m4523db0215:32
sven_jamesh, james_w ^15:32
jameshsven_: so, looking at your output, the error came from the "bzr annotate" call rather than the "bzr parent" call in backticks15:32
sven_jamesh, yes15:33
jameshsven_: just trying to reproduce locally15:35
james_wI think you are seeing https://bugs.edge.launchpad.net/bzr/+bug/23706715:36
ubottuLaunchpad bug 237067 in bzr ""bzr check" on bzr+ssh:// branch returns ObjectNotLocked error" [Undecided,New]15:36
james_wread John's first comment for the details.15:37
jameshdon't see an exception, but it is pegging the CPU (this is bzr+ssh to localhost)15:37
sven_hmm, ok. i don't understand the thread completely. should i add my paste to that bug report?15:49
james_wI don't think it's needed, John seems to know what's goind on.15:51
james_wI triaged the report, so hopefully it will get noticed and fixed.15:52
sven_james_w, jamesh, thank you!15:53
james_wno problem15:56
=== sven_ is now known as sven_|away
qenseDoes bazaar support something like this: http://upload.wikimedia.org/wikipedia/en/a/ac/Hgk.png ?16:32
qenseI don't mean the graphical program, but the tree merging16:32
qenseIf it exists in bzr, how do you do it?16:32
qense(and is there a way to generate those fancy graphics? :))16:35
jelmer"bzr viz" is similar to hgk16:35
jelmer(part of bzr-gtk)16:35
james_whi qense16:44
qensehello james_w16:44
qensebzr viz looks great16:44
gourqense: yes, it is really great17:15
=== qense is now known as qense|away
=== dpm_ is now known as dpm
=== qense|away is now known as qense
rockstarHey devs, I'd like to take a whack at fixing bug 109115.  It's marked trivial, so I didn't think it'd require too much.19:59
ubottuLaunchpad bug 109115 in bzr "nicer error when unable to commit large files" [Medium,Confirmed] https://launchpad.net/bugs/10911519:59
james_whey rockstar19:59
rockstarHi james_w19:59
james_wI'm not sure how that should be tested, perhaps create a file like class that returns a huge amount of data20:01
james_wthe fixing it shouldn't be too hard though, just finding an appropriate place to put a try block.20:01
james_wyou might want to start off by creating the exception that will be thrown when the error is hit: bzrlib/errors.py20:02
rockstarjames_w, yea, I think I've got a fix.  The testing method seems to be the most difficult part.20:07
james_wit might be something that will be allowed in without a test, but if we can come up with a way then it would be better.20:08
rockstarYea, it's always better to have a test.20:08
rockstarHowever, writing a test is what's going to help me personally start understanding the code base itself.20:08
james_wtrue20:09
james_wso the problem is when you commit it reads a copy of the file in to memory, and then falls over?20:09
rockstarYea, if the file is too big, it fills up virtual memory.20:10
james_wat what level did you put the try block?20:12
rockstarbzrlib.tuned_gzip:352 has an if statement that makes sure the filesize > 0.  I added a filesize max limit to it.20:14
james_wah, ok.20:15
james_wso this can be tested really low then20:15
james_wI've never looked at tests for that area though.20:15
rockstarYea, I'll have to explore.  I'm still reading HACKING.txt - Thought it would be good to just give everyone a heads up that I was working on it.20:16
james_wah cool, thanks for working on it.20:17
james_whad you used bzr before you started your current job?20:18
bpetersonare there any plans to allow blocking and unblocking of revisions like svnmerge.py21:02
=== mwhudson_ is now known as mwhudson
mdamtAny insight how to run bzr like in launchpad.net? I mean the client uses bzr+ssh:// but don't want to provide the shell access to the users. Using /usr/bin/scponly didn't work.21:42
mwhudsonwell, launchpad uses a custom ssh server21:43
mdamtHmm tricky...21:43
fullermdYou could do it with any restricted shell.  I think scponly has some configurability...21:43
mwhudsonbut you can allow users to only be able to execute 'bzr serve --inet --allow-writes /'21:43
mwhudsonor whatever it is bzr+ssh uses21:44
mdamtSo basically using the shell that only allows to run bzr?21:44
mwhudsonnot really21:45
mwhudsonit's an openssh thing, you can restrict the commands a given user can run21:46
* mwhudson has to run away, biab21:46
mdamtOk, many thanks!21:46
=== keir_ is now known as keir
mdamtWow the solution was very easy. I made this script as the bzr-use-only shell: http://dev.blankonlinux.or.id/browser/infrastruktur/bzr-ssh-shell/bzr-ssh-shell22:10
=== tro|| is now known as tro
=== Pricey is now known as PriceChild
=== tro|| is now known as tro
beunomwhudson, I've been spying on your paste branch...  seems we're close to dropping turbogears and cherrypy  :_23:22
beuno:)23:22
mwhudsonbeuno: yeah, let's hope so23:23
mwhudsonit's very very hackish at the moment, but it does work23:23
beunomwhudson, btw, you wouldn't happen to know a good way to get a branch's path through the history object, would you?23:27
mwhudsonpath?23:27
beunoyes, absolute path to it23:27
mwhudsoni guess by looking at the bzrlib branch object23:28
mwhudsonwhy do you want it though?23:28
mwhudsoncurrently loggerhead works fine with branches access over e.g. http23:28
beunobzr-search integration  :)23:29
mwhudsonand, mumble, it would be nice if it carried on that way23:29
beunohttp://bazaar.launchpad.net/~beuno/loggerhead/bzr-search_integration/annotate/argentina%40gmail.com-20080614235107-upywmflu0p2b1t1w?start_revid=argentina%40gmail.com-20080614235315-sd5uapabc2aym4f0&file_id=search.py-20080614235103-lpt63f7b2drplju8-123:30
beunothat's where I need to plug it in23:30
beuno(I call that within the History class, so I can pass on an extra value)23:31
lifelessmoin23:32
beunohowdy lifeless23:33
thumperlifeless: morning23:34
lifelesshi thumper23:37
thumperlifeless: are you at the vibe?23:38
lifelessnot yet23:38
thumpergoing though?23:38
lifelesswtoday for sure23:39
lifelessother days will depend on stacked progress23:39
mwhudsonbeuno: ah, um, ok23:56
mwhudsonbeuno: h._branch.transport.base ?23:56
mwhudsonno, that probably isn't right23:56
pooliehello23:56
poolieme too23:57
beunomwhudson, I suppose I can pass whatever location LH is using too, of course. I meant23:57
beunoabsolute path as in "branch location"  :)23:57
beunohi poolie23:57
mwhudsonbeuno: right :)23:57
mwhudsoni think the kids call these things URLs nowadays23:57
lifelessmwhudson: the function is open_index_url :P23:58
lifelessbeuno: I refactored though, there is open_index_branch too now23:58
mwhudsonsounds like a better fit23:59
* beuno looks23:59
igclifeless: quick heads up on that performance testing - all ok at first glance23:59

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