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

* timelyx leaves it alone00:00
jamthis is weird00:00
jammy machine won't allow any new connections00:00
jambut preserves the connections it has00:00
lifelesstimelyx: so my default is yes; but if its really a problem - create a patch and send it in for review00:00
* timelyx nods00:00
lifelessjam: in or out or both00:00
jamso I can't open a *new* ssh connection, or a mail connection, but I can still work on the connection I have00:00
jamlifeless: out00:00
jamnot sure about in00:00
lifelessjam: ssh running, I can connect to you if you like ?00:00
lifelessjam: tcpdump offer any hints?00:00
lifelessjam: do you have iptables active?00:01
jamlifeless: ssh isn't running, I might try that00:01
jamI don't have iptables active00:01
jamworse case, I can just restart ...00:01
lifelessit may be upstream of you00:01
lifeless-> deep hacking mode, interrupt threshold just tripped00:02
=== ja1 is now known as jam
jamrestarting fixed it00:07
lifelessigc: ping00:28
igchi lifeless00:28
lifelesspoolie said you were having trouble reading my stacked loom00:29
igclifeless: I think I was going about the merging the wrong way00:30
igcin particularly, I think I should have been looking at diff -rancestor: instead of a plain diff00:30
lifelesserm thats wrong00:31
lifelessyou were going to merge bzr.dev into it right ?00:31
igcwhen merging bzr.dev, the latter was just too big to show anything as suspect00:31
lifelessdo you know how to merge in a loom?00:31
igclifeless: so my conclusion was that I needed to know more about your code before trying to 'just merge'00:32
igcI read the doc if that's what you mean00:32
lifelessbut you haven't been working with a loom yourself?00:32
igcnot until I branched yours, no00:32
lifelessok00:32
lifelessthis is roughly 'updating to upstream'00:33
lifelessin a clean branch made from mine00:33
lifelessbzr switch bzr.dev00:33
lifeless(or down-thread until it errors)00:33
lifelessthen bzr pull $bzr.dev00:33
lifelessbzr up-thread00:33
igcdid that00:33
lifelessbzr diff -r thread:00:33
lifeless(that will show the current patch)00:33
igcright00:33
lifelessrun the test suite if there seems a chance of bzr.dev breaking what the patch does00:34
igcI was not adding the -r thread: bit00:34
lifelessst etc00:34
lifelesscommit -m 'merge bzr.dev'00:34
lifelessbzr up-thread00:34
lifelessrinse, repeat00:34
lifelesswhen you reach the top, after committing do 'bzr record' push it somewhere and I'll pull it00:35
igclifeless: cool. I'll do that now.00:35
lifelessk, back to deep hack for me00:35
igcI've been feeling pretty lousy lately but my brain ought t be good for a few hours00:35
lifelessI know the feeling00:36
igclifeless: I suspect you feel worse actually00:36
igcmine is more a long term thing - perhaps something nasty I picked up on my last holiday00:37
igcoff to the specialist tomorrow anyhow so at least I'd know what's going on then00:37
igcs/I'd/I'll/00:37
lifelessgl00:37
jmlhmm. bzr just segfaulted on me.00:49
bob2100 points00:49
jmlwell, my bzr plugin just segfaulted on me :)00:49
jmlI guess I should be clear about that.00:49
Gilgad13hey has anyone one found a good way to reconcile eclipse's workspace directory structure with good repository layout?01:13
Gilgad13right now i'm just making links in my projects01:13
Gilgad13but thats not great because the project itself isn't source controlled01:13
beunoVerterok, ^01:14
beuno(and hi)01:14
Gilgad13and putting it in the same folder could work, but i was wondering if there is something better01:14
=== mw is now known as mw|out
beunoGilgad13, Verterok is the bzr-eclipse developer, so if you give him a minute or two to settle in, I'm sure he'll be able to give you a good answer01:16
Gilgad13nice01:16
VerterokGilgad13: Hi... I don't know if I understand the idea :P01:16
Verterokyou can have one workspace per repository :)01:16
Gilgad13yea01:16
Gilgad13thought of that01:16
Gilgad13i guess its the best way to go01:16
Verterokbut it's a mess to keep configurations between workspaces :(01:17
Gilgad13i'm just used to having more control over where my projects go01:17
Gilgad13are the links in the eclipse project relative01:17
Verterokyou can have the projects outside the workspace01:18
Gilgad13nvm, that would still mean many little workspaces running around01:18
Gilgad13really?, then what is the workspace used for?01:18
Verterokonly to keep the .metadata directory01:18
Verterokso, you can have one workspace, and all your projects in other directory...like /home/<user>/Projects :D01:19
Gilgad13how would i create those01:20
Gilgad13just do the normal creation then move them out of my workspace?01:20
VerterokGilgad13: take a look to: File --> Import --> Existing project into workspace01:20
Gilgad13ahh01:20
Verterokand if bzr-eclipse don't detect the .bzr..please file a bug :D01:20
Gilgad13certainly, i actually havn't dl'ed the plugin, how usable is it?01:21
VerterokGilgad13: it's quite usable, but a bit slow (it uses bzr executable)...but I'm working on this problem right now :)01:23
Gilgad13alrighty, i'll take a look at it01:23
Gilgad13good luck01:23
Verterokthx!01:23
Verterokbeuno: Hi, (and thanks for the pointer :) )01:24
beunoVerterok, whatever makes you work more  ;)01:25
Verterokhehe01:26
lifelessT-2701:30
pooliehello all01:31
poolielifeless: ?01:31
lifelesspoolie: 27 failing fixtures01:32
poolieoh great01:32
Verterokhi poolie01:34
poolielifeless: jam was also wanting to help with the repository refactoring and stacking branches, could you mail him some pointers on where to get started?01:46
lifelesssure01:47
lifelessuhm01:47
lifelessnetwork network network I would say01:47
=== poolie changed the topic of #bzr to: Bazaar version control system | http://bazaar-vcs.org | please test 1.6beta1 | http://irclogs.ubuntu.com/ | http://planet.bazaar-vcs.org/
pooliemeaning network get_data_stream, or optimizations of what's currently done?01:51
lifelessthe former01:51
beunopoolie, if you want any help with uploading 1.6 beta to PPA, let me know  :)02:01
pooliebeuno: thanks, should be ok, going to do that soon02:01
beunoalright, I'm heading home then02:03
* igc lunch04:00
lifelessT-16 time for lunch04:16
=== Gilgad13_ is now known as Gilgad13
Gilgad13Verterok: does your bzr-eclipse plugin manage changing the name of the project when you branch?04:51
Gilgad13because when i try to do it manually, eclipse doesn't let me load more than one project with the same name into the same workspace (which is logical, i guess)04:51
Gilgad13or do you handle it a different way?04:52
VerterokGilgad13: if you branch using the plugin, yes. it aallow to specify the project name04:54
VerterokGilgad13: and yes, eclipse don't allow repeat project names or change them during import04:54
Gilgad13nice04:54
Gilgad13that seems to be the killer feature, because that is too much effort to do manually04:55
VerterokGilgad13: I recently fixed a Bug #180207 related to the branch wizard, I'll try to upload a new build as soon time permits04:56
ubottuLaunchpad bug 180207 in bzr-eclipse "Creating project from bazaar branch" [High,Fix committed] https://launchpad.net/bugs/18020704:56
Gilgad13yea, looking at that right now, actually04:56
Verterok:)04:57
lifelessok, in theory thats 0 failures05:10
lifelessrunning the full suite05:10
Gilgad13Verterok: thanks for the help05:21
VerterokGilgad13: np, y're welcome05:22
Verterokif you have any other question, don't doubt to ping me05:22
* igc pick up kids05:42
lifelessok, zero failures05:44
lifeless(I'm not going to claim zero defects)05:44
jmllifeless: woot.06:08
jmllifeless: Does this make it a 1.6 candidate?06:08
lifelessno, now for weave_store nukage06:18
igclifeless: http://people.ubuntu.com/~ianc/bzr/shallow-branch/ is my progress so far06:33
igcit's done bar 3 tests that I need to fix up06:33
igctracking them down now ...06:34
pygihey folks07:10
lifelessigc: what thread do they start failing in ?07:23
igclifeless: they vary ...07:23
igcone was fixed by removing deprecations from bzr-loom07:24
igci.e. merging abentley's branch07:24
igcone is related to tests/http_server unicode path handling07:24
igcI think I've just fixed it07:24
igcthe last is test_interprepository - about to do it next07:24
SlantIs there a way to have bzr call a script after a commit?07:24
bob2Slant: bzr help hooks07:27
Slantbob2: Thanks.07:28
Slantbob2: Can a hook be embedded in a repo?07:33
bob2probably, but hooks are run by clients07:34
igclifeless: shall I upgrade the format # from 1.3 to 1.6 where applicable while I'm in there?07:35
bob2how's the new rich-as-a-default-format thing looking for 2.6?07:37
bob2oops, the beta's out07:37
Slantbob2: Thanks!07:37
poolienight08:14
igccurrent state of merging bzr.dev into the stacked branches loom is now pushed to http://people.ubuntu.com/~ianc/bzr/shallow-branch/08:28
* igc dinner08:28
jelmerLarstiQ: I just found what is causing the slowness in the bzr-svn testsuite09:10
jelmerLarstiQ: libsvn_client (the glue between working copy and remote repository access) waits for the next second every time you do a disk operation!09:11
Jc2kjelmer: that sounds quite yucky!09:12
AfCYikes!09:14
AfCI think that Jelmer should win an award for being the guy who puts up with coding against Subversion so the rest of us can deal with foreign VCSes09:15
Jc2khe needs our beer, for sure09:16
jelmerAfC, :-)09:33
jelmerJc2k: yeah, it's pretty nasty - but shouldn't be too hard to work around09:33
=== emgent_ is now known as emgent
=== mwhudson__ is now known as mwhudson
* mwhudson thinks the jelmer beer fund should be considerable by now09:55
lifelessjelmer: ah yes, the old '1 sec wait to 'fix' race conditions' bug10:30
liw. o O (First Internet Bank of Beer)10:30
munckfishHi is it possible to specify an alternative SSH key for use with bzr+ssh protocol? I have two keys for separate uses. I'm not seeing an obvious way either in 'push' or in the available config options.10:41
Pieterstupid first three letter match10:45
Pieterheh10:45
Pieternevermind that10:45
james_wmunckfish: hi, you want a different key to be used for sftp:// and bzr+ssh:// to the same host, or something else?10:48
munckfishjames_w: Hi. I have 2 keys one for work in id_rsa and one for ubuntu which is stored in id_rsa.110:49
james_wmunckfish: so the differentiation would be by host?10:49
munckfishI need to select use of the second key10:49
munckfishUm yes I guess so10:49
james_wI do this with ~/.ssh/config10:49
munckfishaha I see10:49
james_wwith stanzas like:10:50
james_wHost bazaar.launchpad.net10:50
james_wHostname bazaar.launchpad.net10:50
james_wUser james-w10:50
james_wIdentityFile2 ~/.ssh/id_rsa.110:50
munckfishjames_w: thx I'll try that.10:50
=== cprov is now known as cprov-lunch
jelmerlifeless, yep, that's the one11:41
jelmerlifeless, I'm working around it by simply not using libsvn_client but using the bzr infrastructure to let the diff reporter and commit builder talk to each other11:41
lifelessjelmer: :P11:42
lifelessjelmer: that *is* why we wrote bzr's code the way we did11:42
jelmerlifeless: yeah, that's a big help11:44
jelmerstrangely enough there's no way to turn that behaviour in the subversion client libraries off11:45
jelmerno wonder their test suite takes so long to run :-P11:45
=== kiko is now known as kiko-afk
=== cprov-lunch is now known as cprov
awilkinsjelmer: I think the "wait next second" thing had a purpose, possibly to do with timestamps, but I can't recall exactly what it is13:32
jelmerawilkins: yes, it does indeed have a purpose - see lifeless' comment13:32
awilkinsI have half a mind to test bzr using this ext2 driver for windows to see if things get faster13:35
awilkinsProblem is I don't have any internal ext2 partitions so it's not a fair test I suppose13:35
* awilkins waits 'til he gets home13:36
lifelessawilkins: this is the 1 sec thing: diff is expensive, so vcs's often avoid diffing by using a timestamp comparison on the file - if it hasn't been edited since the vcs last had a empty diff, don't bother diffing13:41
lifelessawilkins: now filesystems have a granularity (e.g. 2 seconds for FAT)13:41
awilkinsMakes sense13:41
lifelessawilkins: and the record of when a diff was done has some granularity (e.g. 1 second)13:42
lifelessso what cvs did at one point (its broken these days) and svn does to, is to wait until the system time is greater than the time it wrote into any of its records as the last diff done13:42
awilkinsIs hashing faster than diff?13:42
lifelesshashing is faster yes, but still not free13:43
awilkinsIndeed13:43
lifelessnow in principle that delay can be 0 if the last file was modified before the current time when the op finishes13:43
* awilkins potters off to install some software (Including bzr! Hahaha!)13:43
lifelessbut there is a better way13:43
lifelesswhich is to not write the time *at all* to disk for a file created during the file systems granularity, and then you can return immediately safely13:44
lifelessgnight13:44
awilkinsBy that, you mean writing the time to the cache?13:44
lifelessyah13:44
lifelessjust say 'we don't know if the file is modified or not'13:45
lifelesson small trees this means 'checkout' ends up with no files in the cache after checkout13:45
lifelesson big trees the first files written will be in the cache13:45
lifelessso its self limiting13:45
lifelessand allows extremely fast repeated operations whenever diff can be done in less time than waiting one secod13:45
lifeless(and as the limit is the time to write files, this is almost guaranteed to be the case)13:46
lifelessreally gone - ciao13:46
mptIs "bzr check" supposed to be usable on a remote branch that doesn't belong to you?14:08
jelmermpt: I think so14:13
jelmerat the very least it should give a sensible error if it can't - what are you seeing?14:13
mptreported as bug 23706714:18
ubottuLaunchpad bug 237067 in bzr ""bzr check" on bzr+ssh:// branch returns ObjectNotLocked error" [Undecided,New] https://launchpad.net/bugs/23706714:18
james_wit might be a side effect of "Server does not understand Bazaar network protocol 3, reconnecting. (Upgrade the server to avoid this.)"14:22
james_wor it may just be a missing lock call of course.14:23
spivI very much doubt the protocol 3 warning is related.14:24
spivAfter all, that message happens because it *isn't* using the new, shiny protocol :)14:24
james_whi spiv14:26
spivGood evening.14:27
=== mw|out is now known as mw
=== kiko-afk is now known as kiko
dashhi, got a bzr-svn question15:15
Jc2kwhats up15:16
dashhow do I create a new branch in the svn repo? branch, then svn-push?15:17
asabiljamesh: ping ?15:18
jelmerdash: Yeah, svn-push is the command to use15:23
dashi'm trying to use bzr-svn to cheat on our svn workflow a little15:23
dashnormally all branches are created from trunk, due to lack of merge tracking15:24
dashI want to use bzr-svn to create a branch from an existing non-trunk svn branch15:25
dashlater on i'll probably merge it forward15:25
dash(meaning, create a new svn branch from trunk, apply the diff of the old branch to its WC, commit)15:26
dashstill trying to figure out how to do that without confusing myself or our other svn users :)15:27
radixdoes svn-push create an empty revision for the creation of the branch?15:30
radixI think it didn't in the past, but I remember hearing about discussion on that15:30
radixmany SVN-based merging methods or tools won't work unless it's there15:31
radixdash: (such as Combinator)15:31
dashyeah15:31
dashradix: right now i'm thinking i'll just not bother with svn-push at all15:32
dashand make a branch with combinator after the pending branch is merged, and copy the diff manually into it15:32
dashcrude, but effective!15:35
tethridgeis there a known bug where you can't resize the width of olive aka "bzr vis" to make it smaller?15:49
tethridgeI can't find a bug on launchpad or google15:51
tethridgeI'm not sure if olive is considered part of bzr15:51
dashi'm pretty sure bzr vis and olive are different15:52
tethridgeit looks like the same user interface to me15:52
tethridgeI didn't install olive, I installed bzr-tools15:52
pickscrap1I thought they were both part of bzr-gtk?15:52
tethridgethat's one way to limit your bug count15:53
tethridgemake it impossible to find the project in launchpad.  :-)15:53
tethridgeI'll add a bug15:54
beunotethridge, viz is a part og bzr-gtk15:57
tethridgebeuno, thanks.  I'm adding a bug there now.15:57
beunoso please file the bug against bzr-gtk, and thanks for reporting it  :)15:57
semsliejelmer: I didn't manage to reproduce that problem I was having yesterday, but I did find that if I cleared the svn-cache before and after rebasing, then the svn-push worked without a hitch. Perhaps this is worth adding as a comment in that bug?15:58
Stavroshi16:15
beunohey  :)16:15
beunowell16:15
Stavrosso how do i do that? :P16:15
beunobzr branch lp:bzr16:15
Stavrosin my site-packages dir?16:15
beunowell, this is windows or linux?16:16
Stavroswindows16:16
beunohrm, well, in Linux you just symlink the bzr executable to /usr/bin16:17
beunoso I imagine you can do something similar, but I can't really give you specifics, as I haven't run windows in years16:17
Stavroshmm16:17
Stavrosi can't even find which script runs when i run bzr in windows...16:18
Stavrosoh wait, "which bzr" works16:18
beunomarkh, maybe you can provide some insight on how to run bzr.dev on windows?16:18
Stavrosbeuno: actually i probably only need to pull bzrlib16:19
beuno(he's probably not around yet)16:19
beunoStavros, well, in general, yes16:19
beunoand, you can't really *just* pull bzrlib16:20
Stavroshmm, why not?16:20
beunowell, it's not a separate branch16:20
Stavrosah16:21
Stavroswell the bzr script that runs imports bzrlib16:21
Stavrosand that's the only thing i have in my site-packages16:21
beunowell, let me know how that goes  :)16:23
Stavroswill do :)16:23
awilkinsYeah, just pull bzr.dev and change the script to point to THAT bzrlib instead16:26
Stavroslet me try that16:27
awilkinsI don't dogfood it though, just test it16:27
awilkinsWhich is cd <bzr.dev> ; python bzr selftest [options]16:27
muszekhi... would "bzr: ERROR: [Errno 13] Permission denied" mean that I don't have sufficient permissions somewhere withing .bzr or within working directory?16:28
beunomuszek, it depends if you're pushing through ssh/sftp/ftp or locally16:29
beunolocally, yes, because it updates automatically16:29
beunoremotely, within .bzr16:30
muszekbueno: I've made a commit from a remote machine (binded to this repo) without a problem... now I want to update this tree and that's the error I get16:31
beunomuszek, then it's probably within the working tree16:32
beunodid you peak in .bzr.log?16:32
beunoit should say what file is complaining16:32
muszekbueno: I added myself to a group "hotels", chowned everything to belong to this group and then chmodded everything g+w16:33
muszekbueno: looking now16:33
muszekbueno: it's just this error + a bunch of python error messages, which I don't really follow... would you please take a look at: http://alpha.muszek.com/bzr.txt ?16:38
beunomuszek, it seems to be either this file: webroot/css/hotels.css, or the one after it16:40
beunocould you run a "ls -l" on that dir and check for what permision/users are set??16:41
muszekbueno: I followed these instructions to make it "multiuser-friendly" - http://buszek.mine.nu/temp/bzr.setup16:42
muszekeverything belonged to tomekg before that.16:42
beunooh, so we should blame james_w, that's great news!  :)16:42
muszekto me permissions seem to be fine... everything belongs to tomekg/hotels16:43
james_wwhat did I do this time?16:43
muszekheh :).  I talked to him maybe 2 months ago when was setting another repo (same server)... it works fine.16:43
beunomuszek, and you are updating with a user via ssh/sftp, which is the "hotels" group?16:43
beunohi james_w   :)16:43
james_woh, yeah, I thought something about this was familiar16:43
james_whi beuno16:43
james_whi muszek16:43
muszekbueno: in the bzr.setup there's a "newgroup"... I substituted it with "hotels"16:44
muszekhi james_w ... as you can see, your help isn't forgotten :)16:44
james_wnot forgotten because it didn't work :-)16:44
muszek:)16:45
muszekthis commit creates/modifies/deletes files and creates a new dir... is it possible that I don't have a permission for something?16:46
muszeks/commit/revision16:47
muszekbueno: bzr log -v tells me that hotels.css is a last file... prior to that I manually erased one file that's been outputted after hotels.css (as you can see, previous error starts right after [23902] 2008-06-03 15:26:31.776 INFO: -D  webroot/css/reset-fonts-grids.css)16:51
beunomuszek, then it's probably a problem with deleting files16:51
beunowhich I can't really understand why, so maybe james_w does  :)16:52
muszekbueno: but I've been able to delete it from command line (using the same user)16:52
james_wwell the failure is actually in a rename.16:52
james_wbut it looks like that rename is actually part of a delete operation16:53
muszekhmmm... on my local machine I renamed manually (not via bzr) reset-fonts-grids.css to hotels.old-yui.css ... but I haven't added hotels.old-yui.css to bzr16:54
danielmhi all :).. sorry the noob question, but any idea why a bzr push to a LP new brach returns me: "but does not have a valid .bzr directory" ¿? maybe a bzr version problem?16:55
james_wmuszek: can you check to see whether you have a .bzr/checkout/pending-deletion directory on the side where you are getting the error16:56
james_wmuszek: and if you do what the permissions on it are.16:56
james_wdanielm: does it work if you supply "--use-existing-dir" as suggested?16:56
danielmyes16:57
muszekjames_w: no, I don't16:58
muszekjames_w: I mean I don't have such dir16:59
james_wmuszek: ok, can you run "BZR_PDB=1 bzr update" and when it gives you the prompt have another look?16:59
muszekjames_w: http://pastebin.us/?show=m35797f60 (after hotels.css)17:01
james_wmuszek: yup, can you see if you have ".bzr/checkout/pending-deletion" now please?17:03
muszekjames_w: still nothing17:04
muszekand I am able to create a dir manually in .bzr/checkout17:04
james_wmuszek: ok, so if you haven't got one then that may be why it is failing17:05
james_wactually, to be sure, can you run "find . -name pending-deletion" please?17:05
james_wmuszek: you didn't exit the debugger before looking for the directory did you?17:06
muszekjames_w: nothing found17:06
muszekjames_w: I didn't exit17:06
muszekjames_w: I did right before using "find", though17:06
james_wthough it would be really odd if the directory were created by you and then you couldn't write to it.17:07
james_wok, so can you please run "BZR_PDB=1 bzr update" again?17:07
james_wthen when you get the prompt please type "p from_"17:07
james_wand then "p to"17:07
muszekjames_w: http://pastebin.us/?show=m7212f68217:08
james_wok, and again before quitting, can you see if you have "/var/www/hdev/app/.bzr/checkout/pending-deletion/"17:09
james_wI'm assuming that "/var/www/hdev/app/app_controller.php" exists.17:10
muszekapp_controller.php exists, pending-deletion still doesn't17:10
muszekdebugger is running17:10
james_wweird17:11
beunomuszek, you could you possibly be testing through ssh, and pushing through ftp/sftp?17:11
james_wand so why is it EPERM and not ENOENT?17:11
james_wmuszek: can you please run (normal shell) "cp /var/www/hdev/app/app_controller.php /var/www/hdev/app/.bzr/checkout/pending-deletion/"?17:12
james_wit will fail, but I'm interested if it is EPERM.17:12
muszekjamesh: app_controller.php is a second modified file on the list (first one is .bzrignore)17:12
muszekbueno: I don't know exactly  what you mean.  I have a local repo that I binded with remote via "bzr bind bzr+ssh://remote.server/var/www/hdev/app" command.  I commited from local machine and now I'm updating on a remote server (via ssh)17:13
=== kiko is now known as kiko-fud
muszekjames_w: muszek@alpha:/var/www/hdev/app$ cp /var/www/hdev/app/app_controller.php /var/www/hdev/app/.bzr/checkout/pending-deletion/17:15
muszekcprov: cannot create regular file `/var/www/hdev/app/.bzr/checkout/pending-deletion/': Is a directory17:15
muszekdo you want me to create pending-deletion first?17:15
cprovmuszek: excuse me ?17:15
=== gour` is now known as gour_
james_wmuszek: no need, how about "mv /var/www/hdev/app/app_controller.php /var/www/hdev/app/.bzr/checkout/pending-deletion/new-3"?17:16
=== gour_ is now known as gour
muszekcprov: sorry... my xchat somehow auto-completed cp: to cprov: (don't know how that happened, I pasted the whole two lines)17:16
=== cprov is now known as cprov-out
muszekjames_w: mv: cannot move `/var/www/hdev/app/app_controller.php' to `/var/www/hdev/app/.bzr/checkout/pending-deletion/new-3': No such file or directory17:17
james_wmuszek: ok, thanks, so there is something a bit weird there, but I don't think it's the cause of your problem, let me look at some code for a minute17:18
muszekjames_w: ok...17:18
muszekjames_w: maybe I should try that with a user who owns those files (tomekg)?17:19
muszekbrb (2 minutes)17:19
james_wmuszek: aha, can you in fact make the /var/www/hdev/app/.bzr/checkout/pending-deletion/ dir?17:19
james_wmy guess is not.17:19
muszekone sec17:22
muszekcreated... now update or copying of app_controller.php? (btw... app_controller.php is not the file that was about to be deleted)17:23
muszekapp_controller.php was merely modified in this revision17:24
muszekI tried bzr update and got an error telling me to delete pending-deletion (something about leftover files)17:26
muszekI removed it, updated again and this time I got an error... same thing, only with .bzr/checkout/limbo17:26
james_wtelling you to delete limbo?17:27
muszekyes17:28
james_wand if you do that what happens17:28
james_w?17:28
muszek"almost" the same, as original error17:30
muszekI recreated manually deleted webroot/css/reset-fonts-grids.css in the meantime17:30
muszekjames_w: http://pastebin.us/?show=m4225a7de17:30
james_wok, can you run again, adding the -Derror argument to bzr plrease?17:32
muszekjames_w: http://pastebin.us/?show=m47e2de2117:34
muszekjames_w: just to be safe, I chowned reset-fonts-grids.css from muszek:muszek to tomekg:hotels17:34
james_wok, so it's the same error it seems17:35
muszekjames_w: I could always revert to the last revision locally, remove and commit on the remote machine and commit back... but I'm affraid I'll run into the same thing next time I remove something locally17:36
jamabentley: BB is down again17:37
james_wmuszek: care to add a line to bzr to test a hypothesis for me?17:37
muszekjames_w: sure17:37
abentleyjam: Thanks.  Back.17:38
james_wmuszek: we need to edit bzrlib/transform.py , what distro are you running? Are you using the packaged version?17:39
beunoabentley, btw, I did keep on working on migrating BBs DB, I just came to the conclusion that I need to write a script to do it, so it will take a bit more time  :)17:39
andrea-bsis the launchpad plugin included in bzr 0.15?17:39
abentleybeuno: Oh, okay.17:39
muszekjames_w: hardy, packages from official repos (both machines)17:39
james_wcool, the easy case17:40
muszekjames_w: the remote machine is installed from some really small image (~100MB, it's a VPS)17:40
james_wso, please edit /usr/lib/python2.5/site-packages/bzrlib/transform.py17:40
muszekit was stripped of pretty  much everything (I don't even get a tab completion when I do sudo chmod wwwTAB)17:41
james_wline 1164, it should currently be17:41
james_wraise errors.ExistingPendingDeletion(deletiondir)17:41
james_wplease add a line after that is17:41
james_wraise17:41
james_wit should be indented to the same level as the "if e.errno == errno.EEXIST:" line just above17:42
muszekcare to remind me how to "go to" or check what line it is in vim? (sorry, I'm not a wiz :/ )17:42
james_w:116417:42
james_wor 1164gg17:43
james_wand make sure you are indenting with spaces, no tabs.17:43
muszeksingle word "raise" inserted there17:44
james_wyup17:44
muszekupdate again?17:45
james_wI think there may be an error here that is being swallowed.17:45
james_wyes please.17:45
muszekdid a regular bzr update... same error17:46
james_wsame traceback with -Derror?17:46
muszekjames_w: http://pastebin.us/?show=mfe42e1217:47
james_wok, it's not that then17:47
james_wI'm stumped17:47
muszekI'm checking a dictionary for "stumped" :)17:48
james_wcare to pastebin the output of "ls -lR .bzr"?17:49
muszekjames_w: http://pastebin.us/?show=m7165e1dc17:50
muszek(reverting trasform.py back to what it was originally)17:51
james_wlooks fine to me17:52
james_wwould you like to file a bug report?17:52
muszeksure... only what would I put in it?17:53
muszekI can attach a log from this conversation.  Pastebins should be there for 1 month.17:54
james_wthe traceback is the most important thing17:54
james_wcan you paste that in directly, rather than relying on the pastebins please17:55
muszekalso (unrelated to a bug report).  would you like me to try deleting locally and updating on a remote server with that repo that you helped me with ~2 months ago?17:55
muszekit seems to  work, only I'm not sure that I've done this exact operation there17:55
muszekjames_w: I've done it on the other repo - it worked ok17:58
muszeksame machines, same steps followed when setting them up17:59
james_wodd18:01
muszekjames_w: just updated it with the user that owns all files (tomekg) and it worked fine18:01
muszekjames_w: the last question: is this the output I should attach? http://pastebin.us/?show=mfe42e1218:02
muszekjames_w: thanks a lot for you time.  bug report's here: https://bugs.launchpad.net/bzr/+bug/23714018:25
ubottuLaunchpad bug 237140 in bzr "bzr dies when trying to delete a file that doesn't belong to the user, but is deletable (user and file belong to a group, file has group write permission)" [Undecided,New]18:25
muszekI removed anothere file locally, commited and did bzr update on a remote machine - it went fine.  So I can't even reproduce it anymore :/18:32
=== kiko-fud is now known as kiko
abentleymuszek: write permission on a file does not confer permission to delete it.  Only write permission on its containing directory does.18:53
muszekabentley: group had a write permission on a parent directory18:53
muszekand I was able to delete the file manually18:54
abentleyThen perhaps it was inability to rename into the temporary directory.  Seems unlikely, though.18:54
fullermdSure you logged out in between?  Groups are set when your session begins, so it doesn't pick up changes until you relog.18:54
muszekfullermd: I know, I opened new sessions right after I added myself to that group.18:55
abentleymuszek: Whatever the cause, the permission error was encountered by the underlying OS.  Bazaar just propagated it.18:55
muszekabentley: I was able to create that file manually.  james____w (mistyped nick, I don't want to ping him) asked me to issue some commands and possibly their goal was to see if .bzr/checkout/pending-deletion  (or similar) was created and it wasn't... but I was able to create it manually.18:57
abentleymuszek: Create which file?18:58
muszekcreate dir .bzr/checkout/pending-deletion18:58
abentleyThat's very odd.  If that directory cannot be created, you should get an exception immediately.18:59
muszekimo it's not worth looking into now that I can't even reproduce it.18:59
abentleyOkay, looks like there's a flaw in that creation logic.19:00
abentleyIt special-cases ExistingPendingDeletion, and forgets to handle the rest.19:00
james_wabentley: yup, I asked him to add a raise there, but it didn't seem to show any errors19:01
abentleyjames_w: yeah, that doesn't make much sense.19:02
=== BasicPRO is now known as BasicOSX
=== mw is now known as mw|food
=== mw|food is now known as mw
siretarthow to set the 'submit' branch in my branch?20:45
muszeksiretart: you might be looking for bzr bind command (I'm not even remotely good at this stuff)20:53
siretartmuszek: no, that does something completely different20:54
muszekok.  sorry, I can't help you then20:54
james_wsiretart: $EDITOR ? :-)20:56
beunosiretart, you can do:  bzr send BRANCH --remember20:56
james_wsiretart: I think "merge --remember" does it as well20:56
siretartjames_w: ah, but when I don't actually want to do a merge, but just use 'bzr diff -rsubmit:', and fix the broken submit path?21:00
siretartbeuno: that sounds interesting. will try that21:00
james_wsiretart: I think it's in locations.conf, but I know that's not ideal.21:01
james_wsiretart: btw, did you see that I would like an upload of builddeb? It's not urgent, but if you get some time soon then I would appreciate an upload.21:01
siretartjames_w: no, I must have missed that21:16
siretartjames_w: was that on pkg-bazaar?21:16
james_wsiretart: ah, no problem, I snuck it in.21:17
james_wsiretart: yes, and IRC a while before that, but you were away at the time.21:17
siretartah, found the mail21:17
james_wit's sitting in the trunk branch on bzr.debian.org if you get time.21:17
siretartI'm not sure if I get to it today, but I see that I do that soon21:17
siretartneed to fixup ffmpeg :/21:17
james_wsiretart: good luck21:18
=== BasicPRO is now known as BasicOSX
perrehi... i21:33
perrei'm using bzr to get a branch... i even tried the bzr devel branch (bzr branch http://bazaar-vcs.org/bzr/bzr.dev). but it gets too slow... i couldn't pass the Copying inventory texts 2/5 step21:34
perream i missing sth?21:34
perrebtw, version is 1.521:35
beunoperre, is this a public branch?21:36
perreyes21:37
beunoperre, what's the URL?21:37
perrethis happens even when i try to get the bzr development branch... but i first tried with mysql21:37
perrebzr branch lp:mysql21:37
perreor bzr branch http://bazaar-vcs.org/bzr/bzr.dev21:38
beunoah, with big-ish branches21:38
james_wperre: have you run "bzr lp-login" before?21:38
beunocould you take a look at ~/.bzr.log?21:38
beunojames_w, AFAIK, branching through http is faster than ssh, currently, so that shouldn't be the problem21:38
perreyes, i tried but no success21:38
james_wbeuno: ah, ok.21:38
perrebeuno: yes, taking a look at .bzr.log21:39
perrewhat should i look for?21:39
beunoperre, could you do:  bzr branch lp:bzr -Dhpss21:39
beunoand then, tail .bzr.log21:39
beunowe should get more information from there21:39
beuno(speeds, eventual errors, etc)21:40
perrejust lines like this21:41
perre552.563  http readv of 56cec13f12c690045140c0067e99a2b4.pack  offsets => 516 collapsed 321:41
beunoperre, could you paste the last ~100 lines from that in pastebin?21:41
perrehmm.. wait.. it just finished to get the bzr.dev21:41
beunoah21:41
beuno:)21:41
perrebut mysql is taking longer21:41
perreis because of the size of the branch?21:41
beunoperre, well, the size of the branch obviously matters a lot, yes21:42
* beuno checks for the size of the mysql branch21:43
perrei see... the problem is that i didn't get any visual notification of progress...21:43
perrethere is the progress bar, but since it is too big, it was slow21:44
perreand even using verbose didn't show anything else21:44
beunoright, we should do better in that area, yes21:44
beunowe have sucky progress bars  :/21:44
perreLOL :P21:44
perreok... i will let the pc working21:45
beunoperre, feel free to file a bug for it  :)21:45
perrethanks folks!!!21:45
beunothat makes me wonder if http still really is slower than bzr+ssh...   spiv should know, but it may be a but too early21:46
PengI benchmarked branch once, and with packs, nosmart+http was quite a bit faster than bzr+http.21:48
PengThat might've been with artificially low latency though.21:49
beunowell, lifeless explained why it was slower, but the fix wasn't too complicated, so it may have gotten fixed21:49
beunoat the last sprint, that is21:51
beunoRepository:21:56
beuno     54233 revisions21:56
beuno    706538 KiB21:56
beunothat explaines why it's slow to branch mysql  :)21:56
j^hi, a question, what is the difference between bzr+ssh and sftp?21:59
j^which one should be faster21:59
beunoj^, if the server has bzr installed too, than bzr+ssh, which uses the bzr smart server22:00
Pengj^: sftp simply uses sftp. bzr+ssh sshes in and runs 'bzr serve', which means bzr has to be installed on the server, but it's faster.22:00
j^ok great, have installed bzr on both sides will use bzr-ssh from now on22:01
j^pushing still is a bit slow22:01
j^but that would be ssh key negotiation or something like that22:02
beunoj^, it's especially fast with push/pull/merge operations, as it can easly find out what it needs to transfer22:02
newz2000what do you do when you accidentally commit an enormously large file and now your .bzr folder is too large?22:04
mtaylorbuy more disk22:04
Pengnewz2000: "bzr uncommit" ASAP?22:04
PengOr that.22:04
mtaylor;)22:04
newz2000hmm. Well, about the asap thing, I realize I did this months ago22:04
PengHeh.22:04
PengOops.22:04
j^if its not the last commit bzr branch -rBEFORE and continue in the other branch22:05
newz2000what are the consequences of deleting the offending .knit file?22:06
beunoterrible  :)22:06
beunoit will probably break the repo22:07
PengEw, you're still using knits?22:07
newz2000yep, you're write, terrible.22:08
newz2000something is now foobar'd22:08
* newz2000 tries something else22:08
PengYou deleted the knit?22:08
newz2000from a copy of the branch22:08
PengWhen is deleting random files ever *good*?22:09
newz2000it was worth a try. Maybe I should have just cat /dev/null > the.knit22:10
newz2000but I'll try your suggestion and make the branch22:10
beunonewz2000, nothing good will come from anything other than re-branching without that file22:12
beunothere may be some magic possible with rebase22:12
beunobut I may be wrong22:12
newz2000is there detailed instructions on how to do this? I'm still not that experienced with bzr's advanced features22:13
beunoI'm pretty sure there isn't22:14
newz2000ok, so I have to find out what version the file was added at, then branch from right before that22:15
beunoyes, that seems like the safest option22:16
newz2000then what, copy thew newest versions of my files over to the branch and commit?22:16
beunoyeap22:16
newz2000ok, simple enough22:16
beunoyou'll loose the history after that file was committed22:16
beunobut I guess it's a tradeoff22:16
beunobtw, newz2000, you do a lot of work with webpages, right?22:17
newz2000yeah that's no problem. I use bzr for a safety net and collobration22:17
newz2000beuno: yes22:17
beunowell, we've been working on a plugin that might interest you22:17
beunobzr-upload22:17
newz2000what does it do?22:17
beunoit basically uploads files22:17
beunono bzr-related information22:18
beunoremembers the last revision uploaded22:18
Pengnewz2000: You might be able to rebase so that you won't have to recommit everything.22:18
beunoso bzr-upload will just upload what was changed since the last upload22:18
beunomain target is obviously for webpage developers22:18
beunoit's still under development, but I use it almost daily, and it's stable enough22:19
newz2000so right now I often use sftp to copy an entire site up, and your plugin would only copy the files that changed since the last time I uploaded?22:19
beunocorrect22:19
beunosftp/ftp22:19
newz2000and it leaves out the .bzr folder?22:19
beunoyeap22:19
newz2000that is nice22:19
beuno:)22:19
newz2000is it on the bzr website?22:20
beunonot really, but,  http://launchpad.net/bzr-upload22:20
beunoand/or:  bzr branch bzr-upload ~/.bazaar/plugins/upload22:20
newz2000I actually think about this quite often22:20
beunoand you're ready to help us test it  :)22:20
newz2000well, once a week or so22:20
beunoyeah, I did too. So, a bzr sprint and vila's magic later, we're pretty close22:21
newz2000ok, so I apparently bzr rm'd the file a while ago and I'm not sure how to find out what revision to branch from22:22
newz2000is there a way?22:22
beunonewz2000, bzr log filename22:22
beunoshould still tell you I think22:22
newz2000bzr: ERROR: Path does not have any revision history: live.backup.sql.gz22:23
newz2000how would you interpret that?22:23
beunois that the full path?  that file was in the root of the branch?22:23
newz2000I guess I don't know22:24
newz2000I think so though, it's not a deeply nested project22:24
beunohrm22:25
ToyKeeperbzr log -v | grep -20 my.file.name ?22:26
beunoright, it doesn't work once the file is gone22:27
beunothere should probably be a bug about this...22:27
* beuno looks22:27
newz2000no luck using log -v. :-) I guess most people who use vcs don't want to delete segments of their history22:28
beunoright, bug #18152022:28
ubottuLaunchpad bug 181520 in bzr "bzr log FILE don't show revisions where file was removed" [High,Confirmed] https://launchpad.net/bugs/18152022:28
newz2000so can I look for missing revisions?22:28
ToyKeeperHmm, works for me.  "bzr log -v" with no other parameters shows all files added/removed, even if they on longer exist.22:29
beunonewz2000, I'd say fo something like:   bzr log -v > log.temp, and then grep log.temp for that file name22:29
ToyKeepers/on longer/no longer/ :)22:29
beunofind the last revision it was added, go form there22:29
newz2000wow, maybe I'm just really confused, it's not even in log.temp22:30
newz2000oh22:30
newz2000my copy is small22:30
newz2000my copy apparently didn't have the file in its history22:31
beunoah, well, that solves a lot  :)22:32
newz2000ok, well, I have no idea what happened but it's fixed now.22:33
newz2000Thanks a bunch for your help22:33
beunonp  :)22:33
=== mwhudson__ is now known as mwhudson
mwhudsonso if you have a lightweight checkout and the branch it's a checkout of has moved23:22
mwhudsonis there an easier way of updating things than 'emacs -nw .bzr/branch/location' ?23:22
awilkinsbzr bind <new_location> ?23:23
mwhudsonhm, i thought that complained if it couldn't find the old location23:26
mwhudsoni'll have to remember to try it next time :)23:26
spivmwhudson: bzr switch23:28
mwhudsonspiv: no, that definitely complains23:29
beunomwhudson, howdy23:30
mwhudsonbeuno: hi!23:31
beunomwhudson, how's everything?23:31
mwhudsonbeuno: ok, still worrying mostly about the ~vcs-imports stuff23:32
beunomwhudson, ah, you always get to work on the fun stuff...  :)23:32
beunois that what made code scanner crazy the other day?23:32
mwhudsonno23:33
mwhudsonthat was something else :)23:33
beunoheh, I'll keep on guessing then23:33
beunodid you have a chance to take a peak at the latest branch I uploaded?23:33
mwhudsonno :(23:34
beunoah, np23:34
beunoI've done a few tests, and I can get a 30k diff without many problems23:34
beunothe current code is still a little hackish, but it does seem promising23:35
beunothere is a few good reasons, aside from zpt that it does render faster/with less memory, one of them being we don't render/process it twice, for unified/side by side view23:35
beunounless you can think of something else that would be better, I'm going to cleanup that branch, and get it into a usable state, with the API upgrades and whatnots23:36
mwhudsonoh yes, that unified/side-by-side stuff is pretty dumb :(23:37
mwhudsonit complicates all kinds of linking stuff with cookies and so on23:37
mwhudsoni think trac's diff view is quite nice, fwiw23:37
beunoah, it's more like the unified diff23:39
beunobut nicer23:40
beunoI think I actually like the side-by-side more, but we can provide both with this ajaxish interface, and let the user decide23:40
beunoside-by-side is a bit more expensive to generate, but not terrible23:40
mwhudsonit does tend to be very very wide though23:45
beunoyes, and I'm only testing on bzr.dev, which is very careful not to go over 80 characters23:46
beunoStill like it though, it's more vimdiff-ish23:47
jambeuno: btw, one of the issues with color encoding is when you see the unified diff, the side-by-side doesn't matter as much23:51
beunojam, aaah, that makes sense  :)23:51
jammost people seem to feel side-by-side is prettier23:51
jamI do prefer vimdiff to unified diff, though I'm comfortable with unidiff at this point23:52
beunojam, would adding + and - still address that, or do you think we should opt for different colors anyway?23:53
pooliehello23:56
beunomornin' poolie23:56
lifelessmoin23:58
jampoolie: I'm around for the call after all23:59
jambeuno: lifeless is the one you should be asking23:59
jamhe can tell you whether it is all just grey or not23:59
beunomorning lifeless  :)23:59

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