/srv/irclogs.ubuntu.com/2011/09/04/#bzr.txt

jelmerjaj.00:02
jelmerargh00:02
jelmerglad to hear that, otherwise we'd have a nasty bug on our hands :)00:03
AuroraBorealisits because "location information" shows the shared repositiory on the local disk00:04
AuroraBorealisnot necessarily the one on the server00:04
=== aminpy is now known as aminpy|brb
=== Quintasan_ is now known as Quintasan
=== aminpy|brb is now known as aminpy
ESphynxhey guys, I'm trying to use bzr-git with dulwich here, and I get this  'bzr: ERROR: No module named posix' erro ? any idea?15:49
mgzESphynx: this is on windows I take it?16:12
mgzlook at your .bzr.log for the traceback showing where the import is happening16:13
ESphynxyes!16:40
ESphynxmgz: I've figured out it was in bzr-git's workingtree.py16:41
ESphynxi've commented that 'import posix' line out and then it worked16:41
mgzit sounds like a bug, the normal thing to do is `import os` which then resolves the correct platform functions16:42
ESphynxthen I got this other error16:42
ESphynxwhich I found in a post that I should add 'raise' on top of a line16:43
ESphynxon top of the delete_tree line...16:43
ESphynxa db in use type thing, and now that I added that I get a whole bunch of new errors :(16:43
mgzit sounds like bzr-git is just not tested (at all) on windows.16:44
ESphynxhttp://pastebin.com/qT5RcBLr16:44
mgzhm. that one might need jelmer magic to understand.16:45
ESphynxthe line I added as 'raise' on top of             to_transport.delete_tree('.')16:45
ESphynxin bzrlib/builtins.py16:46
ESphynxWithout that 'raise', I get: bzr: ERROR: Permission denied: "E:/bzr/sdk/./.bzr/repository/git/idmap.db": [Error 32] The process cannot access the file because it is being used by another process: u'E:/bzr/sdk/./.bzr/repository/git/idmap.db'16:46
ESphynxI've waste more than enough time on this, so I think I'll opt for launchpad importing my git repo for me :|16:47
ESphynxjelmer :)16:49
ESphynxyou're the magician?16:49
mgzjelmer, does the error in <http://pastebin.com/qT5RcBLr> say anything to you?16:51
jelmerhey mgz16:51
jelmerESphynx: mawho ? :)16:51
ESphynx<mgz> hm. that one might need jelmer magic to understand.16:51
jelmerhmm, that's a tricky one16:53
ESphynxjelmer how about:  Without that 'raise', I get: bzr: ERROR: Permission denied: "E:/bzr/sdk/./.bzr/repository/git/idmap.db": [Error 32] The process cannot access the file because it is being used by another process: u'E:/bzr/sdk/./.bzr/repository/git/idmap.db'16:53
ESphynxthat was  'raise' on top of             to_transport.delete_tree('.')16:53
jelmerESphynx: ah, you're on windows?16:53
ESphynxI am16:53
ESphynxMainly because Ubuntu random freezes on my system :P16:53
ESphynx(I find that quite depressing)16:54
mgzthere seem to be a few shallow problems with bzr-git on windows (importing posix as well as os), perhaps also so subtle ones that can cause revisions to go missing?16:54
jelmermgz: I wouldn't be surprised\16:55
jelmerESphynx: can you try running "bzr selftest -s bp.git" ?16:55
ESphynxWould I have been aware of that, I would have tried it on Linux :P but now I set up bazaar etc. on Windows and don't feel like doing it again, I had launchpad auto-import it for me :P16:55
ESphynxsure I can try that16:55
ESphynxbzr: ERROR: No module named testtools16:56
ESphynxI get this too now with my version from source: bzr: warning: some compiled extensions could not be loaded; see <https://answers.launchpad.net/bzr/+faq/703>16:56
jelmerESphynx: hmm, yeah, you'll need testtools to run the testsuite16:56
jelmerESphynx: you haven't build the C extensions, which means you'll get less than optimal performance16:56
ESphynxwhy did they not build?16:56
jelmerESphynx: did you try to build them ? :)16:57
ESphynxCython and Pyrex missing?16:57
mgzprobably you don't have cython or pyrex, again .bzr.log will tell you what exactly you don't have16:57
mgzit's not (or shouldn't) be relevent for correctness, only speed16:57
ESphynxdon't take this the wrong way, i'm trying to be constructive here ;) but all this is way too complicated to setup folks :P16:57
mgzyup.16:58
ESphynxof course the bugs don't make it easier :P16:58
mgzwe have easy (installer with lots of stuff added), but if you want to do more on top of that you need to be okay with compiling C python extensions and such like16:59
ESphynxjelmer: Would it be helpful if I install the testtools?16:59
mgzESphynx: I'll do it here to save you the bother.16:59
ESphynxI got launchpad importing from github directly so I don't care anymore at this point, but I'm all for helping fix open source software :P16:59
ESphynxmgz thanks man :)16:59
mgzif you could file a bug against bzr-git for your original `import posix` problem with the traceback, that would be helpful17:00
jelmerESphynx: dulwich/bzr-git isn't really tested on Windows, so if it works that's mostly luck. It would be nice to get it to the point where it does work though :)17:00
mgzand maybe that one where you added a raise too, if there wasn't one already17:00
ESphynxjelmer it would :)17:00
ESphynxmgz: that was from a launchpad bug comment17:00
ESphynxthat's where I got the idea17:00
mgzgreat, what was the bug number?17:01
ESphynxlet me try to find it :)17:01
ESphynxmgz: https://bugs.launchpad.net/bzr-git/+bug/734145/comments/1417:02
ubot5Ubuntu bug 734145 in Bazaar Git Plugin "NoSuchId error applying inventory delta" [Medium,Triaged]17:02
mgzgreat, so jelmer knows about that one :)17:02
ESphynxoh, right, he's the one who suggested raise :P17:03
ESphynxdidn't light up here :P17:03
mgzfile the import posix bug and I'll see how much of this I can quickly squash17:03
ESphynxk17:03
ESphynxmgz https://bugs.launchpad.net/bzr-git/+bug/84117717:06
ubot5Ubuntu bug 841177 in Bazaar Git Plugin "import POSIX in workingtree.py breaks on Windows" [Undecided,New]17:06
mgzthanks ESphynx!17:06
ESphynxyh :) I've otherwise had more success with launchpad importing it for me: https://code.launchpad.net/ecere =)17:08
ESphynxyw*17:08
jelmerjust removing the posix import isn't sufficient - we need stat_result17:09
ESphynxoh.17:09
mgzusing os instead should be fine though.17:11
ESphynxos is already there :P17:12
mgzindeed,17:12
mgzmeh, fastimport as well?17:15
jelmerfastimport is used for testing17:16
mgzwhat's the lp project name?17:16
mgzpython-fastimport and bzr-fastimport too I guess.17:17
* mgz continues branching and building17:18
mgz...and sqlite?17:19
mgzdammit, now I need to rebuild python17:19
mgzokay. with ESphynx's bug fixed, I get on the test suite: FAILED (failures=1, known_failure_count=1)17:30
mgzRan 211 tests in 4.875s17:30
mgzFAILED (failures=1, known_failure_count=1)17:30
mgzand a bunch of non-fatal file lifetime issues17:30
jelmermgz: what's the remaining failure?17:32
mgzit's shallow, seem to just be expecting a nix-style file: url in a repr17:32
mgzthe file lifetime issues seem more relevent17:32
=== yofel_ is now known as yofel
mgzI'll put up a mp or two for you.17:34
jelmermgz: cool, thanks17:38
mgzokay, that was a pain but it worked finally18:14
mgzjelmer: http://float.endofinternet.org/xmlbin/bp.git18:16
mgzclick little coloured boxes for details, the yellow ones are various warnings about file usage etc18:16
jelmermgz: that still indicates one failure18:17
mgzyeah, I had to fix my runner, so haven't fixed that test yet :)18:17
jelmermgz: hah, ok18:18
jelmermgz: awaiting your mps ;-)18:18
jelmermgz: does stat_result have the same contents on Windows?18:47
mgzthe tests pass :P18:48
mgzI think the struct in posixmodule.c has only one definition, it's only how it's populated that is platform dependant.18:49
mgzI will double check18:49
mgzwell, nearly. the ifdefs only kick in on the 14th item18:51
mgzso they way you're constructing it is portable.18:51
mgzwhoa, weird conflicts thing in the diff, I wonder how I messed that up.18:54
mgzusing uncommit and push twice was probably pretty bogus, I should have just let one branch depend on the other18:56
mgzah, I didn't, you were just already touching that code while I was fiddling with my test runner19:04
jelmermgz: posixpath is correct, the index file always contains slashes20:19
mgzyeah, and I think the bug I just filed is mistargetted, I can reproduce it without plugins20:19
mgzlooks like a bzr 2.5 regression20:21
mgzfood first, then I'll fix that...20:27
mgzjelmer: so the good news is bzr-git kicks ass and just branched a big git repo locally in windows no problem21:17
mgzthe bad news is bzr itself is broken on trunk and the blame is on one of your colo changes :)21:18
jelmermgz: heh, ok21:20
* jelmer is still working on getting more bzr.dev tests passing against bzr-svn21:20
jelmerdown to ~140 failing ones now21:21
mgzokay, so _win32_extract_drive_letter is broken if given a url to a drive with no trailing slash21:32
AuroraBorealisisn't there a python function that gives you the drive letter?21:32
mgzthis is for file urls, which python didn't have proper handling for21:33
AuroraBorealishmm.21:33
mgzbut... why is the drive being used here at all? bzrdir is stripping off all the directories for reasons I don't understand21:33
AuroraBorealisi dunno xD21:34
AuroraBorealiswhat file is this?21:34
mgzbug 84132221:34
ubot5Launchpad bug 841322 in Bazaar "IndexError branching from one windows dir to another" [Medium,New] https://launchpad.net/bugs/84132221:34
AuroraBorealisextract_drive_letter looks correct21:38
AuroraBorealissince its just stripping off /C:21:38
AuroraBorealisand then returning the rest of the string21:38
mgzwhat's not correct is `if len(path) < 3` ... `path[3]`21:39
mgzneeds to either be `< 4` or not index the fourth character21:39
AuroraBorealisthe len(path) < 3 seems right21:40
AuroraBorealisbecause if its less then 3, then its just C:21:40
AuroraBorealisor it can't be a valid path cuase you need the drive letter21:40
mgzthis is in the context of file urls21:41
mgzand I'm not certain if file:///C: is valid or if it needs to be file:///C:/21:41
AuroraBorealisso what are file urls? just file://<whatever> ?21:42
mgzdifferent implementations give me different results at least :)21:42
mgz^it's a bit more than that21:42
AuroraBorealisi dunno much about the bzr code base but this still seems right21:42
mgzthrowing an IndexError off a string isn't ever really correct21:43
mgzeither we need to raise an exception saying the url is invalid,21:43
mgzor handle it.21:44
AuroraBorealishmm the code changed from when i last checked out21:45
AuroraBorealisso or path[2] not in ':|' or path[3] != '/': is throwing the index out of range?21:45
mgzread as "/C:"[3] != "/"21:46
AuroraBorealisso there needs to be a check to see if the url is less then 4 then21:46
AuroraBorealisor 321:46
AuroraBorealisdepending on what you were talking about21:47
mgzthen there's the problem of LocalTransport.abspath trying to produce such a thing21:48
AuroraBorealisits hard to see whats going on >.>21:49
AuroraBorealisare you trying to fix it? my code is going to conflict if i update cause i'm changing things21:49
mgzfeel free to fix the bottom level function, that needs doing whatever21:50
mgzthe rest of it, as you say, is tough to comprehend21:51
AuroraBorealislocaltransport.abspath?21:51
mgzor I guess Transport.__init__? I'm not really sure where to put the blame21:55
AuroraBorealisi can try to take a look but i'm pretty noobish at this codebase xD21:55
mgzokay, I'm pretty sure the rstrip there wants changing, you can't just strip abitrary urls22:09
pooliehi all23:19
jelmer'evening poolie23:23
pooliehi there23:23
mgzhey poolie!23:36
pooliehello mgz, how are you?23:36
mgzrather short of sleep and stressed, but I've had this evening to hack on things at least :)23:37
pooliei'm sorry to hear about that first part23:44

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