/srv/irclogs.ubuntu.com/2008/12/30/#bzr.txt

jelmerI don't think a good two-way CVS plugin is easily doable00:00
* LarstiQ is inclined to agree with jelmer00:00
jelmerthe easiest solution is probably to just build on something like cvs2svn, but you would have to make sure that you don't change the output or make the file ids / revision ids/ depend on the changes in the content00:00
Jc2kjelmer: dead code, i've removed it locally00:00
jelmerJc2k, ah, ok00:01
markhgaryvdm: woohoo to the qbzr threadless-throbber branch landing :)00:03
Jc2kjelmer: can you have a look at r126 - change to find_missing_objects so it uses get_refs instead of heads. thats enough to fix git-serve for git clone00:03
Jc2k(just pushed again)00:03
garyvdmmarkh: I'm happy to. Just worried about regressions.00:03
Jc2kjelmer: (something doesnt feel right about it)00:04
markhI'll create new binaries locally so I test it with my "real" bzr00:05
markhI must find that resources problem first...00:05
jelmerJc2k, looks alright00:12
jelmermerged00:12
Jc2kwicked00:13
Jc2kjelmer: any thoughts on dealing with the incoming push? i was thinking about having a FakeGitRepo class that operated on in memory heads and a single pack, and then dealing with it similar to the stuff in svn-import00:55
Jc2kjelmer: i guess the only difference between FakeGitRepo and LocalGitRepository is at the dulwich level anyway...00:58
Jc2k(its a .git less repo with one pack and the heads are just a dict..)00:59
Jc2kjelmer: so i could add a Repo class in dulwich that just took a pack and some heads and otherwise didnt touch the disk, then tweak LocalGitRepository in bzr-git so it can just be pasted a dulwich repo object directly, then in the server code create a LocalGitRepository with an in memory fake virtual rpeo think and copy revisions with InterGitRepository01:01
Jc2kand i think use pull to update teh tips?01:02
Jc2kpasted/passed01:02
* Jc2k heads to bed before my spelling accuracy falls any lower01:03
jelmerJc2k, still there?01:03
Jc2kjelmer: just about01:03
jelmerJc2k, hmm01:04
jelmerJc2k, did you see Repository.add_pack()01:04
Jc2kjelmer: are you suggesting i actually create a valid git repo for each incoming push?01:05
jelmerJc2k, not sure I follow01:06
jelmerwhjat would you need the fake repository for?01:06
Jc2khow does add_pack help with handling an incoming push to bazaar?01:06
jelmerah, you were talking about an incoming push to bazaar01:07
jelmerthat makes more sense01:07
* Jc2k might just create a git repo for each push to get something working, and then refactor01:10
dortanyone know the syntax to pass a username through bzr-svn01:12
jelmerdort, in the url01:12
dortwhen checking out from an http:// repo (svn)01:12
dorthttp://user@01:13
dortgives me a segfault after prompting for the password twice01:13
jelmerdort, what version?01:13
dorti just installed in my debian sid (didn't check yet)01:13
dortBazaar (bzr) 1.501:14
jelmerin that case you would want the version from experimental01:14
jelmerwhat bzr-svn ?01:14
dortii  bzr-svn        0.4.10-201:14
dortis there a better choice in experimental?01:15
jelmerdort, yeah, you want the version from experimental01:15
dortok, thx much01:15
jelmerif that still segfaults, please file a bug01:16
dorthmm01:19
dortO watta goo Siam01:19
dortas i install the new packages (or try to) I realize i've filled up my hard disk01:19
* dort sulks away to fix this01:19
dortsorry, maybe that's what caused the segfault in the first place :-[01:19
jelmersleepytime01:21
dortworking now, thx much jelmer01:22
dortsweet dreams01:22
=== timchen1` is now known as nasloc__
=== Spaz is now known as BrickOfShit
=== BrickOfShit is now known as Kittens
vilahi all07:02
jelmerhey Vila10:38
vilajelmer: hi !10:38
=== Mario__ is now known as pygi
=== asac_ is now known as asac
Jc2kjelmer: ping12:14
jelmerJc2k, pong12:14
Jc2kmorning :)12:16
Jc2ki simplified apply_pack a bit (to use object_store.add_pack)12:16
Jc2kalas its now all kinds of slow12:16
Jc2k(well, it might even be stuck in a looop...)12:17
jelmerJc2k, hi :-)12:25
jelmerJc2k, ah, cool12:25
jelmerJc2k, back13:12
* Jc2k waves13:16
Jc2kjelmer: iterentries seems to be going on forever :\13:39
jelmerJc2k, yeah, the generating of the index is slow as hell at the moment14:15
jelmerJc2k, I think it's because of the repeated mmaps14:15
Jc2kjelmer: this is a definite loop14:15
Jc2kjelmer: traced it back to read_zlib14:16
Jc2kjelmer: for some reason add = data[base:base+1024] isn't fetching any data, so fed doesnt increase, so it tries the same chunk again, which is still "", and unused_data is still "".. so it goes on forever14:17
jelmerahh14:18
Jc2kjelmer: its read 2639 of an object of size 4117, any its about 20 or so objects away from the end of the pack14:18
Jc2kso im not sure whats going on14:18
jelmerinteresting14:24
jelmerwhat happens if you manually try to feed that data string?14:24
Jc2k*tests*14:29
Jc2kjelmer: if i feed the pack manuall to PackData.iterobjects, it seems to be fine14:32
Jc2k(and the same pack was working before i moved to add_pack && comit..14:33
Jc2k)14:33
Jc2kflushing thing.14:35
Jc2kjelmer: gah! for some reason i thought commit closed the fd.14:36
Jc2kpushed.14:37
jelmerchecking15:53
jelmerJc2k, still there?15:56
Jc2kjelmer: i wasnt, but i just got back :]15:57
Jc2kjelmer: whats up?15:58
jelmerJc2k, just merged + pushed your branch15:59
jelmerfetches from local git repositories and from remote git repositories work now15:59
Jc2ksweet16:00
Jc2kjelmer: ping19:38
jelmerJc2k, pong20:02
Jc2kjelmer: hey. it seems like im able to push revisions :]20:04
jelmerJc2k, w00t!20:05
Jc2kthough its an evil hack20:05
jelmerI'm trying to clone samba using bzr at the moment :-)20:05
Jc2kand its made me think using InterGitRepository is needless20:05
Jc2ki really should just use import_git_objects directly20:05
Jc2kwhich im going to try, but first i need to spawn branches20:06
Jc2ktrying to rob some bzr-svn for this..20:06
jelmerJc2k, yeah, I don't think InterGitRepository is necessary either for the server side of things20:07
Jc2kit just duplicates the work-out-what-to-copy step and then calls import_git_objects20:07
Jc2kgeh20:08
Jc2kjelmer: is there a super easy way to just spawn a branch and set it to a given revision id?20:08
jelmerJc2k, a bzr branch you mean?20:09
Jc2kyeah20:09
jelmerJc2k, Yeah, once you have a BzrDir, just call "bzrdir.create_branch()"20:09
jelmerand then branch.generate_revision_history(revid)20:09
Jc2kdoes bzrdir.create_branch need the directory to be present?20:10
jelmeryeah20:10
jelmerit also needs the .bzr directory to be present20:10
Jc2ktheres a large chunk of bzr-svn code for this (get_dir, transport_makedirs, and some other utils)20:11
jelmerThough you ca nprobably use BzrDir.create() or something to create the .bzr directory20:11
jelmerah, ok20:11
jelmerJc2k: It may be nice to move those utility functions into bzrlib20:11
jelmerjust so we don't need any copies20:11
Jc2kthats what i was thinking, but maybe BzrDir.create is better?20:11
jelmerJc2k, What I usually do is first move it to bzr-foreign, and then later submit it for inclusion in bzr.dev20:12
Jc2kjelmer: so import_git_objects. atm i guess the order of the object yielding function doesnt matter. will it>21:02
jelmerJc2k, no, it doesn't matter21:09
jelmerIt won't matter in the future either I thijnk21:10
jelmer(with apologies for my bad spelling tonight, blame the beer)21:10
jelmerJc2k: The order in which remote hosts order it would be related to the delta order21:10
Jc2kjelmer: brilliant. in that case im going to see if i can tweak dulwich to support iterobjects directly off the wire21:15
Jc2kjelmer: at the very least, i dont need the index21:15
smoothiceIf I have a branch that I want to basically remove all the contents out of it and replace it with new contents.. how would I do that?21:16
jelmersmoothice, bzr pull --overwrite ?21:16
jelmerJc2k, yeah, you don't need the index indeed21:16
smoothicejelmer: ok thanks21:17
=== fawek_ is now known as fawek
* jelmer is having a hard time trying to map a git index file to a bzr working tree21:57
jelmerit seems the two concepts don't map very well21:57
jelmerperhaps support for (git-like) indexes has to be added to bazaar first21:57
Jc2kjelmer: is a primary aim for bzr-git to let people use bzr on a local git clone?21:58
jelmerJc2k, depends on what you mean by primary aim :-) but if at all possible, it would be nice to support it21:59
Jc2k:-)21:59
jelmerat least personally, I would very much like to be able to use bzr on native local git repositories21:59
Jc2kjelmer: so i find myself needing a PackData.iterobjects that returns me ShaFiles22:01
jelmerJc2k, Use Pack.iterobjects()22:01
jelmerJc2k, you may want to generate an index first22:01
Jc2kjelmer: but if i tweak iterentries i dont need the index files...22:01
jelmerJc2k, you do, because you need to resolve deltas22:02
Jc2koh, crap.22:02
jelmermaybe you're just lucky at the moment that you don't hit any ref delta's, but once you do, you really want that index22:02
jelmerperhaps we can allow the index to be in-memory at some point22:02
jelmerbut I don't think that will help significantly in terms of performance22:03
Jc2kok, pushed what i have so far. now using import_git_objects directly, and accessing pack directly (with index) instead of going via Repo.22:11
jelmerah, cool22:11
* jelmer is looking at implementing the index22:12
Jc2kits a bit messy, le sigh.22:12
=== spm_ is now known as spm
jelmerah well22:42
=== davidstrauss_ is now known as davidstrauss
james_wcan someone with pycurl installed try "bzr info https://code.launchpad.net/bzr" please?23:43
markhjames_w: works for me23:52
james_wmarkh: thanks23:52
james_wmarkh: I assume you are not on Ubuntu :-)23:52
markh:)23:53

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