/srv/irclogs.ubuntu.com/2010/12/19/#bzr.txt

=== frakturfreak_ is now known as frakturfreak
CyberDomovoyi have a trouble using bzr to branch on a nfs mount, ("bzr branch ...", $(pwd) is a nfs mounted directory), i get an error saying "Could not acquire lock ... No locks available", googling it told me it is a trouble with nfs locking. But, i have lockd running on both client and server, i tried doing a "mount -o remount,nolock" for my nfs mount, but it tells me "an incorrect mount option was specified" (???). Any idea?07:34
AfCCan you generate a bundle of an entire branch? I tried -r 0.. . but that didn't work14:50
mathrickjelmer_ / jelmer__: hi14:52
mathrickmathrick@hatsumi:/tmp$ bzr get https://github.com/dto/iosketch.git14:52
mathrickbzr: ERROR: Invalid http response for https://github.com/dto/iosketch.git/info/refs: Unable to handle http code 014:52
mathrickany idea what's wrong?14:52
mathrickgit seems pretty happy cloning that repo14:52
jelmer__mathrick: hi14:56
mgzI get a 200 from that url with curl, but if I add an Accept-Encoding header I don't get a valid response back14:56
jelmer__mathrick: when cloning from github, use git://14:56
jelmer__mathrick: they don't support "dumb" access over http at the moment14:57
mathrickjelmer__: oh14:57
mathrickare there different modes of access over HTTP for git?14:57
jelmer__mathrick: yeah, two14:58
mathrickodd14:59
mathrickjelmer__: but speaking of github, I have another odd failure15:00
mathrickah, not actually github15:00
mathrickjust git15:00
mathrick3623kB     4kB/s - finding revisions to fetch 132 <-- huh, that's a lot of data sent for 132 revs15:02
mathrickjelmer__: okay, got it15:02
mathrickmathrick@hatsumi:/tmp$ bzr get http://common-lisp.net/project/parenscript/git/parenscript15:02
mathrickbzr: ERROR: [Errno 2] No such file or directory: 'pack-027b9225cdb4a06f422e6321d92328dfb7103b92.pack'15:02
mathrickthat's after the above revision-finding15:02
jelmer__mathrick: git access over "dumb" http is really inefficient15:03
mathrickagain git seems perfectly happy15:03
mathrickjelmer__: I see. Well, that's what I got for the URL, so guess can't blame anyone but the author here15:03
mathrickbut I'm more concerned with the fact this thing fails ultimately15:04
* jelmer__ is trying locally15:05
=== jelmer__ is now known as jelmer
mathrickjelmer: does it fail for you too?15:10
jelmermathrick: it's working so far..  fetching revisions 506/60915:11
mathrickhuh15:11
mathrickit errors out right as it tries to fetch revisions for me15:11
mathrickthat, or during revision-finding, hard to say15:13
mathrickjelmer: it might be some outdatedness in my setup, lemme check15:13
mathrickbzr-git 0.5.015:14
mathrickseems to be in my ~/.bazaar/plugins and not distro package15:14
jelmermathrick: yeah, that's fairly old15:14
jelmermathrick: You might also want to try the daily builds PPA15:14
mathrickI will, yeah15:14
mathrickhuh15:15
mathricknow I got 0.5.2 from distro, and it errors out with "not a branch"15:15
AfCjelmer: is the bzr-git 0.5.2 from Ubuntu Maverick sufficient, or is this one of those "would have been updated if we could convince Canonical to SRU the thing" occasions?15:15
jelmerAfC: I think it's not really about being able to convince Canonical to accept the SRU, it's more about the effort involved in doing a SRU vs the benefits15:17
jelmerAfC: SRU's can't really be new upstream releases, and cherrypicking bugfixes is often tricky (and also carries risks)15:18
AfCjelmer: sure. I guess you know about mere users's frustration at constantly being told "it works in the next (unreleased) release of the distro"15:19
AfCFor me personally your work has always been caught by that. Kinda a shame. (for example, I want almost  8 months without being able to use Bazaar to work on GNOME stuff. It's working now, though, for which I compliment you and the others working on bzr-git!)15:20
jelmerAfC: Yes, I realize that - I've hit it as well myself.15:20
jelmerAfC: But this isn't specific to Bazaar, it's specific to bleeding edge code in general - I see the same thing with Samba 4.15:21
jelmerwell, specific to bleeding edge code and the fact that releases happen only every 6 months15:21
mathrickjelmer: where exactly is the daily build PPA you mentioned?15:21
jelmermathrick: https://launchpad.net/~bzr/+archive/daily15:21
AfC[as a slightly broader theme, Fedora is utterly unusable because no one runs release - developer throw stuff at rawhide without really caring about it, and meanwhile corporate sustains RHEL, but no one is actually trying to live on current and the result is always "wait for the next release"]15:22
AfCjelmer: right, but if we never get the code [in Ubuntu's terminology, SRU15:22
AfCjelmer 'ed] then the code will always be bleeding edge :)15:23
AfCanyway, not meaning to nag15:23
jelmerAfC: SRU's are fairly heavyweight (for a good reason, we don't want to break existing stable users)15:23
AfCYeah, but when shit wholesale doesn't work, then who cares that it's "not broken"?15:23
jelmerAfC: http support in bzr-git was only added recently anyway - most people use git://15:24
AfCOf course, we are dealing with this in GNOME land right now - GTK 3.0 is still not out and GNOME 2.26 aka GNOME 3.0 is due out in less than three months. Total dogs breakfast.15:25
mathrickjelmer: ah, but that doesn't have bzr-git in it, does it now?15:25
mathrickno, it does15:26
mathrickit showed something different when I googled15:26
* mathrick confused15:26
jelmermathrick: https://launchpad.net/~bzr/+archive/daily lists it for me15:29
mathrickyeah, it does15:29
mathrickjelmer: re: SRU, bzr seems to be particularly hard-hit by always being in the "will work in the next release" limbo15:32
=== AfC is now known as AfC|zzz
mathrickI'm not quite sure what makes it so prone, but it's always there15:32
jelmermathrick: I'm not sure either :-/15:34
mathrickprobably because there's so much tricky interop code (hello, Mr Jelmer sir), which never quite works until it's been bashed at by many people for a long time, which means every time you hit a bug, you're pretty much required to wait or go to the -dev anyway15:34
* jelmer will probably be a bit more involved in the Ubuntu packaging of Bazaar as of January15:34
mathrickwhich suggests it'd be actually stabler for end-users if they could get recent packages in stable15:35
jelmermathrick: I think if the packages are that error prone we should probably not have them in stable releases at all :-/15:35
mathrickjelmer: but then they will never get tested and brought up to the real-world quality15:36
mathrickat some point, the shit has to hit the fan. If you want bzr to talk to git and SVN seamlessly, somebody has to test it in real-world broken scenarios15:36
jelmermathrick: Users who are interested can always use the daily builds PPA or backports15:36
jelmerand that has a much quicker feedback + fix cycle15:37
mathricktrue15:37
jelmermathrick: fwiw the clone of the http git repo just succeeded here15:37
mathrickyeah, it's at 469 / 609 here with PPA15:37
exarkunUrff.  Negative revision numbers?15:41
exarkunNot quite what I was going for.15:41
exarkunHow should I extract some (quite well isolated) changes from one branch and put them into another unrelated branch, preserving their history?15:42
exarkunI thought rebase would work, but it kept too much history.15:42
exarkundoes the remove-revisions plugin do what I want?15:52
mathrickexarkun: what exactly do you mean by "preserving their history"?16:00
exarkunThere's 11 or 12 revisions, with their own diffs and commit messages and such16:03
exarkunI should have put them in a different branch than I did16:03
exarkunI want what I would have gotten if I'd put them in the right branch in the first place16:03
mathrickexarkun: then probably bzr-fastimport is what you want16:09
exarkunThanks16:10
mathrickit won't preserve the tree equivalence (that is, you won't be able to merge properly before and after), but the commits will look the same16:10
exarkunsounds like just what I want16:10
mathrickjelmer: so yes, a PPA bzr-git works fine with that repo, thanks16:14
jelmermathrick: great16:14
mathrickI also need a way to export all revisions from one repo (shared repo, not branch) into another, and move all the branches based in that repo there16:14
mathrickbecause it's corrupted and hits me hard, particularly when I touch anything git-related16:15
mathrickany idea how to do it?16:15
mathrickI don't mind a bit of programming against bzrlib if that's what it takes16:15
jelmermathrick: this is a bzr repo?16:19
mathrickyes16:20
jelmermathrick: how is it corrupted?16:20
mathrickjelmer: sec, I'll get the errors it throws16:20
exarkunhumph, `bzr: ERROR: Unable to import library "fastimport": No module named fastimport`?  I branched fastimport directly into my ~/.bazaar/plugins/16:22
jelmerexarkun: do you have the fastimport python module installed?16:24
txdvis there a standard for the bzr commit message? I know that the first line has to be short, but do i have to break up the subsequent lines up or can i use long long lines?16:25
exarkunjelmer: All I did was branch fastimport into ~/.bazaar/plugins.  Is there something beyond that I should do?  The README suggests that's intended to be sufficient.16:25
jelmerexarkun: you need the python-fastimport package or the fastimport module from http://launchpad.net/python-fastimport16:26
jelmertxdv: it's up to you16:26
exarkunI see16:26
jelmerexarkun: I've clarified the error message16:28
exarkuncool, works now, thanks16:29
txdvbzr so fucking lacks --amend16:38
exarkunoh man17:07
exarkuntrying to merge that fast-imported stuff, http://codepad.org/stXoQ9jp17:08
jelmerexarkun: what are you trying to do?17:09
exarkunfix one tiny mistake :(17:10
jelmerexarkun: are you trying to merge into an empty branch?17:10
exarkunyes17:10
jelmerexarkun: That doesn't work at the moment - there's an open bug about it. Is there any reason for not pulling?17:11
jelmertxdv, exarkun: yes, we need better tools for history editing :-/17:11
exarkunno, I just didn't know there was a special case around empty branches for merging17:11
jelmerexarkun: it's a bit of an odd situation. hg and git both simply default to a pull in this situation, perhaps that's what we should do too for the moment.17:35
exarkunjelmer: even refusing to merge would be better than corrupting the target branch :)17:36
exarkunI don't have an opinion beyond thinking that the current behavior is kinda bad.17:36
mathrickexarkun: there's no special case really, it just fails because of the nature of the operation17:36
exarkunmathrick: it's a special case for me.17:36
mathrickit's that git and hg both silently replace it with pull when possible17:37
mathrickwhich bzr doesn't17:37
exarkunand I have no experience with git or hg in this situation17:37
mathrickI've seen good arguments against bzr's behaviour17:37
exarkunso don't think I'm trying to impose another system's behavior on bzr :)17:37
mathrickexarkun: well, they basically go "oh, I can pull, so I'll just interpret it as a pull request instead of merge"17:37
mathrickbzr, OTOH, sticks to merge unless you tell it not to with --pull17:38
exarkunmerge and data corruption17:38
exarkun:)17:38
mathrickand pull and merge are two different situation. Pull can succeed on an empty tree, merge not really17:38
mathrickexarkun: sure, it _shouldn't_ corrupt the tree. That is clearly a bug. But it also helps to know that merge on an empty tree is sort of meaningless17:38
mathricks/situations/operations/17:39
exarkunwhereas merge on any non-empty tree is not sort of meaningless.  so how is it not a special case?17:39
mathrickexarkun: because it's not _coded_ to be a special case. It's just an edge condition in which the algorithm fails. So it's the opposite, it fails to special-case the situation it should17:40
exarkunalright17:40
mathricksort of like throwing -1 at sqrt() function that's not prepared to deal with negative numbers17:41
mathrickjelmer: sorry, I got completely sidetracked there, lemme get the error19:08
mathrickjelmer: it doesn't seem to error out in the same way as before so far, but one of the things I get is that when I do "bzr get git://github.com/dto/iosketch.git", I get "updating git map" about 20 times19:30
mathricksome of them are like 1/2, some 1/41, and now one 1/124519:31
jelmermathrick: that's because of the repository you're cloning into19:31
peitschiehi everyone :)21:54
RenatoSilvaUrsinha-afk: help me please23:16
=== spiv changed the topic of #bzr to: Bazaar version control | try https://answers.launchpad.net/bzr for more help | http://irclogs.ubuntu.com/ | Patch pilot: spiv | 2.3b4 is officially out ! (rm vila)

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