[00:53] nobody I guess [01:08] Kaspi: hi [01:08] Kaspi: I think most people are off enjoying their Christmas. [01:08] I'm afraid I don't have any experience with the http smart server [01:09] jelmer_: hey, yes, perhaps only me messing with computers even on Christmas :) [01:30] You'll need to be a lot more detailed to elicit help [01:30] No fcgi modul Well, install it then [01:31] deprecation warning? Only a warning, why does that matter? [01:31] mod_python? Don't use it, it's deprecated/ [01:31] mod_wsgi? Probably a good method to choose. You'll need to explain where you ran into trouble [01:51] maxb: how to install the fcgi module? do you know? (on a linux actually) [01:57] apt-get install python-flup sounds promising [01:58] * maxb gets annoyed with mod_wsgi [02:04] Kaspi: Right, I've got mod_wsgi working just by following your linked documentation. My only problem was that when I got a path wrong, there was no logging whatsoever to help me figure this out [02:05] maxb: where did you put the apache configuration? into a virtual host? [02:07] and btw what if you had more than one repository on a virtual host? e. g. /code and /code2 [02:11] Whether or not you put the config into a virtual host is dependent on how you want to fit the configuration into the rest of your Apache setup. [02:12] In the examples, /code is not a bzr repository, it is a tree which can contain any number of bzr repositories [02:14] ooh... aha! [02:38] maxb: well I have set it up for wsgi now and how to actually find out if things work? [02:39] I can't push to any repository, so I guess it doesn't work [02:41] does the wsgi script output any kind of html when the root directory is accessed for example? [02:43] no [02:43] and as for push, the example is in read-only mode [02:44] maxb: yes, I set that one to False [02:44] but anyways, when trying to push, this is print out: bzr: ERROR: Cannot lock LockDir(http://host/repo/.bzr/branch/lock): Transport operation not possible: http does not support mkdir() [02:52] can anyone see a problem? http://pastie.org/1405842 [02:59] sounds rather like it's not talking over the smart server at all [03:00] Try using bzr+http:// not http:// === tchan1 is now known as tchan [03:05] maxb: this one says: "Generic bzr smart protocol error: Invalid http response for http://bzr.omicron.e0.cz/test/.bzr/smart: Unknown response code 403" (which means no access), but there's no /smart directory in that location [03:07] should there be a "smart" directory under .bzr/ ? [03:10] Kaspi: the configuration in apache should kick in and call bzr before it even checks to see if there's anything there [03:21] hm, I wonder what's wrong then [04:03] what is the enable_logging argument for? couldn't it help? === jpds is now known as Guest12343 [04:54] never mind, go to go now, I'll continue later with this.. thanks maxb and jelmer_ so far [08:09] I have a problem with a commit, I have a folder /plugins/ and I committed it and it's contents by accident, I really just wanted to commit the contents, so I uncommitted, reverted all the files. Now when I add the child folder that I *do* want, it adds the original /plugins/ parent folder. Any thoughts? [08:09] By 'contents' I mean 'content folder' [08:09] as in /plugins/some-plugin/ [08:15] Mmm, appears it has to add the parent folder, OK, I'll work around it === gnomefreak76 is now known as gnomefreak [11:15] hey! [11:16] can anyone see the problem http://pastie.org/1405842 which doesn't let you push to http://bzr.omicron.e0.cz/test ? (no authentication) [12:48] can anyone see the problem http://pastie.org/1405842 which doesn't let you push to http://bzr.omicron.e0.cz/test ? (no authentication) [12:58] Kaspi: where are you requiring authentication? [12:59] jelmer_: nowhere yet [12:59] (to test it out) [13:00] Kaspi: Then I don't understand your question. [13:04] jelmer_: just try, for example: bzr branch bzr+http://bzr.omicron.e0.cz/test [13:05] jelmer_: the things are set up, but you won't branch any revision because of 403 [13:06] Kaspi: not sure, it's .bzr/smart specifically that's refused [13:07] is WSGI not allowed there for some reason? [13:07] jelmer_: yeah, and there's no "smart" directory under .bzr/ [13:08] jelmer_: you can see the whole apache configuration in the pastie I post, the WSGI should be allowed in the whole virtualhost [13:08] jelmer_: WSGIScriptAliasMatch ^/.*/\.bzr/smart$ /srv/bzr/bzr.wsgi does the trick I guess [13:10] Kaspi: I'm not familiar with the ins and outs of mod_wsgi [13:12] jelmer_: it is set up as according to this http://doc.bazaar.canonical.com/bzr.2.2/en/user-guide/http_smart_server.html#mod-wsgi [13:36] I don't really get why it doesn't work :-/ [13:54] Kaspi: I'm not sure either [15:09] can anyone see the problem http://pastie.org/1405842 which doesn't let you push to http://bzr.omicron.e0.cz/test ? (no authentication) [16:06] hm, jelmer has been squishing 2.7 things over xmas but missed the bug tag and discussion in here with vila the other day. [16:09] hi mgz [16:11] don't suppose launchpad has a mass-tag edit facility anywhere, seems everyone else decided on "python27" since we started filing ones under "python2.7" [16:11] jelmer_: I've put some comments on things you submitted. [16:15] mgz: thanks [16:15] mgz: fwiw bug 637674 doesn't have a python27 tag either.. [16:15] Launchpad bug 637674 in Bazaar "RemotedTestCase.addCleanup exists but fails under Python 2.7" [Low,Confirmed] https://launchpad.net/bugs/637674 [16:28] okay, put up an mp fixing that. [16:47] cool [16:48] anyway, looks like we're in Germany now and roaming chargees are crazy [16:48] * jelmer_ -> offline [16:52] * Kaspi is praying for a working smart server [16:53] do you trust in a god? [17:07] * maxb thinks Kaspie should pray less and debug more [17:07] Hmm [17:07] Has anyone ever broached the idea of adding authentication to the smart server protocol? [17:08] I'm thinking of something much like how SASL-based auth was added to the svnserve protocol [17:09] maxbie how should I debug such a thingy? [17:15] Actually stating precisely how it doesn't work would be a good start. [17:23] maxb: you can try yourself: bzr branch bzr+http://bzr.omicron.e0.cz/test [17:27] it says just 403 [17:27] for .bzr/smart [17:29] You've not granted access to the WSGI script directory [17:33] maxb: I've been told that the script must run out of a web root. Do you mean this kind of access? [17:35] There's a difference between being mapped anywhere into the URL namespace, and being granted access [17:38] Move the WSGIApplicationGroup out of the [17:38] Change the AllowOverride All to AllowOverride None, unless you have a VERY good reason to allow that [17:39] Create a new block and move the Order and Allow directives there [17:47] I've just pushed fine to my local http smart server [17:54] maxb: you win the golden cookie, little corrections and it works! [17:54] maxb: thanks! :) [17:55] maxb: btw why not to allow overrides? [17:56] maxb: because people could push .htaccess files there? [18:04] mgz: so [18:04] mgz: I stlil don't understand why re.sub is a *problem* for you [18:04] I understand it does \ escape sequence evaluation === jay is now known as Guest37384 [18:33] Kaspi: yes, exactly (about the .htaccess) [18:38] maxb: yeah but the repositories are not creating a working tree by default (or they seem so), so if I won't ever run a bzr update server side, it should matter, should it? [18:38] shouldn't, should it? * [18:55] I suppose not, but it is still good practice to never enable AllowOveride unless you need to [18:56] and, in theory, someone could still upload a .htaccess file using the bzr vfs calls === Leonidas_ is now known as Leonidas [21:03] lifeless: C:\temp has a backslash-t in it. see the example I pasted in the log the other day. [21:03] in the wider scheme of things, it's a problem because string interpolation on paths is a problem. [21:04] but changing from re.sub is just... well, I don't see what problem you have with str.replace is the point. [21:04] you appear to want a straight string substitution, and none of the fancy features regular expressions give. [21:32] mgz: I'm likely to break out a full posix shell variable expansion implementation in python one of these days [21:33] mgz: see for instance the bug on shell expansion support - and windows doesn't have a handy shell to delegate to [22:03] with all the related horrors of shell scripting? [22:04] unquoted parameters and security holes. [22:05] Oh, don\\\\\\\\\'t exaggerate... [22:09] hello. how can i overwrite a remote branch when pushing? [22:09] it gives me complaints about the remote branch having diverged [22:09] (i don't care about the remote branch) [22:12] hey [22:13] if I run bzr status, it tells me a couple of files have been removed. But if I run bzr commit, it tells me PointlessCOmmit (No changes to commit).. any ideas what gives? [22:14] specifically: http://pastebin.com/8FWi41dj [22:30] Noldorin: push --overwrite [22:30] ah thanks [22:30] darren: Dunno. Maybe it some oddity with -x? Try saving off the changes to settings and revert'ing it, then committing without -x. [23:20] fullermd: weird, but true [23:20] thanks!