/srv/irclogs.ubuntu.com/2008/07/26/#bzr.txt

* chandlerc[g] beats on bzr-svn00:35
chandlerc[g]errors in the middle of a branch... so weird00:35
jelmerchandlerc[g], ?00:35
chandlerc[g]setting it up on a clean box, all from development branches, and i'm getting "SSL negotiation failed: SSL error: parse tlsext" stuff00:35
chandlerc[g]looking on bugs now..00:35
chandlerc[g]jelmer: actually no bugs on this one... surprised00:36
jelmerchandlerc[g], does svn itself work ok?00:36
chandlerc[g]yep00:37
chandlerc[g]at least00:37
chandlerc[g]svn "ls"00:37
chandlerc[g]lemme do a full checkout00:37
=== arjenAU2 is now known as arjenAU
Peng_beuno: FYI, your new theme branch of Loggerhead now has a conflict in NEWS with the trunk.02:52
=== RAOF_ is now known as RAOF
berto-is there a way to get bzr log to show the commit's patch?09:12
luksno, there isn't09:13
AnMasterDoes loggerhead have some irc channel?12:03
bob2not afaik, but the main devs are in here12:03
AnMasterah... How do you use loggerhead with lighttpd?12:06
AnMasterI can only find instructions for apache12:06
Jc2ki think the main devs are in the NZ timezone so might be asleep right now12:14
AnMasterJc2k, ah I will be asleep when they are up12:21
AnMasterAs I live in Europe12:21
bob2proxying through lighttpd is probably simplest12:22
AnMasterbob2, ah12:23
luksisn't loggerhead now a WSGI application?12:23
AnMasterno clue, I hoped for fastcgi would work12:23
bob2not sure it is in trunk yet12:24
AnMasteranyway I'm not a python coder!12:24
AnMasterI'm just a bzr user who use lighttpd, and want a repo browser12:24
Peng_AnMaster: I'm just using mod_proxy.12:28
Peng_AnMaster: And Loggerhead's serve-branches.py.12:28
AnMasterPeng, hm...12:28
AnMasterPeng, is this last release of loggerhead? or do I need to get trunk?12:29
AnMasterI can't find "serve-branches.py" in the download (1.2.1, last it seems?)12:29
Peng_AnMaster: The trunk has some major improvements, and serve-branches.py is new in it.12:29
AnMasterPeng, so what does serve-branches do then, why do I want it?12:29
Peng_AnMaster: It's much simpler to run that start-loggerhead.py.12:30
Peng_than*12:30
AnMasterI see12:30
AnMasterI need to server multiple branches, from several projects, some are stored in shared repos12:31
Peng_AnMaster: apt-get install python-paste python-simpletal, edit serve-branches.py if you want to, then run it.12:31
AnMasterother are free standing ones12:31
Peng_AnMaster: Yeah, that's fine.12:31
AnMasterPeng, I don't use Debian12:31
AnMasterI use FreeBSD12:31
Peng_AnMaster: (They probably have to be under one directory.)12:31
Peng_AnMaster: Install Paste and SimpleTAL in some other way, then.12:31
AnMasterPeng, what are paste and simpletal for?12:32
Peng_AnMaster: Paste is a WSGI thingy, and SimpleTAL is a templating engine. Loggerhead uses both of them.12:33
Peng_(Well, the trunk does.)12:33
AnMasterah12:33
AnMasterfound both in ports12:33
AnMasteranyway I find it odd that in here everyone seem to assume you use Debian or Ubuntu12:34
AnMasterjust wondering why12:34
Peng_I wasn't really assuming you did; just using it as an example.12:35
AnMasterwell it isn't just you, both here and in #launchpad there is a certain level of "assume ubuntu"12:36
luksmost people here really use debian or ubuntu, so I'd say it's normal assumtion12:36
Peng_AnMaster: You do know Bazaar, Launchpad, and Ubuntu are all owned by Canonical, right?12:37
AnMasterI know12:38
AnMasterbut I like bzr even though I'm no ubuntu user12:38
Peng_:)12:38
AnMasterI use Gentoo Linux, Arch Linux and FreeBSD12:38
AnMasterall my servers run FreeBSD12:39
AnMastersocket.error: (48, 'Address already in use')12:39
AnMasterfrom the ./serve-branches.py12:39
AnMasterhow do I tell it to use a different port hm?12:39
AnMaster$ ./serve-branches.py --help12:39
AnMastergives same error12:40
AnMaster(not very userfriendly...)12:40
Peng_AnMaster: You should just edit serve-branches.py.12:51
Peng_AnMaster: It's designed to be simple and editable.12:51
AnMasterah....12:51
AnMasterturbogears doesn't seem to install on FreeBSD :/12:52
AnMasterPeng, so I guess I just can't use loggerhead12:52
Peng_The Loggerhead trunk no longer uses TurboGears.12:53
AnMasteroh?12:53
Peng_They moved from TurboGears and Mako to Paste and SimpleTAL for simplicity and performance.12:53
AnMasterah12:53
Pilkyhey all, is there any single place that gives you a full run through of what it takes to make a repo specific post-commit hook?13:06
AnMasterPeng, is there any way to get it to write a pid file or so...13:06
PilkyI've been looking through the docs and I seem to be thrown all over the place13:07
AnMasterPeng, well I guess I'll just use daemontools then to run it. sigh13:07
Pilkyfirst to the user reference which points to the user guide which points to another part of the user guide which points to the developer docs13:08
Pilkyit's like you need 4 tabs open just to get even a basic understanding of how to write a hook13:08
AnMasterPilky, I didn't even know bzr had commit hooks13:09
AnMasterbeyond full plugins13:09
Pilkyyeah, it does them as plugins, but you can set them up so they're called at various points13:10
Pilkyit seems a hook in bzr is just a way to call a plugin after/before an action13:10
Peng_AnMaster: A PID file would probably be 4 lines in serve-branches.py.13:11
Peng_Wait, maybe 6. I dunno.13:11
AnMasterPeng, assume I know *no* python except that it lacks braces13:12
* AnMaster is a C coder13:12
PilkyAnMaster: I'm in the same situation but I've just found this which looks good: http://www.diveintopython.org/13:13
AnMasterI don't really have time to learn python :P13:14
Peng_I think people have stopped recommending Dive into Python because of its age.13:14
AnMaster(maybe I should switch to darcs? I know *some* Haskell, not much but more than python. Not that I like darcs really...)13:14
Peng_AnMaster: What all does a PID file do? When the program starts, if it exists, error out; if it doesn't, create it? Then when it exits, delete it?13:15
AnMasterPeng, well it would lock on it13:15
AnMasterwould be even better13:15
AnMasteropen() with O_EXCL basically13:15
Peng_Oh.13:15
AnMasterto hold it as a lock file13:15
AnMasterthat would be even more useful13:16
PilkyPeng_: what would you recommend? I'm just looking for something online that will help me learn a bit of python, I'm not expecting to be doing a huge amount13:16
AnMasterthan just a pid file13:16
AnMasterPeng, any idea how that is done in python?13:16
Peng_Pilky: I'm not sure. I used Dive into Python. :P Maybe the official Python tutorial?13:18
Pilkyheh13:18
Pilkywell it seems to use Python 2.3 in here and I'm on 2.5 I've used older books to learn languages13:18
Pilkyhell, my primary resource for Cocoa programming was a book from around 2004 up until about a month ago :P13:19
AnMaster<Pilky> well it seems to use Python 2.3 in here and I'm on 2.5 I've used older books to learn languages <-- you can still learn C using K&R...13:23
Peng_Ehh.. I don't exactly know enough about PID files to want to hack it togehter.13:23
AnMasteryou just would have to learn about prototypes later :P13:23
Peng_also, I'm a little tired and really lazy.13:23
luksAnMaster: but C didn't evolve much since K&R13:23
luksand K&R is the best book about C anyway :)13:24
AnMasterluks, oh yes a bit :P, for example variable length arrays in C99, or the _Complex type13:24
PilkyAnMaster: I did ;)13:24
AnMasteranyway I got no idea where to start with writing a pid file in python13:24
nandersson"Beginning Python" from WROX is a great book13:27
lifelessAnMaster: Peng_ uses loggerhead with lighttpd14:23
lifelessI think14:23
AnMasterlifeless, yes he helped me14:25
AnMasterlifeless, what about a pid file for it?14:27
AnMasterloggerhead that is14:27
AnMasterwould be very useful14:27
AnMasterPeng, I can't get it to work14:44
AnMasterhttp://rage.kuonet.org/~anmaster/loggerhead14:44
AnMasterthat results in "127.0.0.1 - - [26/Jul/2008:13:43:45 +0000] "GET /%7Eanmaster/loggerhead HTTP/1.0" 404 - "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.15) Gecko/20080708 Firefox/2.0.0.15""14:44
AnMaster:/14:44
AnMasterhow do I make it not send the full path on14:45
AnMasterI can't use a specific subdomain14:45
AnMasterI need to use this directory14:45
AnMasterhm I asked in #lighttpd, lets see if I get any answer14:49
AnMasterlifeless, any idea?14:56
AnMasterusing the serve-branches stuff14:56
AnMasterI guess no one knows :(14:58
AnMasterwell it can't be solved on lighttpd side it seems15:08
AnMasterlifeless, Peng: tried webpath with start-loggerhead, doesn't work either15:18
AnMaster:(15:18
jamAnMaster: fn = os.open('path', os.O_EXCL | os.O_CREAT | os.O_TRUNC), something like that?15:23
jamos.write(fn, '%s\n' % os.getpid())15:23
AnMasterjam, that isn't the main issue now15:23
AnMasterthe main issue here is that loggerhead refuses to work when a sub directory is forwarded15:24
AnMasterinstead of a subdomain15:24
jamI don't know a lot about loggerhead, I would imagine it should be possible, though potentially require a bit of code tweaking15:26
jamI would have thought it would be the proxies job15:26
AnMasterjam, well the proxy is just mod_proxy of lighttpd15:26
AnMasterand it can't strip the leading bit it seems15:26
jamAnMaster: Also, in the copy of loggerhead I have here, it seems to create a pid file. (if that matters at all)15:36
jamAnyway, according to this page:15:37
jamhttp://discuss.joyent.com/viewtopic.php?id=323115:37
jamYou can only proxy by file-extension or by prefix15:37
jamnot suffix15:37
jamhttp://trac.lighttpd.net/trac/wiki/Docs%3AModProxy15:38
jamSo I'd have to agree with what you were finding15:38
AnMasterirc client crashed.... did I miss anything?15:43
Peng_AnMaster: Yes.15:45
Peng_AnMaster: Just a bit.15:45
Peng_AnMaster: Anyway, there's some middleware in Paste Deploy that can strip part of the path.15:46
Peng_AnMaster: Here's my serve-branches.py. It's got a horrible, complicated logging setup; the relevant part is the PrefixMiddleware part near the end. http://paste.pocoo.org/show/80377/15:49
Peng_AnMaster: You will need Paste Deploy installed, not just Paste15:49
AnMasterPeng, "paste deploy"?15:49
AnMasterah... /usr/ports/www/py-pastedeploy15:50
AnMasterPeng, force port 80?15:52
AnMasterPeng, anyway I would prefer using the start-loggerhead because it can do pid file it seems15:52
AnMastercan I still use that?15:52
AnMasterPeng_, it can also handle the repos not being in same place (they aren't)15:52
Peng_AnMaster: I don't know what you would have to do with start-loggerhead.py; I've never used it.15:55
jambeuno: I have to say, setting up loggerhead here seems pretty easy (on win32 no less).15:57
jamThe daemonize stuff doesn't work (obviously) but it was just a couple easy_installs, and tracking down simpletal15:58
jamoh, and you don't mention that you need "ConfigObj" installed as a dependency15:58
jamso Paste, ConfigObj, SimpleTAL, and things seem to work15:58
jamhmm.. the auto_publish_folder didn't seem to work right16:00
jamWAR [20080726-10:01:44.036] simpleTALES.Context: Exception occurred evaluating python path, exceptio16:02
jamn: type object 'branch' has no attribute 'url'16:02
Odd_BlokeIs LP running a recent Loggerhead, or is there a better place to point people who want to have a look at it in action?16:12
jamOdd_Bloke: I don't believe it is running the "latest"16:13
jamOdd_Bloke: This page is "shinier" http://bzr.mattnordhoff.com/loggerhead/imports/lighttpd/lighttpd-1.4.x/changes?remember=111716:14
jamThat is Peng's page16:14
jamI think LP *will* use the latest version, just doesn't yet16:15
jambeuno: I *am* trying to figure out the box with-an-arrow link16:15
jamIt at least looks like it is redirecting you outside of the current domain16:15
jamwhen often it is *just* a link16:15
jamlike, for *every* summary on the changes page16:16
jamanyway, off to another machine16:18
Odd_BlokePeng_: Is pointing people to http://bzr.mattnordhoff.com/loggerhead/imports/lighttpd/lighttpd-1.4.x/changes?remember=1117 acceptable, or is it going to make your hardware break into floods of tears?16:18
AmanicAthis logger head looks sweet16:19
AmanicAI like the way it expands when you click th triangle16:20
AmanicAand the mouse-overs rocks16:22
AmanicAcan you guys get into bundlebuggytoday?16:33
AmanicAcan you guys get into bundlebuggy today?16:33
jelmerno, it seems down16:35
jelmerand also not replying by email to my merge requests16:35
AmanicAcool so its not just me16:36
Peng_My Loggerhead runs the trunk, or other branches. The different theme comes from https://code.launchpad.net/~beuno/loggerhead/new_theme_trunk16:58
Peng_Odd_Bloke: Heh. I don't know how much traffic I can handle, but it should be fine, as long as it doesn't get on Slashdot or something.16:59
taconehello, is there a way to enable diff's syntax highlighting for bzr diff ?16:59
AnMasterhey how do you check revisions signed with bzr sign-my-commits?17:01
AnMasteralso what is the rich-root stuff good for? I can't find details on it (tried google)17:04
taconemmh, found a way with vim: bzr diff | vim -u /usr/share/vim/vim71/macros/less.vim -17:06
Peng_AnMaster: Rich roots aren't really useful for anything yet. In the future, I think they'll be necessary for things like subtrees and splitting a subdirectory out into its own branch (which is possible now, I guess).17:09
AnMastersubtrees?17:14
AnMasterwhat are they?17:14
AnMasterPeng, I just use pack-0.92 format here17:14
AnMasterPeng_, also what about the checking of signatures?17:15
AnMastersignatures is one feature I would like to see expanded17:15
AnMasteralong with adding support for cherrypicking17:15
AnMasteronce those are in I will consider bzr perfect for my needs17:16
Peng_AnMaster: I dunno about verifying signatures.17:18
AnMasterand subtrees?17:18
Peng_Ehh. /me handwaves.17:18
AnMasteryou mean like svn:external?17:18
AnMasteror?17:18
Peng_Yeah, basically.17:19
AnMasterah17:19
Peng_Subtrees are still experimental (and have been for ages).17:19
AnMasteranyway what does "handwaves" mean in this context? I'm not a native English speaker17:19
Peng_I meant that I was avoiding trying to explain something, but I don't think I was using it entirely correctly.17:21
Peng_It's in the Jargon File: http://catb.org/jargon/html/H/handwave.html17:21
AnMasterare there any plans for cherry picking support in bzr?17:22
AnMasterlike the advanced cherry picking of darcs17:22
Peng_Due to the model of Bazaar (and many other VCSes), cherrypicking is kind of difficult.17:25
Peng_I don't know if there are any current plans.17:25
Jc2ktacone: install bzrtools and then do bzr cdiff17:25
AnMasterwhat a pitty :/17:25
taconesorry, how to apply a patch generated with bzr diff > ../my.patch ?17:37
taconepatch -p0 < ../my.patch doesn't seem to work17:37
Odd_Bloketacone: Are you trying to apply the patch to a different bzr branch?17:38
taconeOdd_Bloke: to more recent revision of the same branch17:38
jelmerAnMaster, cherrypicking is already supported17:38
taconeI am quite sure conficts shuold not happen.17:38
jelmerAnMaster, tracking cherrypicks is not and support for that is planned for the future17:39
Odd_Bloketacone: Try using 'bzr merge -c<revision>' instead.17:39
AnMaster<jelmer> AnMaster, tracking cherrypicks is not and support for that is planned for the future <-- GREAT!17:39
Ryan52I saw somebody using a program like gitk on a bzr branch. What is that?17:39
taconeI don't have a revision of the changes to apply, only that .patch.17:39
Jc2kRyan52: bzr-gtk perhaps?17:40
Odd_Blokejelmer: ZOMG commit spam. :)17:40
Ryan52Jc2k: ah. thanks.17:40
jelmerOdd_Bloke: (-: Sorry about that17:40
Odd_Blokejelmer: How's bzr-git coming along?17:40
jelmerOdd_Bloke, nicely17:41
jelmerOdd_Bloke: viewing history works17:41
taconeOdd_Bloke: I guess I got it. it worked for everything but a erased (with bzr rm file). the revision to be patched has it and it's more big than before.17:41
Odd_Blokejelmer: Nice. :)17:41
jelmernow working on supporting "bzr branch <git-url>"17:41
taconeok, solved17:42
Odd_Blokejelmer: \o/17:42
AnMaster<jelmer> now working on supporting "bzr branch <git-url>" <-- nice!17:47
beunojam, oh, LH on windows...  that's unexpected...17:51
beunojam, the box with the arrow was originally intended to let you know it was a link you could click on, but that may of derailed a bit17:57
beunomay be too confusing now...17:57
beunocool, patches for LH!18:02
beunonothing better than going to sleep and waking up with patches in your inbox18:02
jelmerbeuno, fwiw I also filed some bugs to keep you busy ;-)18:42
jelmerI filed an ITP (cced to the list) for loggerhead as well but upload to NEW is not likely to happen soon18:42
beunojelmer, heheh, I saw  :)   I'm going through the remaining patches, and RC-bugs  :)18:44
beunojelmer, I saw, very cool, thanks.  When does the freeze disallow you from getting it into Lenny?18:45
jelmerbeuno, I think the freeze has already happened18:45
beunojelmer, ah, could be. I got dizzy after a few mails bounced back and forth18:46
jelmeryeah, full freeze is planned for mid july so I guess that's already past18:46
beunoheh, yeah, I just though the release would get delayed for at least a year  :)18:48
=== Daviey_ is now known as Daviey
beunoPeng_, synced my branch with trunk, no more conflicts18:54
Peng_beuno: Do you pushed to your branch on LP? I don't see anything new.19:11
beunoPeng_, I'm stupid, I keep pushing somewhere else. I just pushed and added --remember  :)19:13
rockydon't suppose there's a quick way to get running with bzr 1.5 + bzr-svn on hardy heron ?19:15
jelmerrockstar: grab the bzr-svn from intrepid19:15
rockyjelmer: ah cool19:16
rockyit's funny... all my paying projects are stuck on svn and every several months i try using bzr to access those svn repos but somehow get turned off19:16
rockydon't suppose bzr-svn supports svn externals yet?19:16
jelmerrocky, no, because bzr doesn't have nested trees yet (which we'd have to map externals to)19:17
rockygotcha19:17
Peng_beuno: Heh, OK.19:17
fullermdjelmer: 'minds me...   are stock svn 1.5.x bindings solid now, or are there still patches needed?19:18
jelmerfullermd: bzr-svn >= 0.4.11 works with svn 1.4 and 1.5 out of the box19:18
Peng_Oh yay, you resolved the conflict the same way I did.19:19
fullermdAwesome.19:19
jelmerbeuno, loggerhead really seems to've come a long way since the original version19:21
rockyjelmer: there's no releases of bzr-svn 0.4.11 yet right?19:24
jelmerrocky, that's right, it's still in development19:24
jelmerrocky, 0.4.11 won't work with bzr 1.5 anyway (only with >= 1.6)19:25
rockyi can't seem to find a link for the download of bzr-svn intreprid ... i still find launchpad a bit hard to navigate19:25
jelmerrocky: see http://packages.ubuntu.com/bzr-svn19:25
rockyah perfect, thanks19:25
rockywhere's the best place to look to get a high-level list of functional changes between 1.4 and 1.5 of bzr ?19:28
Peng_Well, NEWS contains a long list, including many less-major things.19:30
rockyguess i'm more looking for a release announcement sorta deal19:30
* rocky keeps googling19:30
jelmerI think NEWS is what you're looking for19:32
jelmeryou may want to skip some of its sections though such as INTERNALS19:32
rockyis http://packages.ubuntu.com/bzr-svn resolving for anyone? can't seem to get to it19:32
jelmerlooks like its down atm19:33
LarstiQrocky: NEWS is (or was) also what gets verbatim mentioned in release announcements19:33
zbrownHow does one apply a merge directive?19:34
jelmerzbrown: bzr merge <file> or bzr pull <file>19:35
zbrownah ok19:35
zbrownjelmer: is there a way to apply a merge directive without actually making it a revision?19:35
zbrownthat is, just flat apply the patch19:36
jelmerzbrown: Not sure why you'd want to do that19:36
jelmer"patch -p0 < FILENAME" should work though19:36
zbrownjelmer: patch was broken19:36
zbrownit needs completing19:36
jelmerzbrown: In that case, "bzr merge" to merge the merge directive19:36
jelmerthen fix it followed by commit19:36
zbrownoh so merge won't commit?19:36
jelmerno, it'll just apply the changes, you have to commit it explicitly19:37
zbrownah ok19:37
jelmer(and this sort of situation is exactly why it does't commit)19:37
zbrownah :)19:37
zbrownI work mostly in git so still learning some of these things :)19:37
beunojelmer, yeah, I thought it would take longer to get to where we are19:39
rocky1packages.ubuntu.com offline for everyone here? (sorry, was DC'd)19:40
=== rocky1 is now known as rocky
zbrownrocky: seems that way.19:40
beunojelmer, it's actually usable by most people now!19:41
jelmerbeuno, :-)19:41
Peng_beuno: Shouldn't the SQL cache be deleted on shutdown?19:43
Peng_I think it used to usually be deleted, but it isn't anymore.19:43
beunoPeng_, ideally, no. It takes quite a few CPU cycles to generate it, not sure why we wouldn't want to take advantage of it already have been created19:44
Peng_Ideally, then, you wouldn't use mkdtemp to pick it. :P19:45
rockyjelmer: don't suppose there's a good link somewhere that i'm missing for svn users who haven't really used bzr on how to get going with bzr-svn ? or do you just refer people to standard bzr docs ?19:46
Peng_Hmm, I bet I could monkeypatch it to do that.19:46
jelmerrocky, see the FAQ included with bzr-svn for bzr-svn things19:46
jelmerrocky, for everything else, the regular bzr docs apply19:46
beunoPeng_, agreed. That's some of the left-overs ToDo's for serve-branches19:47
AmanicArocky: If youre new to bzr you might want to checkout the following too: http://bazaar-vcs.org/BzrForSVNUsers19:49
rockythanks19:53
rockyis there a simple mirror for packages.ubuntu.com that is up atm?19:53
=== doko_ is now known as doko
* Peng_ writes a stupid monkeypatch in serve-branches even though it would be easier to just edit loggerhead/apps/filesystem.py.19:58
* beuno cheers Peng_ 20:00
jelmerrocky, you may be able to use the debian package20:01
jelmerrocky, http://packages.debian.org/bzr-svn20:01
jelmerwoot, "bzr branch git-url" works \o/20:01
Peng_beuno: My monkeypatch can't stop the mkdtemp directory from being created, so I'm automatically deleting it. :D20:02
jelmernot at a workable speed though20:02
beunoPeng_, hehe, ok, we may work a bit on top of that, but it'll get us started  :)20:03
rockyis it just me or is there no bzr deb for hardy at:  https://launchpad.net/~bzr/+archive20:04
rockydo i need to get the intrepid one for that too?20:04
rockyum, actually, there is no intrepid one for that20:05
beunorocky, there was a problem with the package, you can find them here: https://edge.launchpad.net/~bzr-beta-ppa/+archive20:05
beunolatest betas/rcs20:05
* rocky needs a "yes rocky, you're stupid, so here are the links you need for bzr 1.5 on hardy and bzr-svn" ;)20:05
Peng_Someone uploaded 1.6b3 for hardy (but no other series), then it was deleted, and 1.5 was never added back (I dunno if it's even possible). Right?20:05
beunoI don't think you can upload an older package, no. We'll probably have to wait til 1.6 is out20:06
berto-if i wanted to make a plugin to hook into the commit command, where would i learn how to do that?20:06
rockyugh ... well if i upgrade to bzr 1.6beta3 (which does seem to have a deb for hardy) that means i'm out of luck with a bzr-svn plugin version to match up right?20:06
ToyKeeperYay, just a page of shell to migrate svn tags to bzr.20:07
beunoberto-, http://doc.bazaar-vcs.org/bzr.dev/en/user-guide/index.html#using-hooks20:07
beunois a good place to start20:07
jelmerToyKeeper: bzr-svn 0.4.11 will also support importing tags natively20:07
jelmerToyKeeper, fwiw20:07
ToyKeeperYeah, but that's in the future.  :)20:07
jelmerrocky, you can run the development version of bzr-svn20:07
Peng_beuno: BTW, I wrote a one-line patch to call the sql_dir "/tmp/loggerhead-cache-XXXXXX" instead of "/tmp/tmpXXXXXX". Interested?20:08
beunoberto-, http://doc.bazaar-vcs.org/latest/en/user-reference/bzr_man.html#hooks is also good20:08
ToyKeeperjelmer: any idea if it'll handle svn branches too?  Those seem more difficult.20:08
jelmerToyKeeper, heh, true20:08
jelmerToyKeeper, older versions already handle svn branches20:08
jelmerToyKeeper, e.g. bzr svn-import20:08
beunoPeng_, yes, that's an improvment over what we have now. Send it over to the list please [loggerhead/merge]20:08
Peng_beuno: OK20:09
ToyKeeperAh, okay.  I only tried that with 'bzr branch /blah/svn/repo'20:09
rockystarting to wonder if it's worth all this or if i should just use hardy's native bzr 1.3 and whatever bzr-svn version comes with it20:09
berto-beuno: thanks!20:09
jelmerrocky, I would recommend just using 1.3 unless there are particular bugs you're hitting that are fixed in later releases20:09
rockyi don't think there are20:10
rockyjust figured if i'm learning to use this system i should be using the latest20:10
=== edcrypt1 is now known as edcrypt
berto-is there an easy way to get the parsed command line from a plugin?20:26
Odd_Blokejelmer: I'm about to file an ITP on GitPython, have you looked at packaging it at all?20:29
jelmerOdd_Bloke, nope, not yet20:30
jelmerberto-, why would you need that?20:30
Odd_Blokejelmer: Cool, I'll take a look at it.20:30
berto-jelmer: i'm looking into writing a pre-commit hook that checks for implicit commits.  i've grown accostomed to git where you either add something then commit, or explicitly specify the file[s] being committed.20:31
berto-jelmer: so, i wanted to check the args part of the command from a pre_commit_hook20:32
jelmerberto-: a pre_commit_hook can't modify what is being committed because of the moment in the commit process it's being called20:33
berto-jelmer: i dont' want to modify, just raise a BzrError if no file was specified.20:33
berto-it's really a pretty simple addition i want to make.20:33
jelmerberto-: start_commit_hook can modify what is being committed but it doesn't receive the list of files to commit atm20:33
berto-right now 90% of the time i commit, say doh, uncommit and then properly commit just the files i want.20:33
berto-jelmer: but i dont' want to modify, just reference, which is why i wanted to check the command line.  if the args part of options, args = optparse.parse_args([...]) is empty i'll just raise BzrError.20:35
jelmerberto-: well, sys.argv should contain the command line arguments20:35
berto-jelmer: right, but all the options as well.20:35
berto-i guess i can just exclude any that are prefixed with '-'.20:35
jelmerberto-: right, so that's why you'd want start_commit_hook20:35
jelmerbut that needs to be modified to receive the list of specified files20:36
berto-start_commit_hook rather than pre_commit_hook ?20:36
jelmeryeah20:36
berto-is there a page that describes all the hook invocations; like, what is the difference between pre_ and start_ ?20:36
jelmerberto-: I'm not sure20:38
jelmerstart_commit_hook is part of MutableTree20:39
berto-jelmer: hmm, start_commit_hook does not work, but pre_commit does.20:39
jelmerberto-: Doesn't work in what way?20:39
berto-when i try start_commit_hook, i get: Unable to load plugin 'explicitcommit' from '/Users/berto/.bazaar/plugins'20:39
jelmerberto-: Are you sure you have the right name?20:40
berto-i thought start_commit_hook was the right name.20:40
jelmerbzrlib.mutabletree.MutableTree.hooks['start_commit'] rather than bzrlib.branch.Branch.hooks['pre_commit']20:41
berto-jelmer: this works: http://dpaste.com/67613/20:41
jelmerberto-, you'd need mutabletree.MutableTree where you have branch.Branch at the moment20:41
jelmerand 'start_commit' where you have 'pre_commit'20:41
jelmerand "from bzrlib import mutabletree" rather than "from bzrlib import branch"20:42
berto-jelmer: hmm, alright.  sorry if you already explained this, but why is start_commit_hook better than pre_commit ?20:42
jelmerberto-: start_commit is run before the tree is generated that is going to be committed20:42
berto-jelmer: ah, cool. less processing is done.20:43
jelmerberto-: and pre_commit is not intended to receive the list of files to commit, it operates on a tree20:43
jelmerberto-: start_commit doesn't receive the list of specified files at the moment, but it will in the future20:43
berto-jelmer: got it.20:44
bpetersonlightweight checkouts don't store any of the revision data with them, correct?23:28
jelmerbpeterson: yep23:29
bpetersonso that's why just running bzr diff is so slow?23:29
jelmeryeah, if the branch you've got a checkout is remote somewhere it can be pretty slow23:31
bpetersonhmm, is this the same of stacked branches?23:32
james_wnot quite23:33
james_wa stacked branch splits the storage of the revisions for a branch.23:33
james_wcreate a heavyweight checkout where the local branch is stacked at a depth of one revision. This would be like svn, with the exception that the local size will grow as you commit.23:34
bpetersonI don't want to carry the whole revision history around, but I would like bzr diff to be fast as a branch23:34
bpetersongood that seems nice23:35
james_wthat last line should have started "what you could do is"23:35
james_wso you wouldn't have the whole of the revision history, but you would have some23:35
bpetersonI didn't think you could stack things at different revision levels23:35
james_wyou could recreate it periodically to prevent the local storage growing without bound23:36
bpetersonwell mostly I just don't want to download the whole history23:36
james_wa stacked branch provides a fallback when revisions can't be found locally.23:37
james_wso if you create an empty stacked branch then bind it to the parent and then either commit, or fetch the last revision, you get fast "bzr diff", but you have to hit the network for "bzr log", like svn.23:37
bpetersonthat's ok23:38
james_wit's the sort of thing that would be good for a plugin once we have stacking23:38
james_wthe only problem would be thinking up a name for that arrangement :-)23:39
bpetersonso it's not yet possible to ask Bazaar to pull a given number of revisions initially from the branch it's stacked on (i.e. 1000)23:40
bpeterson?23:40
bpetersonfor some reason I can't get Bazaar to stack on rich-root-pack repos23:41
jelmerbpeterson: I think there was a fix that went into bzr.dev recently to help with this23:42
jelmerwhat version of bzr are you running?23:42
bpetersonbzr.dev, the latest23:42
jelmerhmm, that's probably an unknown bug then..23:43
bpetersonperhaps it hasn't been merged?23:44
jelmerI'm pretty sure it's been merged since it broke bzr-svn :-)23:44
* bpeterson goes to file a bug report23:45
jelmerbpeterson: thanks :-)23:45
a7phi everyone23:50
a7panybody using bzr under MacOS X? -- I've got a couple of problems and would like to know if other people share them, so I can file proper bug reports.23:50
bpetersona7p: it works fine for me23:51
a7pbpeterson, ah, great, could you try to checkout lp:eclipse-bzr ... that one fails reproducible (works fine with under Linux).23:53
a7pbpeterson, and do you get the progress display?23:53
bpetersonit says: no such project eclipse-bzr23:54
Peng_a7p: Are you using the same version of bzr on both?23:54
jelmera7p: did you log into launchpad?23:55
bpetersonI can't find this project eclipse-bzr23:55
a7pPeng, no, I am not, on Hardy I tryed 1.3.1 (which is default) and on macosX I tryed 1.5 (which is the Download-Package as well as the version distributed via macports)23:56
Odd_Blokejelmer: python-git package at http://packages.daniel-watkins.co.uk/23:56
bpetersonjelmer: https://bugs.launchpad.net/bzr/+bug/25221223:56
ubottuLaunchpad bug 252212 in bzr "can't stack rich-root-pack repos" [Undecided,New]23:56
a7pbpeterson, sorry ... bzr-eclipse is what I mean23:56
jelmerOdd_Bloke, w00t!23:56
a7pjelmer, it works fine with some other launchpad branches23:57
jelmerOdd_Bloke, in order for python-git to be usable for bzr-git, the patches in my git repo are necessary as well23:57
a7pmy Macos installation is also much slower than the linux-ones23:57
bpetersonknit-repos are deprecated now23:57
a7pjelmer, and I registered my launchpad account with bzr.23:57
a7pbpeterson, okay, so it can't work due to the too new version I am using under macos ...23:58
bpetersonno23:58
bpetersonIt's working so far for me23:58

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