/srv/irclogs.ubuntu.com/2010/07/23/#bzr.txt

jelmerspiv: around?00:02
spivjelmer: starting to be :)00:07
jelmerspiv: Have you ever seen anything like this: http://pastebin.com/t0te7wCQ ?00:25
spivjelmer: yes, I think it's due to something (e.g. a thread) trying to mutter after the TestCase has torn down the logging/trace setup.00:35
jelmerspiv: ahh!00:35
jelmerspiv: Thanks, that also explains why the number of tests that failed in this way varied00:36
spivYou're welcome :)00:36
ChaorainI recently heard about Bazaar and have a question. I heard that it will allow me to make a personal branch of a project. For example, I want to start writing a major update for Blender but I don't have write access to the svn server, can I make a branch that only I can write to? I currently have a local linux server that manages a private svn server for me.00:45
jelmerChaorain, yes00:46
Chaorainok cool. I saw how to install it but how would I go about doing what I want?00:46
Chaorainhere is what I found, http://ubuntuforums.org/showthread.php?t=91613200:47
Chaorainoh nvm just saw "bzr init00:47
Chaorainthanks for your help00:48
jelmerspiv: Any idea how to figure out what code is doing that muttering?00:48
spivjelmer: hmm, not off the top of my head :/00:50
spivjelmer: instrument mutter to emit a traceback to stderr on ValueError, perhaps?00:50
Stavroshello01:18
Stavroscan anyone tell me why bzr does a light checkout when i cp -R my repo?01:18
spivStavros: I think I'm missing some context.  You mean you run a bzr command after cp -R'ing your repo, and you get a lightweight checkout when you don't expect one?01:21
Stavrosi'm doing cp -R repo/ repo2/; bzr info; and i see "lightweight checkout"01:22
Stavrosshouldn't that be a full branch?01:22
Stavrosi mean, how much fuller can it get?01:22
spivWell, what does 'bzr info' in the original repo/ report?01:23
Stavrosalso lightweight checkout01:23
Stavroswhat the hell?01:23
Stavroshow can that be lightweight? i can commit fine locally01:23
Stavroscheckout of branch: .bzr/branches/trunk01:24
Stavrosi have no idea what's going on :/01:24
spivAre you using the bzr-colo plugin, perhaps?01:24
Stavrosah, i am01:24
Stavrosis there some way i can remove it?01:24
spivThis would just be an artefact of how it works, I think.01:24
Stavrosand convert to a full checkout?01:24
spivYou can probably use 'bzr reconfigure --tree'.  You might need to remove/disable bzr-colo first, I'm not sure.  Ideally bzr-colo's docs would cover this.01:26
spivAlthough, if it's not causing you any problems, why change?01:26
Stavrosbecause i can't commit to my other branch without this branch refusing to do anything unless i update :/01:26
spivAh ok.01:27
Stavrosthe command you gave me seems to have worked, let me check01:28
Stavrosyep, that works, thanks!01:29
spivHooray, my new laptop can run the bzr test suite in under 10 minutes, and I haven't even tried running it in a tmpfs yet.01:30
mlhspiv: what's your new lappy? (am looking at  buying one too)02:32
mlhpm if you like02:32
spivmlh: Thinkpad T410, so far so good.02:50
spivOf course, I'm running maverick on it, so any issues could be blamed on that anyway ;)02:51
* spiv -> food03:07
mlhta03:40
=== davidstrauss_ is now known as davidstrauss
* spiv finishes up for the evening. It's EOD time plus a headache seems to be coming on :(09:04
spivOn the plus side the new laptop is running smoothly and has all my old crap configured.09:04
spivSee you all on Monday!09:05
=== oubiwann is now known as oubiwann-away
rjekAfternoon.  Is there any support for keyword-like expansion in bzr?  (ie, I want to include revision information in a file.)  While I could just have my build system query bzr, that doesn't work so well with tarballs produced with bzr export.11:03
jelmer_rjek, see the keywords plugin11:04
* rjek was kinda hoping to avoid plugins.11:04
rjekAnd I can't find it on http://wiki.bazaar.canonical.com/BzrPlugins :)11:05
Kinnisonjelmer_: Do you mean http://doc.bazaar.canonical.com/plugins/en/keywords-plugin.html ?11:05
rjekMy only concern with using plugin to do it is that my experience is that if I then try to build somewhere without that plugin, it'll either silently fail and I'll get strange builds, or I'll get an explosion with a python backtrace I don't understand.11:07
jelmer_Kinnison: yep11:07
jelmer_rjek: alternatively you can use "bzr version-info" to generate output, it's not really the same thing though11:07
jelmer_Kinnison: Yep11:07
rjekjelmer_: yeah, but as I said, that doesn't work for people building from a tarball created with bzr export.11:08
rjek(In that I'm assuming they don't have bzr if they want to use the tarball.)11:08
rjekAlso, it looks like that plugin can only have the rules that describe what files to process globally, not in a checkout, which is a bit nasty.11:14
jelmer_right11:15
jelmer_It'll work as long as whoever runs 'bzr export' has the plugin installed though11:15
jelmer_I'm not aware of any alternatives unfortunately11:16
KinnisonCould a branch can't define a hook to run on export which could be used to update the file?11:19
Kinnisons/can't//11:19
rjekCan the rule files described by "bzr help rules" be placed in a branch, rather than global?11:25
KinnisonUnfortunately it looks like whoever wrote bzrlib/rules.py never finished it properly11:30
Kinnison:-(11:30
poolieit was ian11:31
poolieprobably11:31
KinnisonI wonder who reviewed it and didn't spot that RULES_TREE_FILENAME is defined as ".bzrrules" but then never used anywhere :-(11:31
rjekCan I have that feature, please? :)11:33
rjekOnly having rules globally and not version controlled is... nasty :)11:33
KinnisonAye, it has rules stacking in it already, but no way to activate them11:34
Kinnisonboggle11:34
KinnisonAlso with all of rules.py's external interfaces starting with an underscore, I'm not impressed11:39
* Kinnison doesn't have the time to make a patch right now though :-(11:40
jenkinshi, I am getting this error when doing bzr pull or commit bzr: ERROR: Could not acquire lock "/home/luke-jennings/Projects/lucid-e2/.bzr/checkout/dirstate": [Errno 11] Resource temporarily unavailable. does that mean there is a problem with launchpad or my computer?12:28
jenkinsI fixed it by getting a new branch12:33
aj-dnegquick q, how do i check out the previous revision?12:39
aj-dnegin-place of my workign copy12:41
GaryvdMaj-dneg: bzr update -r -212:54
aj-dnegah of course. i knew that. thanks :)12:54
aj-dnegis there any way to save bzr svn username and passwords other than in the URI for it svn://uname:pass@server/branch14:25
aj-dnegi know it's plain text in my branch config in any case, but it sucks that it shows it to the console!14:25
mgzdoes bzr-svn work with authentication.conf?14:31
mgzsee no reason it shouldn't.14:31
jelmerit should14:32
mgzaj-dneg: in your bazaar configuration directory, open authentication.conf and add your details there14:33
mgzrun `bzr version` if you're not sure where the dir is.14:34
aj-dnegmgz: i don't already have one of those files14:35
aj-dnegwhat format?14:35
mgzreally? I thought it got created automatically.14:35
mgzrun `bzr help authentication` for the full run down.14:35
aj-dnegi found this http://doc.bazaar.canonical.com/latest/developers/authentication-ring.html14:36
aj-dnegthanks14:36
aj-dnegmgz: perhaps bzr svn doesn't create it...14:36
schlangen_hi, I want to checkout a repo and have to use win vista. It fails cause win does not support symlinks. Is there any flag or workaround or so to get the checkout done?14:36
mgzuse cygwin, or branch on nix, delete the symlinks, commit, and branch that on win.14:37
mgzalso, bug the project to not version symlinks it's nearly always a bad idea anyway.14:38
schlangen_normally I use ubuntu but currently I've only internet with win14:39
schlangen_I just want to check out a project and get the code14:39
mgzyeah, I have often had a similar problem.14:39
mgzthere have been a few discussions about a better solution, but there's no easy fix.14:40
schlangen_so there is no flag to replace symlinks on win with normal copies or so?14:40
mgzno. file a bug with the project, they're probably only using them for someting stupid anyway.14:41
schlangen_hm, ok14:41
jelmeraj-dneg: bzr itself doesn't create it either14:41
mgzwhich reminds me, I should have bugged someone here about lazr while the launchpad event was on.14:41
aj-dnegi just get a crash when i have svn defined in authentication.conf :(14:42
mgzthey've got an unbranchable project due to symlinks, and another bug I filed a merge proposal to fix that's been ignored for months14:42
mgzmight have been someone at the event they could have kicked in person.14:42
mgzaj-dneg: pastebin the traceback (I presume you mean python threw and exception rather than 'crash')14:43
mgz-d14:43
aj-dnegmgz: it created a crash dump for me14:45
aj-dnegmgz: i will deal with this later, supposed to be working :)14:45
aj-dnegthanks14:45
mgzapport thingy?14:45
mgzpastebin that if it's plaintext.14:46
GaryvdMHi mgz15:23
mgzhey gary15:32
GaryvdMmgz: I can't find your pastebined patch for the py2exe optimize improvement15:42
mgzhttp://paste.ubuntu.com/460272/15:43
mgzthird in my browser's history :)15:43
mgzit's only a guess, haven't tested.15:43
GaryvdMmgz: Ok - let me spin a build of that...15:43
mgzyour 2.2b4 looks good, fixed all the stuff we worked on, though found some new issues that need handling before release15:48
=== beuno is now known as beuno-lunch
=== tchan1 is now known as tchan
GaryvdMhttp://lkml.indiana.edu/hypermail/linux/kernel/9809.3/0957.html17:20
GaryvdMA description of bitkeeper from 1998 - I did not realise that it was so old...17:21
mgzwe're all getting old gary ;_;17:34
=== beuno-lunch is now known as beuno
=== jelmer_ is now known as jelmer
jaxdroidhi anyone here have experience in using the bzr plugin for eclipse?19:11
maxbSome. Which plugin, though? There are two.19:13
jaxdroidhttp://verterok.com.ar/bzr-eclipse/update-site/19:13
maxbI tried that for a bit, but decided that it was sadly too immature and buggy to be of practical use19:14
jaxdroidbizzare19:14
dashjaxdroid: i use it19:14
jaxdroidhappen to have name to other plugin19:14
dashmaxb: which is the other one?19:14
maxbqbzr-eclipse - which is a bit of an odd one, because it's not an Eclipse team provider19:15
dashaaah.19:15
dashnot a team player19:15
jaxdroidthx19:16
maxbIt's a rather different way of working - but it seems overall to have fewer rough edges than bzr-eclipse19:17
maxbUnfortunately the sad truth is that bzr doesn't have anywhere near as good eclipse support as mercurial19:17
=== beuno_ is now known as beuno
riochwhen I do bzr status, one of the items has a * by it. what does that mean?19:39
rjek"bzr help status" suggests the file has the executable bit set.19:40
riochahhh thanks19:41
GaryvdMmgz: https://dl.dropbox.com/u/4494367/bzr-2.2b4-optimize-setup.exe19:43
GaryvdMmgz: 6 kb smaller :-)19:46
mgzcompressed?19:46
GaryvdMmgz: yes19:46
GaryvdMbusy testing if it works with plugins installed from source with old style help strings.19:47
mgzappears to have worked19:49
GaryvdMmgz: Do you how can you get a cold cache on windows with out restarting?19:50
mgzcan't unfortunately, and with new version of windows can't even always get it *with* restarting :)19:50
mgzlibrary.zip is ~2.5MB smaller as planned, and the exe is creating non-docstring-stripped files19:51
mgz^if you have a externally connected spinning rust hdd you could try that for a coolish start19:52
GaryvdMmgz: Maybe using cacheset, reduce the max cache size, and then put it back...20:01
GaryvdMhttp://technet.microsoft.com/en-us/sysinternals/bb897561.aspx20:01
mgzjust murdering your memory does sort of work, but takes longer than simply restarting20:01
mgzget deep into paging death and takes ages to recover from20:01
mgzah, that's not the util I thought it was going to be, but might suffer from similar issues20:02
GaryvdMmgz can see if you run an qbzr command from that install. I'm getting an error.20:03
mgzwfm.20:04
GaryvdMhttp://pastebin.org/41360320:04
GaryvdMmgz: qlog?20:04
mgzyup.20:05
GaryvdMWorks?20:05
mgzyup.20:05
mgzcan you do qversion? not being able to import Qt probably means you're totally hosed.20:05
GaryvdMmgz: I can do qversion20:06
GaryvdMcan't do qlog, qbrowse, and explorer.20:06
mgzyou should get qversion to print where it's getting Qt from/20:09
GaryvdMYes20:10
GaryvdMAh - I happens with a old version of qbzr (0.18dev) and a new installer with less qt dll's.20:11
GaryvdM* It20:12
marsHi everyone, I have a testing question for the room20:13
GaryvdMHi mars20:14
marsHi GaryvdM20:14
marsso, the question: I presume that bzr tests command-line script output, which means the suite has to work with STDOUT somehow20:15
marsIf so, how do you do it?20:15
GaryvdMmars: Most of the tests test the api. But there are some blackbox test.20:16
mgzassigning to sys.stdout20:16
mgzor using a subprocess.20:17
lifelessmars: self.run_bzr and self.run_bzr_subprocess20:17
marsinteresting20:17
lifelessmars: the former uses apply_redirected to run the CLI layer with string io objects20:17
lifelessthe latter reinvokes bzr to actually do an end to end test, which is only rarely (like, 3-4 times) needed in a full test run.20:18
lifelessmars: if you're writing a CLI layer, I'd suggest looking at the testrepository code, its a reimplementation of what bzr has, with the lessons learnt applied and some new ideas thrown in.20:18
lifelessmars: better yet, don't write a CLI layer, use bzr's.20:18
lifelessmars: lp-tools and commandant both have examples of reusing bzr's core handling to do stuff, and then you can use bzr's test cases to do self.run_... :)20:19
marslifeless, interesting idea.  I'll look into it.  It would be nice to find a common ground between the bzr "command language" way and the *nix "small sharp tools" way.  I'm sure there is something.20:21
marsthanks everyone20:22
GaryvdMmars:20:22
* mars pauses20:22
GaryvdMmars; for cli opts and args parseing, there is a python libaray20:23
GaryvdMlooking for it...20:23
marsGaryvdM, yep, I am familiar with it20:23
mgzthere are issues with both those methods in the bzr suite, but they're pretty esoteric20:23
mgzrun_bzr screws up debugging tests with pdb20:23
GaryvdMmars: oh ok.20:23
marsmgz, heh, that's good to know.  I rely heavily on the 'drop to PDB' features of various testrunners20:24
mgzand run_bzr_subprocess doesn't handle being invoked from non-standard scripts20:24
marsmgz, non-standard?20:24
lifelessmars: bzr is small sharp tools :)20:25
lifelessmars: testrepository has more of a flavour of that though, if you want that.20:25
mgzas in, it's got special casing for a py2exe'd bzr.exe but anything else would break20:25
lifelessmars: dropping to pdb is great, but you never need to do that in a blackbox test - if you do you're not isolating your tests anywhere near enough.20:25
lifelessmars: layers man, layers.20:26
lifelessmars: it annoyed me in bzr about 2 times a year; I know how to fix it, just 'meh, when it annoys me twice in a row'20:26
marslifeless, yes, but learning where the layers are best drawn is the challenge for me - "when do I test the boundaries?  How?  How much?"20:26
marsheh20:27
lifelessmars: if you're testing CLI *rendering* or *arg marshalling*, blackbox is the way.20:27
lifelessanything else, should be domain objects and narrower non-CLI-blackbox tests.20:27
lifelessIME, etc etc20:28
marslifeless, makes sense - "test double MockFormatStdOutput.printBranch() should be called X times"20:28
marsand then black-box test printBranch() or something-or-other20:29
lifelessby blackbox I mean bzr's apply_redirected/run_bzr test methods, which actually exercise the full stack20:30
marsright20:30
lifelessbut its quick, so we're not too worried about it - and we only have a few such tests (under 1K I think)20:30
GaryvdMmgz: I'm going to submit that patch as a mp. I think we need to make moving the py2exe stuff out of setup.py a priority.20:30
mgza mp to bzr?20:30
mgzrather than bzr-windows-installers?20:30
GaryvdMmgz: right now to bzr20:31
marslifeless, I guess I'll start looking at testrepository.  It has the infrastructure, but not so much code that it is difficult to find a starting point20:31
GaryvdMthats why moving the py2exe is important.20:32
lifelessmars: commandant might be better as its designed to be a intermediate library20:33
mgzokay, this is officially driving me nuts20:47
mgzin what circumstances is inserting the right dir as the first entry on sys.path not sufficient to get a module imported from there rather than elsewhere on the path on nix...20:48
mgz...when the module is already somehow imported... but... how ;_;20:49
mgzmodules shouldn't survive fork+exec right?20:50
mgzokay, I'm officially just an idiot.21:04
lifelesssure21:10
lifeless:P21:10
lifeless(why?)21:11
mgzdebugging code I'd added earlier was importing the module21:14
mgzthe code's still borked, but not for the reason I just spent all that time chasing21:16
mgzoh man, and that's the real killer. the fix I already put up a merge proposal *was* correct, I just tyoped it when putting it on the other machine...21:38
mgzif it didn't take so long to branch from here to there I'd have not spent the last hour trying to discover out why it didn't work...21:39
=== Ursinha is now known as Ursinha-bbl
lifelessand ciao22:27
micahgcan we have per branch whoami's?23:38
jelmermicahg, yes23:39
jelmerset email in .bzr/branch/branch.conf23:39
jelmeror in the relevant section in ~/.bazaar/locations.conf23:39
Ken69267is there a way to specify what ssh key bzr uses for launchpad? I do not use the default named key23:39
micahgjelmer: thanks23:39
Ken69267or if I must map it with .ssh/config what is the true url to launchpad that lp: hides23:44
=== kbrown_ is now known as kbrown

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