/srv/irclogs.ubuntu.com/2008/03/22/#bzr.txt

jelmeryacc: package support?00:00
yaccWell, if you want to make bzrlib.plugins.svn.lowlevel a module, you need to store that path in the filename of the .pyx for Pyrex. Cython automatically detects the package path.00:00
jelmerah00:01
yaccIn theory it works with Pyrex too, and you might get by my making the module thing it's something else that it is (as long as you do not need introspection about what module you are), ...00:01
PengAlso, isn't Cython supposed to have more optimizations?00:01
yaccPeng: it is.00:01
PengYeah, but I mean is more more than 3% faster?00:02
PengBzr is kind of laughably slow on Python's branches...00:02
yaccPeng: that depends on your code. For a C-library binding to Python it should make no real difference.00:02
yaccPeng: that's kind of because Python is a huge svn repo. Importing python into an svk depot is beyond laughable, it's more like crying from pain.00:03
jelmeryacc: ah, ok. I have no use for that right now though, so I'll try to keep the .pyx file usable by both as long as I can00:03
Pengyacc: Heh. Like I said, "missing" took a couple minutes, and "diff -c" is quite slow too.00:03
jelmerthe C file generated by pyrex is 6500 lines, the one from cython is almost 11000 lines00:04
yaccmissing?00:04
yaccjelmer: why do you care?00:04
PengWoah.00:04
Pengyacc: "bzr missing".00:04
yaccjelmer: I mean how big is the difference in compiled size?00:04
jelmeryacc: It makes reading the source harder00:04
yaccjelmer: C is whitespacy language.00:04
PengI was gonna say "who cares" assuming it was a small difference, but that is kinda significant.00:05
yaccjelmer: you don't want to read the source. Not as long as you don't want to debug or help debug Cython/Pyrex.00:05
yaccjelmer: kind of like me ended up peeking at your code :-P00:05
jelmeryacc: you end up having to00:06
jelmeryacc: pyrex catches a lot more errors in the .pyx file than swig does in its .i files00:06
jelmerbut it still occasionally generates .c files that dont compile because of incorrect .pyx files00:06
jelmerand then you actually have to check the c file to see what is going wrong00:07
yaccjelmer: I was lucky with Pyrex (back then there was no Cython) that I did not need to debug the generated code :)00:07
jelmeror in the case of segfaults00:07
yaccjelmer: In my case back then in '03/'04, swig and the C++ core app where the usual culprits for "problems" ;)00:08
jelmer:-)00:08
jelmerif you guys have experience with pyrex, you may actually have a clue how to work around the issue I'm facing at the moment00:09
yaccjelmer: and well, nobody cared about all my little problems. The bad guys (as curious that sounds that was the sister company in NL) kept us busy with trying to decipher the file format ;)00:10
jelmerI've got a callback function in pyrex that needs to return a pointer to an error whenever an exception occurs00:10
yaccjelmer: tell, perhaps I can help.00:10
yaccpaste?00:10
yaccOr branch url?00:10
yaccerror being what data type?00:11
jelmerhttp://paste.ubuntu-nl.org/60476/00:11
jelmerthe error is a pointer to a structure00:11
jelmeror NULL in the case no error occurrs00:11
yaccAnd what is your problem then?00:12
jelmerif an exception occurs in     self.set_target_revision(target_revision) I need to return a pointer to an error rather than NULL00:13
yacctry: except:00:13
jelmerI haven't figured out a way to do that yet though00:13
yaccput a try: except: as in Python around the call.00:13
jelmeryacc: I need to retain the exception as well00:13
yaccWell, in any chance to piggy pack it onto svn_error_t?00:14
yaccIf not, you will probably need to keep it in a dictionary keyed by pointer address?00:14
jelmerieuw00:17
jelmeryeah, I guess that would work00:18
yaccnobody said that it's cool to wrap a C API, especially one that uses callbacks and other stuff for a language like Python.00:19
yaccOne of the better things about the Gnome Project was that it realized that from the beginning, and despite some flames, they managed to make their APIs "wrapping-friendly" ;)00:20
jelmerthe svn API is pretty good overall00:25
jelmerpyrex is a little less powerful than swig though (which is used for python-subversion)00:25
jelmerthe language is a lot saner though00:25
* Peng gets a traceback using bzr-svn on Lighttpd's repo.00:28
PengSomebody forgot to import "errors" in svk.py.00:29
PengWell, I guess it'd just error out anyway for a different reason if it weren't for that. :P00:29
yaccless powerful?00:38
yaccI wouldn't say so. It's just way less automatic. OTOH, when you wrap something, you get usually a better designed wrapping, and potentially a faster one.00:39
* Peng notices that his copy of bzr-svn is out-of-date.00:40
radixPeng: oh yeah, I've been noticing that like 100 times a day lately00:44
PengOk, updating didn't help.00:45
jelmerPeng: What branch are you using?00:46
Pengjelmer: Hold on.00:46
Pengjelmer: .bzr.log http://paste.pocoo.org/show/34862/00:48
Pengjelmer: svn://svn.lighttpd.net/lighttpd/trunk/00:48
Pengjelmer: svn import on the repo did it too00:48
Pengjelmer: Latest bzr-svn 0.4 and bzr.dev as of five minutes ago.00:49
jelmerPeng: You shouldn't get a out-of-date error with bzr-svn 0.4 though00:51
jelmerPeng: I've fixed the import error00:52
PengThanks.00:53
PengResponsive developers are awesome.00:53
Pengjelmer: Um, yeah, now it works. Thanks. :)00:59
jmljelmer: that reminds me, the 0.4.8 branches works really well with the o-hand.com repos.01:07
jelmercool :-)01:24
ubotuNew bug: #145171 in bzr-svn "Invariant break on bzr missing in bzr-svn" [Medium,Incomplete] https://launchpad.net/bugs/14517101:36
ubotuNew bug: #94316 in bzr-svn "Traceback doing log -v" [Low,Triaged] https://launchpad.net/bugs/9431602:26
awmcclainWhere does bazaar.conf live? In site-packages?02:39
abentleyawmcclain: in ~/.bazaar02:40
jholmanI want to install bazaar on an ubuntu box.  I am pretty much an ubuntu noob, I confess.  I followed the link to the bazaar launchpad site, and added the 2 gutsy lines to my sources.list, and did apt-cache show bzr...03:15
jholmanand I get 2 entries, first of all (one out of the main ubuntu package repository, I guess?)... and they're both old versions03:16
jholman1.2-1 and 0.90-103:16
fullermdWell, 1.2 is only old as of, like, 12 hours ago or something.03:17
jholmanfair enough.03:18
jholmanso the reasonable thing to do is to trust apt, remember that I should do an update/upgrade in a day or three, and go from there?03:18
fullermdWith the caveat that I don't really know anything about Ubuntu packaging (or package using), that sounds right.03:18
jholmanhmn, significant caveat, but fair enough03:19
* fullermd is all about ambiguity, except when he's not :)03:20
jholman=]03:20
abentley"We demand rigidly defined areas of doubt and uncertainty!"03:30
* fullermd demands that he may or may not know about a bzr release.03:30
abentleyWell, we haven't been quite punctual about getting the debs out in the past.03:32
abentleyYes, it does look like 1.3 hasn't hit our repo yet.  It should in the next few days.03:33
jholmanok03:34
Odd_BlokeMorning.03:50
rustyHi all: I'm struggling to find out if there is an answer to the question of setting up multiple committers to a (remote) repository.04:06
jmlrusty: hi.04:07
jmlrusty: you mean multiple people pushing to the same branch?04:07
rustyjml: yes.04:07
jmlrusty: that should pretty much work out of the box. what problems are you having?04:08
rustyjml: well, currently I'm using rsync to send to server, but that won't work for the second committer.04:09
rustyjml: so I wondered what the "correct" way to do this is.04:09
jmlrusty: well, the "correct" thing is both people should be using 'bzr push bzr+ssh://..."04:10
jmlbut let me do an experiment04:10
rustyjml: for mercurial, I have an acct on the server with write access to the repo and put their ssh key in the authorized_keys with command=04:10
jmlrusty: is the issue is that the push overwrites permissions / ownership?04:11
jmlyou could do that with bzr, I think04:11
rustyjml: no, sorry, the issue is that I haven't tried it, was looking for advice :)04:12
jmloh :)04:12
jmlso, I think you don't have to do that, if you wanted you could have an account per user.04:12
jml(that's what I'd do, if I weren't using something like PQM)04:12
rustyjml: I really don't want to hand out accounts on the server.04:12
jmlrusty: you could also do what you just described -- a special account with authorized_keys04:13
jmlrusty: alternatively, you could use Launchpad (but I'm guessing you want to host this yourself).04:13
jmlrusty: what do you know about PQM?04:15
rustyjml: nothing, I just googled it when you mentioned it :_04:15
jmlrusty: ok. PQM acts like an automated gatekeeper. You send it signed emails and it does the merge.04:16
jmlrusty: Bazaar itself uses PQM to make sure that the test suite passes before it lands anything.04:16
jmlrusty: I haven't set it up myself, but if that sort of thing appeals to you then you might want to check it out.04:17
jml(is this for libantithread, perchance?)04:17
rustyjml: ccan :)04:17
jmlheh.04:18
rustyjml: OK, I think I'll try adapting the "hg-ssh" wrapper for bzr.  Looks like it'll be fairly easy.04:20
* jml thinks04:20
jmlrusty: why do you need a wrapper?04:21
rustyjml: you use "command=wrapper <repos>" and it restricts that key to only running bzr, and what repositories it can access.04:21
rustyjml: it's a cute ssh feature (the command they wanted to run is in $ORIG_SSH_COMMAND)04:22
Odd_Blokejml: http://bazaar.launchpad.net/~daniel-thewatkins/+junk/merged-branches now has working shelved changes logic, and a test to go with it.04:24
jmlOdd_Bloke: you mean my previous logic was not working? inconceivable!04:24
jmlrusty: it'd be cool if you could post it to the Bazaar ML once your done. That is, if there's anything interesting and not site-specific :)04:25
rustyjml: sure!04:26
Odd_Blokejml: It wasn't so much that the logic wasn't working as that you weren't actually referencing bzrtools and you were getting hit by double-underscore munging. :p04:27
jmlOdd_Bloke: I guess now that I've got more than one user and more than one contributor I should register a project for it.04:27
jmlOdd_Bloke: can you suggest a name better than "merged-branches"?04:28
Odd_Blokejml: The little thought I've given it didn't produce anything better, sadly.04:28
jmlOdd_Bloke: merged-unchanged-unshelved-branches doesn't have quite the same _energy_.04:29
jmlOdd_Bloke: what do you think of 'boring-branches'?04:29
Odd_Blokejml: I'm not sure it conveys enough of what it actually means.  How about 'redundant-branches'?  Or 'removable-branches'?04:32
Odd_BlokePerhaps 'excess-branches'?04:32
jmlluxury-branches :)04:32
fullermdthis-is-an-ex-branch04:33
Odd_Blokegratuitous-branches :p04:33
jmlok. As benevolent dictator for today, I am going to call the project bzr-removable04:34
jmlOdd_Bloke: OK w/ MIT license?04:36
Odd_Blokejml: I'd prefer GPL, but I'm easy.04:37
jmlfine by me.04:38
rustyjml: Erk, hit a snag.  bzr push bzr+ssh runs 'bzr serve --inet --directory=/ --allow-writes' on the remote end, indep. of what repo it's trying to access.04:39
rustyjml: Makes it hard to restrict the repo by looking at command line.04:39
rustyjml: (0.9 does this as well as 1.3)04:40
jml*nod*04:40
jmlI should have foreseen that, sorry.04:40
* jml has a look around04:40
jmlrusty: ok, so I have a crummy workaround.04:42
jmlrusty: but it's pretty terrible.04:42
rustyjml: well, I was going to ignore it for the moment, so I doubt yours will be worse :)04:42
jml(Bazaar should change to let you specify a directory)04:43
jmlrusty: you were warned04:43
jmlrusty: you can tell it which bzr executable to run using BZR_REMOTE_PATH.04:43
jmland then you could dispatch off that.04:44
rustyErk, I was thinking to change --directory=/ to --directory=<acct home dir> so they can only access stuff in their home?04:45
jmlrusty: yeah, that would be better if you could do that :)04:45
jmlrusty: but if you have a wrapper script that's parsing the contents of SSH_ORIGINAL_COMMAND then you could do something horrible based on the specified location of the bzr executable.04:46
jmlugh.04:46
jmlthat's a bad idea, forget I said anything.04:47
jmlOdd_Bloke: with bzr plugins, is there a convention for the team that owns trunk?04:49
rustyjml: hmm, want to give me a hint on how to s,--directory=/,--directory=sys.argv[1], in python?  And then exec it?04:49
jmlrusty: sure04:50
jmlos.system(command_string.replace('/', sys.argv[1], count=1)) should do the trick.04:51
* AfC waves to rusty04:51
rustyjml: don't I want .exec to avoid quoting troubles?04:52
AfCrusty: I've been through a lot of the hosting pain; if you're still stuck next week I can totally try to help you out when I get back.04:52
rustyAfC: this is self-inflicted... bzr is the one distributed vc system I hadn't tried yet.04:53
jmlrusty: was being quick and dirty04:53
AfCrusty: I've had some nice results, though... things like http://research.operationaldynamics.com/bzr/java-gnome/mainline/ instead of an empty directory04:53
* jml always has to look this stuff up04:53
rustyjml: I think I'm almost there...04:54
* AfC really needs to move that server from Europe to western North America somewhere :)04:54
jmlrusty: using exec would work fine too.04:54
jmlOdd_Bloke: I'm getting hungry and kind of bored of sitting at a computer. I'll have a play with your branch tomorrow.05:02
jmlOdd_Bloke: the bzrtools fix is obviously right :)05:02
fullermdErk.  You wanna be careful playing with that --directory...05:02
fullermdYou get too smart, you'll wind up giving yourself big headaches down the road.05:02
rustyjml: woot: $ bzr push bzr+ssh://ccan@ozlabs.org/ccanThis transport does not update the working tree of: bzr+ssh://ccan@ozlabs.org/ccan/. See 'bzr help working-trees' for more information.- [==                                                        ] Transferring 0/405:05
rustyjml: I ended up with babytalk python: if orig_cmd == 'bzr serve --inet --directory=/ --allow-writes':    os.execlp('bzr', 'bzr', 'serve', '--inet', '--directory=' + sys.argv[1], '--allow-writes')05:08
jmlrusty: nothing wrong with simple.05:08
rustyjml: no doubt it will break if bzr changes cmdline, but it should be obvious.05:09
jmlright.05:10
jmlrusty: I look forward to reading your email. :)05:11
* jml is really gone now05:11
Odd_Blokejml: Sorry, I was playing Peggle.  I don't know about convention, enjoy your food and have a good Easter. :)05:39
thekornhi all, In a script I would like to get all revision numbers of a branch,10:10
Odd_Blokethekorn: What do you mean by "all revision numbers of a branch"?10:10
thekornis it save to do something like    range(1, number_of_last_rev +1) ?10:10
thekornOdd_Bloke, a list of all revision numbers of a branch10:11
Odd_BlokeI can't immediately see why not, but that will obviously exclude merged revisions (i.e. dotted revision numbers).10:11
thekornare this rev numbers continuous and linear?10:11
Odd_BlokeThe mainline revision numbers are, but merged revisions use dotted revnos.10:12
thekornOdd_Bloke, that's fine I'm only intrested in the "main-line"10:12
Odd_BlokeThen you should be fine. :)10:12
thekornthanks10:12
Odd_BlokeWhat are you using all the revision numbers for?10:13
thekornOdd_Bloke, well I started to play around with bzrlib yesterday and I ended in writing a fuse-file-system for bzr10:14
Odd_Blokethekorn: Ah, interesting.  Someone at the sprint was looking at that, though I can't remember who.10:16
thekornwithin the filesystem there are two main directorys "revisions" and "tags"10:16
Odd_Blokethekorn: I think enough people would be interested in looking at that to make it worth sending something about it to the mailing list.10:18
thekornOdd_Bloke, sure, will push the code to launchpad project soon and can also write a mail to the ML10:20
Odd_BlokeAwesome, thanks. :)10:21
nubbunIn bzr 1.3, I have an error loading bzrlib .  It recommends setting PYTHONPATH.  Setting PYTHONPATH has no effect.12:27
nubbunon this error.  The error is still reported.12:27
nubbunRunning bzr from the top of its directory tree, works.12:27
Odd_Blokenubbun: Could you pastebin the error?12:33
nubbunhttp://www.pastebin.org/2483612:35
Odd_Blokenubbun: Just having a look now. :)12:45
Odd_Blokenubbun: How did you install bzr?12:45
Odd_BlokeAnd what type of sustem are you on?12:45
Odd_Bloke*system12:46
nubbunextracting a tarbal12:46
nubbunlinux12:46
nubbunDebian Etch12:46
datonubbun: did you cp bzr to your ~/bin?12:46
Odd_Blokenubbun: So you did 'tar zxvf bzr-1.3.tar.gz' (or equivalent)?  Did you take any further steps?12:46
nubbunno did ln12:46
datonubbun: if so, I recommend that you symlink it instead12:46
datonubbun: ln -s?12:46
datoor ln alone12:47
nubbunTrying now.12:47
nubbunNow it works as symlink.12:48
ubotuNew bug: #205112 in bzr "bzrlib in PYTHONPATH not found" [Undecided,New] https://launchpad.net/bugs/20511213:46
ubotuNew bug: #161830 in bzr-svn "log should show subversion revision numbers as well as branch/bzr revision info" [Wishlist,Triaged] https://launchpad.net/bugs/16183014:14
radixAm I the only person that often runs into problems using bzr-svn on a project that already uses lots of branch-based SVN development?15:10
radixlike, trying to merge stuff with SVN often results in a conflict on "."15:10
jelmerradix: Haven't seen that issue before15:11
jelmerradix: conflict on . ?15:12
radixjelmer: properties, presumably15:12
jelmerradix: Ah, svn merging bzr branches in svn?15:12
radixjelmer: svn merging SVN branches that happened to have bzr commit to them in svn15:12
radixto be precise :)15:13
jelmerThat's basically unsupported by bzr-svn at the moment15:14
radixit seems bzr-svn would be great if I were only trying to integrate with projects that mostly do trunk-cowboy hacking15:14
jelmeruntil the ability in bzr-svn to use revision properties (as opposed to file properties) lands15:14
radixjelmer: ah, that sounds exciting15:14
ubotuNew bug: #205156 in bzr "KnitRepository.insert_data_stream() copies data in improper order" [Critical,Triaged] https://launchpad.net/bugs/20515615:26
arnetheduckhi, I'm about to migrate from svn to bzr and I noticed that there are several options available - does anyone have any tips on which one to choose?15:35
arnetheduckbzr-svn seems nices to me, but it seems like it doesn't keep the tags for example...15:35
arnetheduck(I have a classic trunk/branches/tags type of svn repo)15:35
jelmerarnetheduck: it will keep the tags (if you use "bzr svn-import") but as branches15:41
arnetheduckjelmer, so I noticed - does that make sense? I usually tag my releases (and I don't touch them any more after tagging) so it seemed like real tags were more suitable15:55
jelmerarnetheduck: yes, but there are certain issues that have to be addressed first for that to be supported15:59
jelmerbug 8110216:02
ubotuLaunchpad bug 81102 in bzr-svn "Tag support" [Wishlist,Triaged] https://launchpad.net/bugs/8110216:02
arnetheduckjelmer, assuming that there were no changes from the tag to it's source revision (which is verifiable via log), it shouldn't be too hard, right?16:06
arnetheduckI poked around in the bzr-svn code a few weeks ago and saw that there are at least some functions for detecting tags / tag dirs16:06
jelmerarnetheduck: tags and branches are considered equally at the moment16:08
jelmerfurthermore, you have to make sure the revision that created the tag didn't introduce any other changes to it16:08
jelmerthere can be multiple tags directories in a repository, possibly not related to the branch you're checking out16:09
ubotuNew bug: #81102 in bzr-svn "Tag support" [Wishlist,Triaged] https://launchpad.net/bugs/8110216:18
datoarnetheduck: I think you could easily script converting the resulting tag-branches to real tags after bzr-svn did its16:29
datoarnetheduck: job?16:29
arnetheduckdato, that's crossed my mind but would leave some cruft in the repo...16:32
datoarnetheduck: cruft?, what cruft?16:32
arnetheduckdato, the branches16:33
datoarnetheduck: uh, you'd just rm -rf them after converting them to real tags16:33
arnetheduckdato, well, not if they're imported too (they'd show up in logs etc)16:34
datook, maybe you're still not fully familiar with bzr and that's why we're not understanding each other :)16:35
datoarnetheduck: each branch is mostly independent from each other, there is no such think as "log for the repository as a whole"16:35
datodoes your SVN repo contain many projects, or only one (with its tags, and maybe some branches of it as well)16:36
arnetheduckdato, yep, I'm a 100% noob, as green as they come =)16:41
datook. I think the user guide has some parts explaining this stuff, but as a crash course:16:43
arnetheduckdato, it's a single project, no branches, one trunk, tags every now and then16:43
dato- each branch is16:43
datook, scratch that16:43
arnetheduckI think get your point though16:43
datogreat16:43
arnetheduckI'm kind of used to the svn/cvs mindset after a few years16:43
datoeach tag-branch will be like a "cp -r" from the original branch *at some point of its history*16:44
datoso, as svn does "copies", but in its svn-filesystem, you do copies here, but in the real filesystem16:44
arnetheduckdato, yeah, in my mind the branches remained in the .bzr folder thus created cruft, but then it your point sunk in =)16:45
datook16:45
ubotuNew bug: #205181 in bzr-svn "importing https://svn.xiph.org/trunk/theora fails" [Undecided,New] https://launchpad.net/bugs/20518116:46
arnetheduckdato, so conceptually, the script would read each branch created by the importer, find out which revision of the trunk branch it was copied from and add a tag to the trunk16:56
datomore or less. if the tag-branches created by bzr-svn contain no additional commits, which I don't think they do but jelmer can confirm, it's just a matter of:16:58
datofor each tag-branch:16:58
dato  r=second word of `bzr revision-info`16:59
dato  in trunk: bzr tag -r revid:$r $tagname16:59
jelmerthey always contain at least one extra revision (the one in which the tag was created)16:59
datooh, ok16:59
datothen `bzr revision-info -r -2`, with manual supervision, I guess17:00
arnetheduckthanks, brb, gotta feed the kid =)17:08
AfCHow many tests in the Bazaar test suite, roughly?17:20
* AfC refers to this in our HACKING document as a point in bzr's favour17:20
datoAfC: the other day 10,000 was reached17:20
AfCdato: nice. 10K it is.17:21
AfCdato: thanks!17:21
jelmerand that's just in bzrlib.. with a couple of plugins installed it's closer to 15k here17:22
AfCjelmer: wow17:22
AfCjelmer: that's amazing17:22
AfC[not that you really care, but what me write about this is at: http://java-gnome.sourceforge.net/4.0/HACKING.html under "Why bzr?"]17:23
AfCyikes17:25
AfCwhat I have written*17:25
jelmerAfC: nice17:32
jelmerAfC: btw, "bzr send" should now Do The Right Thing[tm] if you have the child_submit_to setting set to an email address in your main branch17:33
jelmeras alternative to running "bzr bundle" and then manually attaching the bundle and specifying the email address17:34
AfCjelmer: yeah, I'll work out the wording for that down the track.17:34
AfC(is that something that will propagate? No, I believe? Only if someone creates a new branch, right?)17:34
AfC(Will it "remember"?)17:35
AfC(that'd be nice)17:35
jelmerAfC: It retrieves it from the submit branch so there shouldn't be a need to propagate it17:36
jelmerfor example:17:36
AfCah17:36
jelmerbzr branch lp:bzr-gtk; hack-hack; bzr commit -m "foo"; bzr send17:36
jelmerwill do the right thing and retrieve the email address from the branch configuration of lp:bzr-gtk17:37
AfCThat's what I meant about it working for a new branch; people who have existing repository/branch structures will need to twiddle something manually I expect.17:39
AfC(is what I was asking, that's all)17:39
jelmerAfC: in the scenario I just mentioned, no extra twiddling would be required17:39
* Rhamphoryncus checks to see just how well bzr handles merging without known common bases18:04
RhamphoryncusI was using a svn checkout initialized as a bzr repository (without the bzr-svn plugin!).  Now upstream has an official bzr mirror, so I'm trying to switch to that and eliminate svn..18:07
Rhamphoryncusaha, it gave up.  bzr: ERROR: Revision {('rhamph@base-two-20071105225603-16zlps51e17ghkzl',)} not present in "<bzrlib.knit.KnitGraphIndex object at 0x106d8f2c>".18:10
RhamphoryncusSo, can anybody think of an option that gets me most of the history?18:10
Rhamphoryncusassuming my initial checkin had no changes over upstream I should be able to do a patch set and reapply them somehow, right?18:15
awilkinsAfC: btw, bzr merge won't let you merge if your tree has diffs from -r -118:16
awilkinsHence "do the merge after you.ve finished anything you might happen to be doing" is redundant.18:17
AfCawilkins: Did I imply that it would somwhere?18:17
AfCawilkins: ah.\18:17
AfCawilkins: well, I'm not really a big fan of Bazaar's error messages.18:18
awilkinsAlthough you could use the point as an opportunity to mention shelve18:18
AfCawilkins: so while you are indeed correct that it is redundant, it doesn't hurt to be attempt to set newbies on the right track habit wise.18:18
AfCawilkins: that in core yet?18:18
awilkinsshelve is still in bzrtools AFAIK18:19
* AfC only just grabbed 1.3, so I'm not current with the latest state-of-play18:19
awilkinsI switched back to 1.2 from 1.3 on the chance that it might be futzing with the pyrex version of the bzr-svn branch18:19
jelmerRhamphoryncus: you may be able to use rebase or replay to replay the changes your local branch has on top of the new upstream branch18:21
jelmerawilkins: It would be awesome if we could get that exception handling fixed so 0.4.9 can be released with the pyrex bindings18:22
awilkinsjelmer: I was thinking of running the test in Python running attached to a debugger, but I've not got Python 2.5.2 building on Win32 yet ; and I don't have a full 7.1 toolkit18:24
awilkinsMy best chance so far seems to be using the 9.0 toolkit because you can at least download it as part of the PSDK18:24
jelmerawilkins: Running the tests doesn't make a lot of sense until this problem is resolved18:25
jelmeruntil then, you'll probably keep getting segfaults18:25
awilkinsjelmer: What is so frustrating is that it only segfaults if you run the test suite - the test on it's own passes18:25
awilkinsRunning the host class is enough to trip the fault18:26
awilkinsSounds memory-flavoured18:26
awilkinssomething being initialized wrong or a pool going bad or something18:27
jelmerawilkins: that's probably related to it not reporting the test that's segfaulting properly18:27
awilkinsSo it could be the following test?18:28
awilkinsWhich DOES throw an exception18:28
jelmerif it prints "ignored exception ..." that's probably a test that's causing a segfault18:28
awilkinsWindowsError, as I recall18:28
awilkinsNot got my desktop fired up ATM though18:29
jelmerIgnored Exception "WindowsError ..." ?18:29
awilkinsPossible18:29
awilkinsGive me a few minutes, I'll boot my desktop and run it again18:30
arnetheduckreturning to my repo move, once I have my repository converted I'll be keeping a main development branch that I'd like to sync the old svn to, one-way, so that commits to the bzr branch are merged to the svn branch...this should be doable with the bzr-svn plugin, right?18:34
awilkinsjelmer: It's an "Access is denied"18:35
jelmerawilkins: hmm, ok18:35
jelmerawilkins: what happens if you run selftest with --one ?18:36
awilkinsjelmer: On just that test, or the whole bzr-svn tree?18:37
jelmerawilkins: all of bzr-svn18:38
jelmerit should then quit and print the backtrace as soon as it hits a single exception18:38
awilkinsjelmer: fails on test_branch.WorkingSubversionBranch.test_create_checkout18:38
awilkinsSubversionException: ('Unable to open an ra_local session to URL', 180001)18:38
awilkinsjelmer: This is bzr 1.2, that right?18:39
jelmerawilkins: should be 1.318:40
jelmeror bzr.dev18:41
awilkinshttp://pastebin.ca/95300818:43
jelmerawilkins: I think that one is probably specific to your environment18:47
awilkinsAre these bindings SVN 1.5 specific or are they still 1.4.6 compatible?18:58
awilkinsWell, I've built them against the 1.4.6 deps packs, so I guess they should work, eh?18:59
jelmerawilkins: yeah, 1.4 and 1.5 should both work19:04
awilkinsjelmer: Arrgh, it works from Eclipse/PyDev but not from my shell19:05
awilkinsI HATE Heisenbugs19:05
awilkinsHmm19:05
* awilkins diffs plugins tree and source19:05
ubotuNew bug: #205230 in bzr "error message recommending incorrect setting of PYTHONPATH" [Undecided,New] https://launchpad.net/bugs/20523019:06
j1mchi there.  a group i work with was interested in upgrading our repository to the new pack format, but don't know if it's possible with bzr-svn (which we use)19:08
j1mchere's what i get when i do a bzr info: Checkout (format: dirstate-with-subtree)19:08
jelmeryou could upgrade to --pack-0.92-subtree19:10
j1mcjelmer: thanks... i will check into that.19:12
j1mcjelmer: per this page ( http://doc.bazaar-vcs.org/latest/developers/packrepo.html#testing-packs-for-bzr-svn-users ) it says that this kind of subtree support is bleeding edge.  is that still accurate?19:13
jelmerj1mc: the format is not experimental but some of the functionality it enables is19:14
j1mcjelmer: could you recommend a page that would detail some of this advanced functionality?  i think we use bzr in a pretty straight-forward manner, but it would be good to know what options are more experimental, and what options are better supported.19:18
nubbunOdd_Bloke: thank you for the response to the first PYTHONPATH bug report.19:23
jelmerj1mc: it's fairly simple actually; it enables by reference nested trees19:25
jelmerj1mc: created using "bzr join --reference". If you avoid using that command you should be fine19:25
j1mcjelmer: thanks.19:25
TheMonkeyhola19:29
TheMonkeywhat is the recommended way of setting up a read-only bzr repo over http?19:30
james_wTheMonkey: there should be no setup needed, just serve the branch over HTTP.19:30
awilkinsjelmer: Mutters should be showing up in the test log?19:31
TheMonkeyso just copy the folder to the server?19:31
james_wTheMonkey: yes, bzr push can do that.19:32
TheMonkeyjames_w bzr push over http?19:32
james_wTheMonkey: no, bzr push over ssh or something.19:33
TheMonkeyah, yes19:33
TheMonkeyis there webDAV support or similar planned to support http for writing, too?19:34
TheMonkeyjust curious, being a long time svn user19:34
james_wTheMonkey: there is a webdav plugin, but it is marked experimental.19:38
jelmerawilkins: yep19:39
TheMonkeyjames_w, i see. thanks for the info, i can wait :)19:39
awilkinsjelmer: This stack dump lists a line that occurs after a mutter, but the mutter output isn't showing19:40
jelmerawilkins: it may not have been flushed to disk19:41
awilkinsjelmer: can you force it, because knowing the value would really help :-)19:42
awilkinsjelmer: It's to STDOUT anyway, why would disk flush be a problem?19:43
jelmermutter doesn't print anything to stdout19:49
awilkinsOh, so the test routine is reading the log file then19:49
awilkinsMight it be in the log?19:50
jelmerawilkins: no, it's not reading the log file either19:50
jelmermutter writes to the log file19:50
awilkinsI'm seeing text that is in mutters in my output when I run this test19:50
awilkinsOr maybe I'm not19:53
* awilkins is going mad19:53
awilkinsNope, there it is "Guessed branching scheme" - the only place I can find it is in a mutter and it shows in the output19:54
jelmerawilkins: it will remember the mutters for a particular test in memory and output that when the test fails19:55
jelmerafter all tests have run19:55
awilkinsjelmer: Which is what's puzzling me because the stack dump says line 94, the mutter is on line 9319:55
awilkinsJust before it enters the pyx code19:55
jelmerit should never be printing any of the mutters data to stdout during the test run, only afterwards19:55
awilkinsThis is afterwards on a --one run19:56
jelmerawilkins: But that one's not crashing then?19:56
awilkinsjelmer: No, but it's weird ; if I run it from Eclipse it passes, from the shell it fails19:57
jelmerhave you tried running it inside a debugger?19:57
awilkinsjelmer: Does "debug as python unit-test" from Pydev in eclipse count?19:58
awilkinsjel19:59
awilkinsjelmer: I presume the debugging is just calling pyunit19:59
jelmerawilkins: Not really - I mean a C/C++ debugger19:59
awilkinsjelmer: I'd have to run it from a python console and attach it, yes?20:00
james_wdato: hi, I think taking the first line of the commit message as special has something to do with it.20:10
datojames_w: sorry?20:10
james_wdato: also the fact that the commit messages are shown much more prominently with git's usual submit message.20:10
james_wdato: re: your blog, sorry.20:10
datoaah, for the "good" part?20:11
james_wyeah,20:11
datopossibly, yeah20:11
james_wI do agree that it is a good thing that is much more common there.20:11
jelmerawilkins: You should be able to start the python debugger in visual studio or sometihng20:19
awilkinsjelmer: I have python.exe attached ... now I'm having a hard time running the test from the console20:21
awilkinsjelmer: tried "commands.run_bzr(["selftest", "svn", "--one"])    but it stops in __init__ for tests because theres no log file20:23
jelmerawilkins: can't you just attach to "python.exe c:\path\to\bzr.exe selftest svn" ?20:25
awilkinsjelmer: Yes, I think so ... C dev is not my usual domain, I'm a Java / VB6 / CSharp coder by trade20:30
* awilkins energises20:31
mw-home_I've got a question.  I use SVN right now, on a remote server.  I'm going on vacation and bringing my laptop.  Can I make a local bazaar repository based on my svn repository, then do lots of local commits, then when i come back, push it all into the svn repository?20:32
awilkinsmw-home_: YEs20:32
mw-home_thanks!20:33
awilkinsjelmer: That test still fails and throws no unhandled exceptions that a debugger catches20:33
awilkinsmw-home_: You need the bzr-svn plugin20:33
awilkinsjelmer: If you have VS on windows it tends to allow you to attach a debugger JIT just before the process drops dead anyway20:34
arnetheduckawilkins, when recommitting those changes, will each local commit become a svn revision or will all changes go into one svn rev?20:34
mw-home_awilkins: ok.  i'll try to get that plugin.20:34
awilkinsarnetheduck: Each mainline revision becomes a single SVN revision20:35
arnetheduckawilkins, nice - that means that I can keep a read-only svn repo in sync with a particular bzr branch with very little effort20:36
mw-home_i installed bazaar, but i don't have a bzr in my path.  i have a baz in my path.  are these the same?20:39
LeoNerdNo... baz is the arch reimplementation; a totally differnet program20:39
james_wmw-home_: if you are Debian/Ubuntu install bzr instead of bazaar.20:40
mw-home_thanks20:40
jelmerawilkins: It should be possible to start a process in the debugger20:40
awilkinsjelmer: Yes, I've managed that, but it didn't trap anything20:41
awilkinsjelmer: For this bug, the default branch_implementations.test_branch.TestBranch.test_create_checkout tests are failing the same way20:41
jelmerawilkins: how do you mean? Running "bzr selftest svn" inside the debugger doesn't make it crash?20:41
awilkinsjelmer: No, I was just running with --one and the first fail isn't scary20:42
awilkinsjelmer: Running without --one now ; it was attaching to the process before20:42
awilkinsjelmer: One problem is I don't think my Python has debug symbols (the Windows build is a bit short of them)20:43
awilkinsjelmer: Can Pyrex build with DEBUG on ?20:43
awilkinsjelmer: That wasy the extensions at least would have symbols20:43
awilkinsjelmer: Well, the debugger traps it, it's in libapr.dll20:50
arnetheduckdato, managed to make a little bash script that creates tags based on the tags20:51
awilkinsjelmer: I'll load APR sources into VS and try againb20:52
arnetheduckthere are some problems though - it seems that when one does svn copy, it doesn't always note the correct revision that the copy came from - sometimes it uses an old revision + changes made since that revision20:52
arnetheduckor rather, that the revision of the directory isn't always the revision of the entire copy, but older, so if I tag that revision in bzr, it doesn't get all changes...20:55
mw-home_subversion does checkout, mercurial does clone; what do i do to get a working copy of somebody else's project in bzr?20:58
awilkinsjelmer: bzr-svn needs sqlite, yes?21:00
james_wmw-home_: branch (or clone) if you want a proper branch like mercurial, checkout if you just want a working copy for their branch like subversion21:02
jelmerawilkins: yep21:02
awilkinsjelmer: I'm having success building the python 2.5.2 sources from scratch, few deps like sqlite missing ATM though21:03
awilkinsAlso running that APR project in DEBUG now (doh)21:03
arnetheduckjelmer, found a place where bzr-svn loses history when doing svn-import21:04
mw-home_i'm going to read the bzr for subversion users guide, then try to figure out what I need to do to use both a remote SVN repository and a local bzr repository.21:05
james_wmw-home_: you will want "bzr branch" for the use case that you described above.21:06
james_wyou can then take that on holiday, commit as you like, and the when you come back "bzr push" to update subversion.21:06
arnetheduckjelmer, here are the two log entries if you have a second to take a look: http://pastebin.ca/95315921:07
mw-home_james_w: i thought I wanted to do a bzr checkout of my svn repository.  I should use bzr branch instead?21:08
awilkinsmw-home_: Yes, you do. Or even better, create an empty branch (--pack0.92-subtree) and pull into it (if it's a big SVn repo)21:09
james_wmw-home_: if you do checkout then it will update subversion on every commit, if you do branch then it only does it when you push.21:09
james_wso you need network access to the svn server to commit in a checkout, and if you are on holiday this may be21:09
james_wdifficult, so I would say branch is better.21:10
jelmerarnetheduck: ?21:10
jelmerarnetheduck: where?21:10
james_wYou can switch between them as you like with the "bind" and "unbind" commands though, so the decision is not too big now.21:10
arnetheduckjelmer, the files, those that are added & removed21:11
jelmerarnetheduck: what would you expect it to do? bzr doesn't have a "replace" operation21:11
arnetheduckif you look at the svn log, you'll see they've been replaced (R), but that that new versions came from trunk21:11
jelmerarnetheduck: you'd expect them to be M ?21:12
mw-home_james_w: thanks!  That makes a lot of sense.  So, bzr push sounds sort of like merging.21:13
arnetheduckjelmer, I'm not sure what I'd expect them to be...I would expect having full logs for those files though...if you look at the svn log you'll see that the files come from trunk21:14
arnetheduckjelmer, so doing svn log you get the full history...doing bzr log on the same files gives just one revision21:15
jelmerarnetheduck: R in this case is an alias for delete existing file + copy from somewhere else21:16
jelmerarnetheduck: bzr doesn't support copy tracking (yet)21:16
jelmerso there's nothing sane bzr-svn could map this to21:16
jelmerit could do extra processing to infer that there are no other ancestors of those particular files in the current tree, but that would be very expensive performance-wise21:16
jelmerarnetheduck: I would rather instead wait for copy tracking support in bzr to land21:17
james_wmw-home_: merging in bzr is a bit different, you can only push if the two branches haven't diverged.21:18
james_wif you both have commited some revisions then you need to merge in one branch and then push to the other.21:18
mw-home_james_w: I really should just read the docs.21:19
james_wmw-home_: that would probably help. Also just playing with a couple of branches for a minute might help21:20
james_wmw-home_: just create a throwaway branch with "bzr init foo" then add some files, commit and then branch, push, pull, merge etc. to see what is possible.21:21
james_wthen "bzr log" can show you what you did.21:21
james_wAlso "bzr viz" from bzr-gtk can show you a graph that may help you to visualise what is going on.21:22
arnetheduckjelmer, but it does track the copy for the directory (and the unchanged files...)?21:24
mw-home_I installed the bzr-svn package; is there a separate bzr-svn executable, or does it augment the bzr executable?21:27
jelmerarnetheduck: The branch root copy is tracked yes, but that is not a copy in the bzr sense21:27
jelmermw-home_: You should be able to use most bzr subcommands with subversion urls now21:28
jelmerjust like you would with bzr urls21:28
mw-home_jelmer: my svn repository requires http authentication.  the bzr-svn FAQ says that it will use cached userIDs and passwords.  but it ain't working for me right now.21:29
mw-home_I'm doing bzr branch http://myrepository/myproj21:29
mw-home_And I get a 401 reply (of course).21:29
arnetheduckjelmer, ah, ok...because I guess it's a fairly common situation for svn repos - the above probably happened because if you do a commit, the revision of the directory won't be updated until you do an update (directories generally get the same revision as the revision of the newest sub-entry), so if you do svn copy from a working copy that hasn't been updated, you end up with logs like mine above21:30
jelmermw-home_: have you forced subversion to cache the password for you?21:31
jelmermw-home_: what os are you on?21:31
jelmerarnetheduck: I agree it's not as nice as it could be21:32
jelmerarnetheduck: it leads to confusing logs in svn itself as well though21:32
mw-home_jelmer: yeah, i have a cached password.  I can do svn info http://myrepos/myproj and I get data back, and I don't get prompted.  I'm using ubuntu gutsy.21:32
jelmermw-home_: you may have to use svn+http:// rather than http://21:34
arnetheduckjelmer, indeed - although I must admit it's the first time I look at the log entry of a branch in svn =) I didn't expect it either...21:34
mw-home_jelmer: yeah, that seems to be working.  Thanks!21:35
mw-home_Will I now have my entire svn repository, history and all, inside bzr now?21:35
mw-home_or do I only get the most recent (HEAD) revision?21:35
arnetheduckjelmer, in any case, I have a bash script now that reads the revision of the directory and makes a tag for that revision in the trunk so that tags are tagged...let me know if you think it could be useful...21:36
arnetheduck*the tag directory21:36
jelmermw-home_: you'll get the full history of that particular branch21:36
jelmermw-home_: I'll update the FAQ21:36
mw-home_jelmer: wow.21:36
jelmermw-home_: assuming you used "bzr branch" and not something like "bzr co --lightweight"21:37
mw-home_jelmer: I did bzr branch.21:37
mw-home_And so now, can I use bzr commit to do local commits, and bzr push to put stuff into SVN?21:38
jelmermw-home_: yep21:38
mw-home_I wish there weren't so many competiting source-control projects.  it's intimidating for people that don't want to do a lot of research.21:39
arnetheduckjelmer, dato, thanks for the help! (In my case, I can make it tag correctly by not using the revision of the first common tag/trunk ancestor but the revision that matches the svn revsion of the tag -1)21:40
jelmerarnetheduck: cool21:41
jelmerarnetheduck: Any chance you can link to your script on the wiki21:42
jelmerarnetheduck: It may be useful to others (although hopefully we'll have a more structural solution soon)21:42
arnetheduckjelmer, I can paste it on the wiki if that's ok? I have no good web host to put it on...21:44
arnetheduckjelmer, it's pretty crude too, I really don't like bash scripting and consequently I suck at it...21:45
arnetheduckjelmer, last questing, is there a good way of finding the bzr revid of the last revision on trunk that preceded the revision of a branch?21:46
arnetheduckjelmer, in other words, if I made a tag on svn revision 501, is there a good way of finding the last revision on trunk before 501 (500 in my case since I only commit to trunk)?)?21:47
mw-home_To pull in from svn into bzr, since I did a bzr branch, do I need to do a bzr pull?21:49
james_wyep21:50
mw-home_ignore me.  i'm trying it out.21:50
mw-home_it worked!21:50
mw-home_bzr seems great so far.21:50
Manu_I would like to know how to specify the drive letter with the file:// protocol under windows21:53
mw-home_Thanks to everyone that has helped me out.  I now know how to use bzr to make local commits and to still use svn.  This is a really nice set up.21:59
awilkinsjelmer: I now have a working debug build of Python, but joy of joy, it can't seem to load Pyrex modules22:03
awilkinsjelmer: Maybe I should rebuild them with the compiler I used to build the python22:04
james_wManu_: I don't know I'm afraid, have you tried file:///c:/whatever?22:13
jelmerawilkins: Ouch22:14
awilkinsjelmer: Par for the course, I fear22:14
jelmerawilkins: Is the difference so big between the code generated by differnet compilers on windows?22:14
awilkinsjelmer: Well, the distutils build_ext stuff refuses to build unless you have the same compiler that Python was built on, so I presume there is a good reason22:15
Manu_james_w: yes it works i forget to add an extra /22:23
awilkinsjelmer: Damn, damn, damn. The modules built with VC8 (after inserting enough into the registry to convince distutils that I had it installed...) but they still don't load22:24
awilkinsjelmer: Maybe if I put the plugin folder on the pythonpath22:25
tcaWhen I install bzr in my home dir on line with  "--home ~", is it only bin/bzr and python/bzrlib that needs to be deleted to uninstall?23:10
tcaI'm having seeing this (http://www.pastebin.org/24908) when running bzr log with bzr 1.3, and want to completely reinstall before bugging people more.23:12
=== bigdo1 is now known as bigdog
tca"bzr log --long" fails with the error mentioned above, but with --line or --short it works ok.23:25

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