/srv/irclogs.ubuntu.com/2008/10/01/#bzr.txt

=== jaypipes_mysql is now known as jaypipes
nefertumlifeless: in a structure like /repo/tom/feature1/ for example, tom is a branch? or only feature1 ?00:07
nefertumi need to create tom/ withg 'bzr init tom' ?00:07
LarstiQnefertum: both can be, it's more usual to have only feature1/ be the branch though00:09
nefertumLarstiQ: i have the next problem...i have in a machine a repo and in local i've created a new branch that i've just pushed to the server00:09
nefertumbut now i don't know if i can get all the content of the repository00:10
nefertumin the remote server the repo is /bazaar, and i've created the branch /bazaar/main00:10
nefertumbut if i created /bazaar/feature1 i'd like in the future to get all the repository content in another machine, for example00:11
LarstiQyou mean you want to get all the branches instead of specific ones?00:11
nefertumyes, all the repo tree00:12
nefertumi have to do a checkout?00:12
LarstiQnefertum: no00:12
LarstiQnefertum: maybe I don't really understand what your goal is00:13
nefertumlike in svn, i can do svn co url/svn/repo/ and this gives me all the repo00:14
nefertumi don't know how to do this in bazaar00:14
AmanicAfwiw, I think you can just copy it00:15
LarstiQnefertum: in bazaar branches are much more loosely coupled with a repository00:17
LarstiQ(than in subversion)00:17
nefertumaham..00:17
LarstiQnefertum: but even in svn, there are usually only a couple of branches you care about, and not the rest00:18
nefertumyes...that's what i've seen00:19
Verteroknefertum: unlike svn, in bzr a repository is just a place to store revisions. you can have standalone branches (without a separate repository)00:20
nefertumVerterok: the idea is that i'd like to have a remote server with a repository and i don't know if i should create it first in the remote machine or push the repository from my local repo...00:21
nefertumbasic things i supose...00:22
AmanicAyou can just create it on the remote side00:22
Verteroknefertum: first, we should clarify what a repository means :)00:22
nefertummmmm, well, in bazaar is also my local branches, but i mean about a server that stores the main branches in a project00:23
nefertumso the developers push the changes in it00:23
Verteroknefertum: in that case, as AmanicA said, you can create it in the remote side00:24
nefertumaham...00:24
nefertumok, but i should create with --no-trees or --trees ?00:24
Verteroknefertum: and probably you would have a local repository in you workstation00:25
lifelessnefertum: if its on a central server, --no-trees00:25
AmanicAI prefer --no-trees on the central server00:25
nefertumyes, actually i have a local repo00:25
nefertumok, so i can create an empty repo with --no-trees an later push my branches in it?00:25
lifelessnefertum: if its on your workstation, and you want to edit your code inside the repo (rather than doing a checkout), --trees00:25
Verteroknefertum: yeap00:26
nefertumi'll try...00:26
mwhudsoni find myself wanting to do cd :this00:43
AmanicAwill `bzr cd :this` work ? :)00:44
LarstiQmarkh: I recently got a very cryptic bzr-svn message on windows, is there a list somewhere (I looked at http://bazaar-vcs.org/WindowsDownloads and regular Downloads) that mentions what components go into a specific installer release?01:10
markhLarstiQ: not really :(  There is a wiki that describes the parts needed, but the version numbers are often stale - eg, bzr-svn is now using svn-1.5.x rather than 1.4.x.01:13
LarstiQmarkh: that's exactly what I ran into btw, a "upgrade your Subversion client" message01:14
markhLarstiQ: that wiki page is http://bazaar-vcs.org/WindowsInstall01:14
LarstiQmarkh: thanks!01:14
markhI've seen that error on my local svn repos lately too (ie, without bzr-svn)01:14
LarstiQmarkh: so the installer has it's own subversion library?01:14
markhyeah01:14
LarstiQaaah, ok01:15
LarstiQmarkh: the problem was that I had a svn 1.5 working copy01:15
markhLarstiQ: you using 1.7 binaries?01:15
markhor 1.6?01:15
LarstiQmarkh: and then tried to bzr diff on that, but I guess it must have been with 1.401:15
LarstiQmarkh: 1.501:15
markh1.6 was built with 1.401:15
markhright!01:15
markh1,7 is built with later libs01:15
* LarstiQ nods01:15
LarstiQthat should fix it in this case then01:15
markhIIUC, 1.5 used the "pysvn" bindings - now bzr-svn uses its own bindings01:16
LarstiQmarkh: Would it be possible to detect if TortoiseSvn is installed and use those libraries?01:16
LarstiQmarkh: right, but it steel needs an svn library to talk to?01:16
LarstiQstill even01:16
markhit would be a bit of a qa nightmare.  But for 1.7 etc, we should be using the latest available anyway...01:16
markhyeah - but what svn library was used was outside the control of bzr-svn - it just relied on whatever pysvn uses.  Now things are directly under bzr-svn's control01:17
markhit bundles the full svn runtim01:17
LarstiQah ok, so less problems there01:17
LarstiQmarkh: the main thing to do I guess is to catch that message thrown by svn and display something that makes more sense to the user01:18
LarstiQmarkh: since upgrading Tortoise makes the problem of incompatible working copies worse :)01:18
markhLarstiQ: but IIUC, only old bzr clients will display that message, and its too late to fix them?01:19
* LarstiQ will file a bug/patch for that tomorrow01:19
LarstiQmarkh: I'll test it01:19
LarstiQmarkh: for svn 1.5, yes. But if I use svn trunk I think I'd get the same message01:19
markhIIUC, the problem is the old version of bzr you have uses old versions of svn libs?  And newer TSVN and bzr versions use a later version?01:20
LarstiQmarkh: correct01:20
markhLarstiQ: right - so you want to upgrade just the bzr-svn for your old bzr binary?01:20
markhI mean, your old 'svn.exe' copies will no longer work either.  All the other tools need an upgrade to work - same with bzr01:21
LarstiQmarkh: for my concrete problem, I'll just install bzr 1.701:21
markh(fyi, 1.6 uses old svn too - only 1.7 has svn 1.5)01:21
LarstiQmarkh: but when the next svn release comes out and is incompatible, there is a window for confusing errors until we can say "use the latest bzr installer, that will work"01:22
LarstiQmarkh: ok01:22
LarstiQmarkh: so I'd like to nail that confusing message before the next incompatible svn release comes out01:22
markhright.01:23
=== kiko is now known as kiko-zzz
lifelesswhat-da-fark ?01:58
lifelessbzr: ERROR: No module named chkmap01:58
lifelessYou may need to install this Python library separately.01:58
mneptoklifeless: that dependency issue has caused a lot of failed marriages when it crops up while driving02:08
pooliehhe02:09
poolieheh*02:09
pooliespiv, are your around?02:09
poolieyou*02:09
poolietypo city02:09
mneptokoh, is that where we're going? i'm pretty sure it's the next left. no need to get the map out ...02:10
* mneptok accelerates and turns up the radio02:10
spivpoolie: yeah02:17
pooliewould my comment at the end of https://bugs.edge.launchpad.net/bzr/+bug/260335 be allright?02:22
ubottuLaunchpad bug 260335 in launchpad-bazaar "Server is too old for streaming pull, reconnecting.  (Upgrade the server to Bazaar 1.2 to avoid this) " [Undecided,Invalid]02:22
spivpoolie: that seems ok.  We certainly don't want to advise downgrading :)02:25
=== jaypipes is now known as jaypipes-afk
poolieout to lunch, biab03:33
jmlI'm pushing a new revision up to a stacked branch and getting a "Revision {...} not present" error.04:49
jmlI had just created that branch, did a local commit, and then pushed again.04:50
fullermdboard 104:50
* fullermd twitches.04:50
jmlI get the same thing even if I don't commit :(04:53
jmloh, branchformat6...04:53
mwhudsoni guess someone should file a report for that bug :(05:01
leo2007after upgrading to bzr 1.7, I won't be able to push to a remote ssh repository anymore. Any ideas?05:24
lifelessleo2007: why won't you be able to?05:24
leo2007lifeless: I've just posted the error here: http://pastebin.com/d7f25357c05:39
spivmarkh: see leo2007's traceback05:40
markhthats a new one :)05:40
markhleo2007: do you use putty or ssh?05:42
lifelessleo2007: your use of the future tense was quite confusing :)05:42
leo2007markh: sorry for my English. I used to be able to push to remote server with version 1.5. But couldn't. I use putty.05:43
markhleo2007: Try setting BZR_SSH=plink and trying again05:44
markhie, at the cmd-prompt05:44
markhset BZR_SSH=plink<enter>05:44
markhand try again05:44
leo2007markh: same error05:47
markhhrm - is plink.exe on your path?  The traceback shouldn't reference paramiko if putty's plink is being used (I think :)05:48
lifelessmarkh: paramiko provides our sfp:// implementation, FWIW05:48
markhlifeless: right - sftp:// urls?  But ssh+... ones use ssh/putty?05:49
markhhrm05:49
* markh thinks he is confused...05:50
markhputty/ssh only used for auth, not for "remote file-system" work?05:50
markhThe windows error message for that error code is the (not very helpful) "'Key not valid for use in specified state."05:51
markhoh05:52
markhI've seen this error before :(05:52
leo2007The new error is here: http://pastebin.com/d5fe0202605:52
lifelessmarkh: if you use bzr+ssh then paramiko shouldn't be needed; but if you use sftp then paramiko gives use the parsing logic, still use putty or whatever for the transport05:52
leo2007plink is in my path05:53
lifelesspoolie: ping05:56
lifelesspoolie: I need to decide where to put some tests; you've moved the pack repository specific tests out of test_repository, but these tests I am writing are not really pack specific05:57
lifelesspoolie: rather they are the actual format I'm working on specific05:57
lifelessI would have previously put them in test_repository, I'm just not sure why the pack ones got moved out, I'm confused and wondering if I should be doing the same05:57
spivmarkh: I vaguely recall a thread or two on the paramiko list about random number sources, perhaps that's related?05:58
markhah yes, its all coming back to me now :) Its a bug I reported in pycrypto a while back05:58
markhhrmph - the bug was #1343753 at sourceforge, but apparently the project is now managed at launchpad - and there are 20 bugs in total ever reported.  It is as if the bugs didn't migrate.06:00
markhso I can't work out the status of the bug in that package at the moment :(06:01
markha copy of the sourceforge bug message is at http://osdir.com/ml/python.cryptography.cvs/2005-11/msg00000.html06:01
leo2007so what's the solution?06:03
markhgood question :(  Use the version you were in the past for now I guess...06:04
markhthe bug still exists in pycrypto best I can tell.  I guess I better open a new bug.06:08
leo2007where to get older versions?06:09
spivleo2007: https://edge.launchpad.net/bzr/+download06:11
spiv(Or just https://launchpad.net/bzr/+download)06:11
lifelessspiv: of pycrypto ? :P06:12
poolielifeless: (back)06:12
spivlifeless: I thought it was bundled in the win32 installer?06:12
pooliere test_repository: as i recall, test_repository was just getting too big06:13
poolieand, i think having one file or module per scope of parameterization is probably something good to aim for06:14
markhleo2007: I might be able to get a fix in an hour or so - will you be around?  The error doesn't happen everywhere, so having someone to repro it is important...06:15
lifelesspoolie:  on the former, mmm, possibly. On the latter, I disagree06:15
lifelesspoolie: because, it makes choosing to parameterise a heavier task than it should be06:16
leo2007markh: I'll be around and happy to test06:16
poolieit's (just) over a thousand lines, that's the point where i start wondering if it can easily be split06:16
pooliedo you mean that if parameterizing means adding a new file it'll make people not do it?06:17
lifelesspoolie: yes06:18
lifelesspoolie: jam has complained about the cost already, comparing it to mixins06:18
leo2007I am restarting my computer.06:18
lifelesspoolie: not to mention that we have lots of examples of parameterisation within a single module already06:18
poolieso, my thinking was basically "hm this is getting big; oh, these tests are somewhat logically separate so i'll hive them off"06:19
pooliethis is not to say they must always be that way06:19
poolieas i see it the cost is in understanding how to set it up - like that 20-25 line function we looked at yesterday06:20
markhso a recent bug on pycrypto's launchpad page has just been marked "fix committed" - but the points points at some *git* repository!06:37
markhthere are 4 bzr branches on launchpad, but none are marked as "trunk" nor owned by the project itself.  I'm really not sure *where* the trunk is!06:38
spivmarkh: the homepage linked from launchpad.net/pycrypto does list a git branch, so I guess that is the current trunk.06:45
markhright - so the "problem" seems to be a new maintainer.  The most recent version looks like it came from amk's launchpad branch06:48
vilahi all06:57
spivvila: good afternoon07:01
markhleo2007: grab http://starship.python.net/crew/mhammond/Crypto.Util.winrandom.pyd and replace the existing copy of that file in the bzr directory with the new copy (take a copy of the old one first though!)07:12
chandlercjelmer: i have a self-contained local reproduction now.07:16
=== jfroy is now known as BahamutZERO
spivvila: thanks for that review07:19
=== BahamutZERO is now known as jfroy
chandlercjelmer: this is the weirdest crash i've seen in a long time07:26
markhleo2007: any joy?07:31
vilaspiv: thanks for yours :)07:35
chandlercanyone want to try and reproduce bug #276219 with the tarball i posted?07:36
ubottuLaunchpad bug 276219 in bzr-svn "Segmentation fault in the calling of subversion libraries." [Undecided,New] https://launchpad.net/bugs/27621907:37
chandlercjust wanna make sure i've done enough for others to reproduce, and it reproduces it on my machine, but that's hardly a good sample07:37
leo2007markh: I will test it in a minute.07:46
leo2007markh: need to reinstall version 1.u07:46
leo2007s/1.u/1.7/07:46
pooliespiv/lifeless: re your comment on bug 260335 - we're still issuing this error about Repository.get_parent_map in 1.8pre08:05
ubottuLaunchpad bug 260335 in launchpad-bazaar "Server is too old for streaming pull, reconnecting.  (Upgrade the server to Bazaar 1.2 to avoid this) " [Undecided,Invalid] https://launchpad.net/bugs/26033508:05
pooliejml, are you still here?08:11
jmlpoolie: yes.08:14
spivpoolie: you mean when the client is 1.8pre?  What version is the server?08:14
poolieso jml said that error still occurs if you use 1.5 against a 1.6 server08:15
pooliethe error seems to be issued from inside get_parent_map08:15
pooliedid we really remove that, and if so why is the client still trying to call it?08:15
poolieand, kind of related to that, the conclusion the client draws if its unsupported is that the server is older than 1.208:16
poolieso if what was said in that bug is correct, maybe the other code is wrong?08:16
AfCAny idea why the signature tab of bzr-gtk's visualize would say "Revision committer is not the same as the signer." for all the revisions for which I just did `sign-my-commits`?08:19
spivI'm confused.  The error in that bug will be emitted by 1.5 against a 1.6 server because the streaming pull verb (Repository.stream_revision_chunked) was removed as fallout of the versionedfiles work.08:19
spivI don't see anything in that bug talking about get_parent_map or get_revision_graph?08:19
poolieok i might just be confused...08:20
lifelesspoolie: the guy that filed it is running 1.508:21
lifelesspoolie: he says 'i want to run whats in debian stable' or something like that08:21
lifelessin other news, I've written a dumb CHKMap08:23
lifelessand am fixing repository so it can work with a CHKMapInventory08:23
jmlpoolie: was here something you wanted in particular?08:24
pooliejml, i was just going to ask you about your comment on that bug08:24
spivAfC: maybe it's verifying that the committer ID (i.e. the 'bzr whoami' of the committer) matches an ID on the GPG key that signed it?08:24
pooliebut it's fine08:24
* spiv -> yoga08:24
jmlok :)08:24
AfCspiv: not sure. Have a happy downwards dog.08:29
poolieafc, that would be my guess too that it's used the wrong userid08:34
pooliedoes it show which one did sign it?08:34
AfCpoolie: yeah, it does08:34
AfCpoolie: and it notes that that one is ultimately trusted08:34
pooliebut is it the same as the committer userid?08:34
AfCum08:35
AfChuh?08:35
AfCI'm not really sure what you're asking. I issued `bzr sign-my-commits` and it chugged away for a while.08:35
poolieso08:35
poolieyou said that bzr-gtk complains that "revision committer is not the same as the signer"08:35
poolieand i'm wondering if they are actually different, or if it's just misunderstanding them08:36
AfCpoolie: that's what it's saying08:36
poolieand if they are different, in what way they're wrong08:36
AfCpoolie: I'd assume so08:36
pooliebut does it show you which key was used to sign it?08:36
AfCYes its does.08:36
AfCI mean, it could only have identified what key to use to sign what commits if sign-my-commits made the correlation. So is bzr-gtk not using the same logic maybe?08:37
pooliethat's what i'm wondering08:37
AfCYes its does -> mine08:37
AfC[This is in the category of "I'd file a bug if I knew I wasn't doing something wrong and if I knew what to report"]08:39
pooliecould it be that your gpg key does not have a uid for precisely the same address that was used to make the commits?08:40
AfCHm.08:41
AfCYes, I guess that's the case.08:41
AfCbzr whoami : Andrew Cowie <andrew@operationaldynamics.com>08:41
AfCgpg --fingerprint ... : uid Andrew Frederick Cowie <andrew@operationaldynamics.com>08:42
AfCSo, like, the fact that `sign-my-commits` figured out what key to use is sorta damning as far as `visualize` is concerned, right?08:42
pooliewell, they should be consistent with each other08:45
AfCOr, put the other way, how on earth did `sign-my-commits` know what to use if it is going to be so pedantic as to try and match the stuff outside the email address?08:45
AfCyeah08:45
pooliei'd be inclined to say that sign-my-commits should complain if there's no key that corresponds to your committer address08:45
lifelessAfC: gpg has a default key for signing08:45
AfCWell, it's too late now. The testaments are made, and I'm sure not about to change my key.08:45
AfClifeless: ah, yes, I have that set.08:46
AfCpoolie: (though I point out that there IS a key that corresponds to my committer _email_ address. I had assumed that was what it looked up until Robert pointed out that maybe gpg did the default thing)08:47
luksAfC: well, it shouldn't sign somebody else's revisions with your key08:49
AfCI would hope not :)08:50
luksand as far as gpg is concerned, the uid was different so technically it's somebody else08:50
* luks would report a bug against bzr sign-my-commits08:50
AfC{shrug}08:50
* AfC hopes sign-my-commits keeps doing what it's doing, actually.08:50
AfCotherwise I won't be able to use it anymore.08:50
luksyou can have multiple uids on your key, can't you?08:51
poolieso, there is a separate key (not uid) that it's used instead?08:51
AfCluks: I've worked hard not to pollute my key. I'll keep it that way, thanks.08:52
luksok08:52
AfCpoolie: no, I only have one uid on one key.08:52
AfCpoolie: the email address of the uid matches `whoami`08:52
AfCHuh. My key is back into the top 100. How about that. Can't say as I've been doing _that_ many signings lately. I guess a bunch of keys must have expired.08:56
poolieafc, and it's the same uid as on the revisions?08:56
AfCpoolie: `bzr vis` reports key 57F6E7BD was used to sign the revisions. That is indeed me. Judging by what flew by when I ran `bzr sign-my-commits`, I'd say that my key was in fact used to sign, correlating what visualize is saying.08:58
AfCpoolie: The only crink in the works is that something is not recognizing that 57F6E7BD is me (or, more to the point, the same person as "Andrew Cowie <andrew@operationaldynamics.com>")08:59
poolieok, so it seems like there's a bug in bzr-gtk displaying that warning when in fact the key does correspond to the author08:59
sabdflwhen bzr tries to delete a directory during a merge or pull, it baulks if the directory is not empty09:56
sabdfldoes it factor in whether or not the files in question are "ignored"?09:56
pooliesabdfl: i think so; if not that would be a bug09:58
pooliehi btw09:58
sabdflhowdy!09:59
arnarlhi, we have a branch where a binary directory (about 30M) has been checked in (a while back) which makes the whole thing much larger than it needs to be. Is there any surgery I can do that drops this directory from the history and the branch?10:03
arnarl(it is not a public branch)10:03
pooliearnarl: you can use launchpad.net/bzr-rebase to make a new history in which "that never happened"10:03
pooliebut carrying across your later commits10:04
poolieyou'll have to get everyone to restart their work based on that branch10:04
arnarlpoolis: sounds great10:04
arnarlwhat do you mean by restart?10:04
arnarlcheck it out again?10:04
poolieyes,10:04
arnarlah, that shouldn't be a problem10:04
arnarlpoolie: thnx10:04
lllamaHello all. I'm trying to "bzr init" in an existing directory and I'm getting an error saying "No repository present". Any idea what I'm doing wrong?10:24
poolielllama: what does 'bzr info' show there?10:27
AfClllama: what version of Bazaar are you running?10:27
lllamapoolie: Same error10:32
lllamaAfC: 1.6.110:32
AfClllama: that's certainly reasonably recent.10:33
poolieis there a traceback?10:33
AfClllama: is there a .bzr directory in any parent directory above where you are trying to `bzr init`10:33
AfClllama: ?10:33
lllamapoolie: Nope. Just a "bzr: ERROR" line.10:33
lllamaAfC: checking....10:33
lllamaAfC: Ah. There is. There shouldn't be though.10:34
lllamaIf I do a bzr st in the parent then I get told it's not a branch.10:34
lllamasame with info.10:35
lllamaI'll try moving the .bzr dir out of the parent and see what breaks...10:36
lllamaHm. Same error. I think I'll try a big clean out.10:38
poolielllama: if pain persists can you look in ~/.bzr.log, see if there's a traceback at the end, and put it in answers.launchpad.net/bzr10:40
leo2007markh: sorry I won't be able to test the new BZR.10:43
lllamapoolie: will do. Thanks for the help.10:43
=== kiko-zzz is now known as kiko
=== Ng_ is now known as Ng
zrg_needsjobFolks, i got bzr-synchronized dev and live setups of php app.  Problem is, there are certain parts of few configuration files that have to differ on those installations, but leaving those files entirely out is not a good solution.  I was wondering if there was way to mark part of file to be "ignored" by bzr, or how is such situation best handled?11:56
james_wzrg_needsjob: that's not possible11:57
james_wzrg_needsjob: the usual ways are to have a .local file which is included in to the main one, if possible with the format11:58
james_wzrg_needsjob: or have a .template which is copied and customised in each branch11:58
zrg_needsjobjames_w: including unfortunately not possible but would be good solution, what do you mean by template?12:00
bob2zrg_needsjob: can you just merge only one way?12:01
james_wzrg_needsjob: the same file basically, but with blanks for the passwords or whatever. When you make a new branch you copy the file and make any changes necessary. It's a pain to update the common bits then though12:02
zrg_needsjobbob_2: there are occasional changes in live setup too that have to be backported and actually now i have 2 dev setups.  they all use same remote repository, so commits and updates go whichever way.12:04
=== jamesh_ is now known as jamesh
zrg_needsjobignore blocks would be cool feature tho i think :)12:06
uwsdoes trac-bzr work with trac 0.11?12:21
thropeis it possible to get colored difs with bzr?12:52
Odd_Blokethrope: Yes, look at the cdiff command in bzrtools.12:52
thropeOdd_Bloke: great - had it installed just didnt know the command, thanks12:54
=== jaypipes-afk is now known as jaypipes
=== kiko is now known as kiko-phone
nosklohi people13:51
nosklowhen using bzr-svn, how does one specify the username to authenticate?13:52
LarstiQnosklo: http://user@host/svn/... is one way13:52
trotekLarstiQ: is there another? :)13:55
LarstiQtrotek: yes, but it depends on what you are trying to do13:56
nosklowhen I do it. It segfaults :(13:56
nosklobzr-svn just segfaults, no traceback. http://dpaste.com/81664/14:00
=== kiko-phone is now known as kiko
jelmernosklo, what version of bzr-svn?14:07
=== thunderstruck is now known as gnomefreak
nosklojelmer, bzr 1.3.1, bzr-svn 0.4.914:08
nosklojelmer, ubuntu default14:08
jelmernosklo, 0.4.13 should work better14:08
nosklojelmer, okay. updating.14:09
awilkinsHeh, mercurial still can't cut it for my use case14:36
awilkinsIt still goes "boink" on long paths with lots of caps in them14:36
fullermdThey're getting way ahead of us.  bzr still doesn't even have a prototype "boink" feature   :|14:38
luksI'll try to make a plugin14:38
awilkinsI think I'd prefer "boink" to be written in Erlang, not Python14:39
awilkinsThat way you can work on other implementations of "boink" and replace them at runtime without interfering with other instances14:39
awilkinsAlthough doesn't stackless Python achieve that also?14:39
Odd_BlokeQuick, let's rewrite bzr in Erlang.14:39
fullermdTrue.  We could be the only VCS on the planet that supports massively-parallel boinking.14:39
Odd_BlokeOnly then can it be truly distributed version control.14:40
jamsabdfl, poolie: We don not factor in if the files are ignored. We don't know if they are ignored because they are private (your secret passwords) or because they are junk (your .pyc cruft)14:40
jamso when we delete a directory, it must be fully empty14:40
LeoNerd"boink" ?14:41
jamit is an open bug that we want to solve14:41
jamI think we were talking about putting things in a "lost+found" or something like that14:41
=== thunderstruck is now known as gnomefreak
=== toytoy_ is now known as toytoy
=== thunderstruck is now known as gnomefreak
=== jaypipes_mysql is now known as jaypipes
* fullermd contemplates being left in a darkened room with `log -v` and a blunt object.15:55
fullermdGaah.  Stupid inability-to-refer-to-historical-files bug!15:57
* fullermd stabbies.15:57
Pieterfix it16:00
davidmacI have had many clients that have asked the following question with many vcs's, any idea how to do with bzr?  Q: How do I export *only* the files changed since the last revision or a specific revision?16:01
davidmacThe idea is they only want to push the smallest set of changes when version production-type deployments.16:02
LarstiQdavidmac: use bzr-upload?16:02
fullermdYou could wrap a little scripting around 'stat' to do it, I s'pose.16:03
fullermdOr just use bzr diff | patch16:03
fullermdOr what LarstiQ said.  Depends on just what's involved in the deployment.16:03
davidmachmmm.  I'll check into that.  I don't think diff is the answer they want.  I'll explain deployment...16:03
davidmacJust an example:  They version production which has a lot of binaries: executables, images, etc. on linux and it is very large to do a full export from stage to prode.  They only want to export the changed binaries so they can zip them up and send them from stage.16:04
davidmacI'm new to bzr so I'll check in to bzr-upload and stat.16:05
LarstiQ'zip them up and send them from staging', is there some difficulty in getting something to production?16:06
davidmacYes, in many cases.  This specific client has that case.  They are in a hosting environment where they can make changes in dev and stage, but have to provide a tgz file when pushing to prod.16:07
fullermdHow does that handle deletions or moves?16:07
davidmacOps team doesn't want them sending the entire 2 gig file every time, just the changes files.16:07
davidmacIt doesn't handle deletions and moves, pretty problematic as I see it.  I'm encouraging them to use bzr in production too to export a tagged build.16:08
davidmacI was thinking as a temporary workaround, since they have control of stage, they could just do a find -mtime type of approach to create a zip.16:09
fullermdAnyway, wrapping some scripting around 'stat' to figure out what to export is probably the easiest way to work up a tarball.  Still won't do well at moves, or at all at deletions.  Dunno how you could do that easily.  shar, maybe.16:10
davidmacthx16:10
fullermdYou can use bzr stat -rx..y to see what files were touched between those revs, and go from there.16:10
davidmacvery kewl fullermd, I'll check that out16:10
davidmacOne more piece of advice I need, then I'll leave you guys alone :)16:10
fullermd(for scriptability, especially see stat -S)16:11
davidmacThis is the logical description of what they want to do:  They have a program.cfg config file for dev, same name but different contents for dev, also for prod.  How would you recommend they do an export and get only the correct config file in each environment?16:12
davidmacThey have done this with clearcase filters before.16:12
fullermdWell, I do similar things by having a dev.conf and a live.conf under version control, and just choose which is applied in each case by a symlink.  Whether that's an option in your environment...16:13
davidmack, anything is an option at this point, just looking for inputs in case there is some elegant semi-automatic way to do it in bzr.16:14
fullermdNot really.  What's versioned is what's versioned.  You could have the contents of the files be different in different branches, but that would take careful manual maintenance merging between them.16:15
fullermdI find it easier to just have the separate files, and have the program load a "conf.conf" or something that's a symlink to one or the other.16:15
fullermd(it also means I can craft up custom conf.conf files for certain places to have different settings, without having to worry about them being local changes not to commit)16:16
davidmacOkay, thanks.  And thanks for all your help.  I like what I've seen so far of bzr, so much that I'll probably start hacking some plugins or scripts myself, and maybe a ulipad integration :)16:16
davidmacy'all have a good one!16:18
=== thunderstruck is now known as gnomefreak
VerterokÂş16:44
Verterokups16:44
thropehi - I am using bzr-svn in what I think it the recommended way - I have a checkout of my svn trunk, which I branch to do work, then merge updates, then merge into my bazaar checkout and commit to svn16:48
thropethis is working great - it is really nice to be able to work with subversion in this way16:48
thropebut I loose all the information about the commits in the branch - in subversion I just see the merge commit16:48
Odd_Blokethrope: Check out the 'rebase' plugin.16:49
thropeI wondered if there is a better way of working - or perhaps a bazaar plugin to automatically propograte the commit message with some infromation about the seperate commits.16:49
thropeOdd_Bloke: I have the rebase plugin - but I must admit I have some trouble understanding what it does16:49
thropeOdd_Bloke: do you mean I should rebase my trunk bzr checkout before comitting16:50
Odd_Blokethrope: I'm not entirely sure myself, I don't use it.  But you should 'rebase' your branch onto the trunk.16:50
thropeno - you mean rebase my branch to the trunk checkout before merging (then I could push in theory) back and committing to svn16:50
Odd_Blokethrope: Yes.16:51
Odd_BlokeThat essentially throws away the commits in your branch and creates new, similar ones based on a different revision.16:51
throperight I think I get it16:51
Odd_BlokeWhich is fine, so long as you haven't branched from the commits that are being thrown away.16:52
thropeI didn't want that initially because it's nice to have the branch structure in my bzr trunk, but I loose it in svn. If I do the rebase, I have all the commits in svn (and my bzr trunk) but I loose the branch structure in my trunk16:52
Odd_Blokethrope: Why are you using SVN?16:53
Odd_BlokeYou could perhaps push your branches to SVN branches...16:53
Odd_Blokejelmer will know better.16:53
thropepartly habit, got all my stuff in there at the moment, partly because it's easier to work with other people and has nice things like viewvcs16:53
Odd_Blokethrope: For the latter, have you seen Loggerhead?16:54
thropealso I didn't quite figure out how to have a central bazaar repo that works like svn - I work on a lot of different machines and use svn to keep them in sync16:54
LarstiQthrope: bzr-snv will set the meta data so at least the bzr revisions will be known, even if you only see the merge commit in svn16:54
thropeok16:54
jelmeryou can set push-merged-revisions in newer versions of bzr-svn16:54
Odd_BlokeLarstiQ: But the bzr revisions won't be pulled into a new branch, you'll get ghosts, right?16:54
jelmerand it'll push the merged revisions as well, not just the mainline16:54
Odd_Blokejelmer: So, to answer my own question, 'no'?16:55
LarstiQOdd_Bloke: right, but you could distribute your bzr branch for other bzr users to pull from, or apparently set push-merged-revisions ;)16:55
thropeOdd_Bloke: I had a look at loggerhead and will try and install it - but it wasn't clear to me how to run a centralised bzr branch on a remote server... If I understand to update I need to merge 'into' that central branch to maintain the mainline - which would require logging onto the server... I couldn't see anyway to push a merge and resolve conflicts remotely16:56
Odd_Blokethrope: The way to do it is to keep a pristine copy of the branch locally.16:57
Odd_BlokeSo you merge into the pristine copy and push from there.16:57
Odd_Blokethrope: If you've been doing that and it hasn't been working, something's going wrong somewhere along the line.16:58
thropeOdd_Bloke: no I haven't really tried because everythings in svn at the moment anyway... I will have a look though16:59
thropejelmer: where do I set push-merged-revisions?17:00
jelmerthrope, in ~/.bazaar/subversion.conf for the relevant repository17:01
thropeok thanks17:01
jelmerthrope: s/push-merged-revisions/push_merged_revisions/17:01
=== kiko is now known as kiko-fud
alejandro_hey, I have a question about the eclipse plugin17:37
Verterokalejandro_: shoot :) (I'll try to answer)17:38
alejandro_I just installed the plugin using the update site17:39
Verterokalejandro_: ok, did you installed the bzr-xmloutput plugin?17:40
alejandro_and in the preference/configuration dialog I get "invalid command 'xmlversion'"17:40
alejandro_yes17:40
alejandro_0.817:40
Verterokalejandro_: which OS? windows?17:40
alejandro_ubuntu17:40
Verterokalejandro_: from a terminal, try: bzr -Derror xmlversion17:41
Verterokalejandro_: it seems that the xmloutput plugin is not correctly installed17:41
alejandro_I just dropped it at $HOME/.bazaar/plugins and ran setup.py build_ext -i17:43
alejandro_should that produce any output?17:43
Verterokalejandro_: the plugin must be installed as xmloutput, not bzr-xmloutput17:44
Verterokbzr-xmloutput is an invalid name for a python module17:44
alejandro_oh, that could be17:45
Verterokalejandro_: also the setup.py step is not neccesary :). it's a pure python plugin17:45
alejandro_great, it works now. Thanks a lot17:48
thropejelmer: is there anywhere I can find info on the format of subversion.conf - how to specify repositories etc.17:48
Verterokalejandro_: np17:51
aantnhello17:57
aantnis it possible to set bzr to automatically ignore certain files with bzr add?17:57
LarstiQaantn: bzr add will ignore files that match patterns, see `bzr ignore`17:58
aantnLarstiQ: I know17:58
aantnI'd like to set it to always ignore two or three files of my choice17:58
LarstiQaantn: ok, then I don't understand your question?17:58
LarstiQaantn: ah, globally, and not on a per branch basis?17:59
aantnLarstiQ: no, just per branch17:59
* LarstiQ swings back to not understanding the question17:59
aantnLarstiQ: sorry, never mind17:59
aantnLarstiQ: I misread your initial answer. Thanks :)18:00
LarstiQaantn: ah, ok :)18:00
=== doomster__ is now known as doomster
=== mw____ is now known as mw|food
thropeI had to leave earlier - does anyone know where I can get some info on the format of the subversion.conf file for bzr-svn?18:34
sharmsIf I did a bzr co on a remote branch, how can I make that checkout be the master instead?18:53
justizinhi folks, i downloaded the bzr 1.7 installer for leopard, but the only bzr i can find is in /usr/local/bin, from macports..18:53
LarstiQjustizin: are you sure it's from macports?18:54
LarstiQjustizin: as that is also the location the .dmg uses afaik18:54
=== kiko-fud is now known as kiko
LarstiQsharms: `bzr unbind` will make the checkout into a regular branch. Do you also want to switch the remote branch to be a checkout of your local one? In that case, do a `bzr bind path/to/new/master`18:55
sharmsthanks!18:55
thropejustizin: macports normally uses /opt/local18:55
justizinLarstiQ: FYI, its' an FHS violation.18:55
justizini have something in /usr/local, but yah, it's probably overwritten without consent. ;)18:55
LarstiQjustizin: FHS, on OSX?18:55
justizinFHS is not Linux, it's UNIX18:55
justizinif you use OSX's installer facilities, it's like using rpm, which counts as "vendor installed", and goes in /usr18:56
LarstiQjustizin: All I know is that the .dmg switched from /usr/bin to /usr/local/bin18:56
justizinright on, good to know, it's a pain in the ass because it's not on path, and yes, whether anyone cares, it's an FHS violation18:56
* justizin memorized the FHS in high school18:56
LarstiQjustizin: you'll have to take it up with someone who actually knows anything about it to know why though18:56
justizinthanks for the heads up18:56
justizinyeh18:56
justizinthey wont want to hear it18:57
* justizin symlinks18:57
justizin:)18:57
LarstiQookay18:57
Keltiauh, FHS is not really a UNIX thing, it started as a pure linux thingy and some people tried to extend it to others but it has never really taken off outside linux18:59
* Keltia goes back to lurk mode18:59
=== kiko is now known as kiko-phone
Odd_BlokeYeah, but people who use free software on the Macs feel they have to make up their inferiority somehow. ;)19:00
=== Spaz is now known as Kittens
KeltiaOdd_Bloke: I'm one of them :)19:25
Odd_BlokeKeltia: :D19:36
=== mw|food is now known as mw
komputesIf I see a file that is part of a bzr branch, is there a simple way that I can track down who added that specific file?19:53
fullermdlog it and keep scrolling back?19:53
fullermd(or log --forward it and don't scroll, of course)19:54
Peng_"log --forward -l 1" maybe?19:58
=== bac is now known as bac_afk
=== kiko-phone is now known as kiko
guilhembi_jam: hi! I wonder if you saw this: today when I "make" bzr.dev (linux gcc), I get lots of compiler warnings, and the resulting bzr segfaults on simple "bzr branch" (no problem if no "make"); no problem with bzr-1.7-rc1.20:31
jam guilhembi_: hmmm. I certainly haven't seen that20:32
guilhembi_I re-tried with a fresh branch of bzr.dev, same problem. Seems to have been recently introduced...20:32
jamare you on 64-bit or 32 bit20:32
guilhembi_jam: 32; I'm diff-ing some c files like _btree_serializer_c.c (lots of warnings),20:33
guilhembi_and it's really different between bzr.dev and 1.7.1-rc1:20:33
jamguilhembi_: so my *guess* is an issue with Py_ssize_t and int, but 32-bit shouldn't matter20:33
guilhembi_for example, 1.7.1-rc1 starts with20:33
guilhembi_Generated by Pyrex 0.9.6.420:33
guilhembi_and bzr.dev starts with Generated by Pyrex 0.9.4.120:33
jamwell, that is *your* pyrex version20:34
guilhembi_then lots of code difference in this C file.20:34
jamI tend to build with 0.9.820:34
jamguilhembi_: but it is generated from the _btree_serializer_pyx.pyx20:34
guilhembi_But still, I had no issue the previous time I did "make" in bzr.dev, which was only a few weeks ago...20:34
=== mvo_ is now known as mvo
jamguilhembi_: sure, I'll email you a "current" form for all of them, and see if that fixes it20:37
jamwe certainly could have done something that broke pyrex 0.9.420:37
Peng_Hmm, I'm on 0.9.51a-1 without problems.20:38
Peng_5.1*20:38
jamguilhembi_: also, btree_serializer shouldn't be the problem, as I doubt you are using a btree repo yet20:43
guilhembi_jam: other files give lots of warnings:20:43
guilhembi_bzrlib/_knit_load_data_c.c20:43
guilhembi_bzrlib/_dirstate_helpers_c.c20:43
guilhembi_bzrlib/_readdir_pyx.c20:43
guilhembi_eof20:43
guilhembi_jam: I'll just upgrade my pyrex20:44
guilhembi_and see if it helps20:44
jamjust make sure you "make clean" first20:46
guilhembi_yes20:46
guilhembi_jam: that's funny: "make clean" does not remove bzrlib/_btree_serializer_c.c20:47
guilhembi_shouldn't it?20:47
jamyeah, it is just hard to do arbitrarily, as we have some .c files that need to be kept20:48
guilhembi_jam: ok, so better re-branch...20:48
jamguilhembi_: well "rm bzrlib/*.c ; bzr revert" works, too20:48
Peng_Or bzrtools's clean-tree command may help20:49
guilhembi_jam: ok, my too old pyrex was the cause, sorry for eating your time20:49
jamguilhembi_: not really, we still need to know what we did20:50
jambecause unless necessary20:50
jamwe'd like to support older versions20:50
stefanlsdIs it safe to delete obsolete_packs20:50
jamstefanlsd: not the directory, but everything *in* the directory, yes20:51
jambbiab, need to reboot20:51
stefanlsdjam: k. thanks20:51
mwhudsonbeuno: have you looked at the loggerhead breadcrumbs bug?20:56
Peng_Which bug?20:57
mwhudsonthe same one20:57
mwhudsonabadger1999 has been having fun20:57
Peng_Oh20:57
beunomwhudson, not yet. Do you have a number handy?20:57
abadger1999mwhudson: heh.  "fun" heh.20:57
abadger1999:-)20:57
mwhudsonbeuno: https://bugs.edge.launchpad.net/loggerhead/+bug/26886720:58
ubottuLaunchpad bug 268867 in loggerhead "Breadcrumbs ignore PrefixMiddleware" [Undecided,In progress]20:58
jamguilhembi_: We might just open a bug about bzr.dev not supporting pyrex 0.9.4, but if you could include any of the errors, .c files, etc it would be helpful20:58
beunomwhudson, I merged that into trunk already20:59
guilhembi_jam: where should I put the errors?20:59
beunomwhudson, https://code.edge.launchpad.net/~toshio/loggerhead/breadcrumb20:59
mwhudsonbeuno: um, there is more20:59
jamguilhembi_: well, as attachments when possible20:59
beunomwhudson, ah?  sorry, didn't look into it that deep21:00
guilhembi_jam: ok if you open the bug report, I'll attach my errors. Or do you want me to open the bug report?21:00
mwhudsonwell, abadger1999 commented yesterday complaining about r22721:00
jameither way, I don't have much to go on from my side, though21:00
abadger1999mwhudson: Yeah.  the original branch that was merged fixed things for start-loggerhead and my mod_wsgi script.21:01
beunomwhudson, ah, I see.21:01
mwhudsonabadger1999: does https://code.edge.launchpad.net/~toshio/loggerhead/mod_wsgi fix the problems you've been having?21:01
abadger1999mwhudson: But by r227, those were broken and only serve-branches worked.21:01
abadger1999mwhudson: yes... I'm toshio :-)21:02
beunoah!  hi abadger1999!  :)21:02
beunothanks for the fixes21:02
mwhudsonabadger1999: yes, i've figured that much out :)21:02
abadger1999beuno: No problems :-)21:02
* beuno re-assigns the bug to abadger1999 21:03
mwhudsonAmanicA: thankks for the python2.4 branch :)21:03
abadger1999hah :-)21:03
* beuno is *very* happy to see Loggerhead getting more and more contributions21:03
abadger1999Ugh.21:05
=== jfroy|work is now known as jfroy
abadger1999okay, that branch doesn't fix my problems because I pushed mod_wsgi code to it.21:06
guilhembi_jam: https://bugs.launchpad.net/bzr/+bug/27686821:06
abadger1999which has a merge to trunk at some point21:06
ubottuLaunchpad bug 276868 in bzr "bzr.dev does not support pyrex 0.9.4.1" [Undecided,New]21:06
abadger1999So here's the relevant line in what was the branch:21:08
abadger1999<tal:block repeat="crumb directory_breadcrumbs"><span tal:condition="not:repeat/crumb/start">/</span><a tal:attributes="href python:url([crumb['suffix']])" tal:content="crumb/dir_name" /></tal:block>21:08
abadger1999specifically: href python:url([crumb['suffix']])"21:08
abadger1999mwhudson: But at some point after my branch was merged you commited a change with this:  href python:static_url('/'+crumb['path'])"21:10
AmanicAmwhudson cool21:11
abadger1999the comment is: "fix breadcrumbs, maybe"21:11
mwhudsonabadger1999: ah yes21:11
mwhudsonhmm21:11
abadger1999I don't know TAL very well (first exposure to it) so I don't know what the practical difference is.21:12
mwhudsoni'm not sure that breadcrumbs make much sense when using start-loggerhead ...21:12
abadger1999Hmm... That could be.21:12
mwhudsoni guess i should write myself a loggerhead.conf and see what happens21:12
jamguilhembi_: thanks for reporting it. I wish there was more info. But I believe 0.9.4 could easily cause compiler warnings, so that isn't a strictly obvious problem.21:13
jamstuff like the "declared static but not used" I remember being in older versions of pyrex21:13
abadger1999mwhudson: Here's mine for reference: http://toshio.fedorapeople.org/loggerhead.conf21:14
abadger1999I've been playing with server.webpath.  Normally it's uncommented.21:14
Peng_Yeah, I get a lot of warnings with 0.9.5.whatever, but no actual problems.21:15
guilhembi_jam: if this bzr.dev/pyrex cannot be fixed, maybe one can add something like "require pyrex_version >=x.y.z" to "make".21:23
guilhembi_opensuse 10.2 is from end of 2006, upgrading pyrex is imaginable.21:24
guilhembi_(that's my distro).21:24
jamguilhembi_: well, we try to support back to python2.4, so whatever was around in that era21:25
jamthough for *packaged* versions21:25
jamwe always bundle the .c files directly21:25
jamso it doesn't matter what version of pyrex you have21:25
guilhembi_jam: so, maybe:21:26
guilhembi_"if .c file is missing, require pyrex_version >=x.y.z" in "make"...21:26
guilhembi_if someone uses bzr.dev he may/should accept having recent tools, I believe we require that in MySQL.21:27
guilhembi_we do for m4/automake/autoconf.21:27
jamguilhembi_: do you still have access to the older code?21:27
jamI'm curious what you would get with21:27
mwhudsonhm, a url like http://localhost:8080/None/static/images/ico_branch.gif seems suspicious :)21:27
jambzr revert -r 373121:28
jamas one of the last changes is:21:28
jam 3732 Canonical.com Patch Queue Manager2008-09-24 [merge]21:28
jam      (robertc) Allow C extensions to build on python2.4 with older pyrex21:28
jam      versions. (Robert Collins)21:28
jamguilhembi_: what version, btw, 0.9.4, or 0.9.4.1?21:30
jamand what version of python?21:31
* mwhudson stabs ff21:31
guilhembi_jam:21:31
guilhembi_Python 2.5 (r25:51908, Nov 27 2006, 19:14:46)21:32
guilhembi_pyrex was 0.9.4.1-2521:32
guilhembi_but I upgraded it, I don't have it around, I can see to restore it...21:32
jamwell, I don't know Suse's packaging system very well anymore21:32
jamyou *could* rm /usr/lib/python2.5/site-packages/Pyrex and then install from scratch, but I'll try doing that here first21:33
guilhembi_jam: wait, I started21:34
guilhembi_removed 0.9.8, reinstalling 0.9.4.1...21:34
jamwow, *lots* of exceptions with 0.9.4 and python2.421:35
stefanlsdhow can drop a commit revision? i  tried revert, but not exactly what i want.21:36
guilhembi_jam: "bzr branch -r3731" still warnings and segfault21:36
jamjust a sec, I'll give you another node to check21:37
Peng_stefanlsd: If you want to remove the most recent revision(s) from history, use "bzr uncommit".21:37
jamyou say that 1.7 series works21:37
guilhembi_jam: 1.7.1-rc1 yes21:37
guilhembi_jam: but 1.7 source package!21:37
jamsure21:37
guilhembi_which has the .c built with canonical's pyrex, more recent than mine.21:37
stefanlsdPeng_: thanks. that was it21:37
jambut haven't you been using bzr.dev for a while?21:37
jamor you just haven't done 'make' in a while?21:38
jamwell, *my* compile issues for 2.4 were because of a missing Python.h :)21:39
jamno wonder it wasn't working21:39
guilhembi_jam: I hadn't done "make" since a few weeks.21:40
jamk, I still have some thoughts21:41
guilhembi_jam: wait21:41
guilhembi_jam: I read wrongly:21:42
guilhembi_with -r3731, warnings but no segfault21:42
jamguilhembi_: so there is still a question, did the extensions actually *build* correctly21:44
jamdo you have all of the .so files that we might expect21:44
guilhembi_jam: wait21:44
guilhembi_with -r3731, warnings but no segfault21:44
jamit is possible it doesn't segfault because it doesn't finish compiling21:44
guilhembi_with -r3757, warnings but segfault21:44
guilhembi_s/but/and/ .I'm doing dichotomy21:44
jambisection, I would say :)21:45
guilhembi_from the messages, it finishes compiling21:45
mwhudsonabadger1999: um21:45
guilhembi_mmm in my maths lessons, "dichotomie" (in French) was looking at a and b, then (a+b)/2 and (a or b), etc.21:45
abadger1999mwhudson: yes.21:45
guilhembi_3732 is ok21:46
mwhudsonabadger1999: your rearrangement of interpreting the 'potential_overrides' values from the config file is broken21:46
guilhembi_3745 broken, continuing21:46
abadger1999mwhudson: k.  I nthe latest mod_wsgi branch?21:46
jamwell 3738 is suspicious21:47
mwhudson        value = keytype(config.get(key, default))21:47
mwhudson        if value is not None:21:47
mwhudson            parsed_conf[key] = keytype(value)21:47
jam3739 is too21:47
guilhembi_jam: 3738 ok21:47
mwhudsonif keytype is str and default is None...21:47
guilhembi_3741 broken21:47
guilhembi_3739 broken21:48
=== thrope_ is now known as thrope
guilhembi_jam: 3739 introduced the problem.21:48
guilhembi_the segfault.21:48
jamyeah, that was a big code drop21:49
abadger1999Yeah... that's broke.21:49
* abadger1999 looks at what was there before21:50
jamguilhembi_: so... new code breaks older compiler. Not entirely surprising :)21:51
jamI just wish we had more to go on as to *why* the segfault occurs21:51
jamI'll see if I can reproduce here21:51
jamand maybe I can get a gdb traceback21:51
jamcrap21:52
jamit seems you can't have multiple versions of pyrex installed side-by-side21:52
abadger1999        value = config.get(key, default)21:52
abadger1999        if value is not None:21:52
abadger1999            parsed_conf[key] = keytype(value)21:52
jamthere is only one /usr/bin/pyrexc21:52
abadger1999mwhudson: That better? ^21:52
mwhudsonabadger1999: maybe21:53
mwhudsonvalue = config.get(key)21:53
mwhudsonif value is not None:21:53
mwhudson parsed_conf[key] = keytype(value)21:53
mwhudsonelse:21:53
mwhudson parsed_conf[key] = default21:53
mwhudson?21:53
abadger1999mwhudson: That works.  I might do keytype(default) as well... it shouldn't hurt if default is already an int or a str21:55
abadger1999but it will protect us if someone set '10' instead of 10.21:56
abadger1999(OTHOH, it might break on non-simple types.)21:56
mwhudsoni don't think it's worth worrying about being very generic here21:56
abadger1999k.21:56
jamguilhembi_: segfault :)21:56
jamSegfault at bzrlib/_dirstate_helpers_c.c:778521:57
lifelessmoin21:58
jamlifeless: morning. Seems that the compiled iter_changes breaks on pyrex 0.9.4 with a segfault21:58
mwhudsonabadger1999: can you commit/push that change, then i'll get back to digging?21:58
lifelessjam: fun21:58
jamanyway, I'll be back in a few minutes21:58
abadger1999k21:58
jamlifeless: it works fine with pyrex 0.9.6 and 0.9.821:58
jamSo i'm trying to figure if it is a simple fix21:58
jamor if we just make a dependency for running from source21:59
lifelessjam: hmm, isn't dapper 0.9.4 anyhow?, if so it worked on pqm ...21:59
guilhembi_jam: ok, it seems you have good insight now, I'll head to bed.21:59
lifelessno, feisty has it though22:00
jamlifeless: I was able to reproduce it with a local install and some creative PATH settings, so I'll poke at it for a while22:01
abadger1999mwhudson: Which branch are you pulling from?22:01
mwhudsonabadger1999: ~toshio/loggerhead/mod_wsgi22:02
thumperare there any pre-canned presentations about bzr that I can pillage for a 15 minute talk I'm giving to a PUG?22:02
abadger1999mwhudson: Cool. It's pushed.22:02
lifelessthumper: PUG?22:03
beunothumper, http://bazaar-vcs.org/Talks22:03
thumperlifeless: python user group22:03
lifelessoh lol :P22:03
thumperbeuno: thanks22:03
lifelessclearly I've been playing too much wow - I was thinking 'pick up group?' surely not.22:04
thumperlol22:05
jfroyWhat is the proper way to install Bazaar plugins system-wide? I'm having an issue where on a stock Leopard system, easy_install bzr bzr-svn results in a functional bzr install, a successful installation of bzr-svn, but the plugin doesn't get found (e.g. there are no load failures either, it's just not found).22:41
lifelessjfroy: wherever 'python -c import bzrlib.plugins; print bzrlib.plugins.__path__'22:42
lifelessjfroy: is where they should go; I'm not sure on the right way to install bzr-svn though22:43
=== `6og is now known as Kamping_Kaiser
jfroyAh, it seems bzr-svn doesn't install itself properly, or rather this is probably a setuptools issue22:44
noskloI checked out a svn repository by using bzr checkout. Made a small change in a file, and now I want to commit. Repository uses simple http auth on apache. Why doesn't it work? It works fine with svn.22:44
lifelessmwhudson_: are you aware of any downsides to putting a proxy object in sys.modules?22:44
jfroyls -l /Library/Python/2.5/site-packages/bzr_svn-0.4.13-py2.5-macosx-10.5-i386.egg/22:44
jfroydrwxr-xr-x  3 root  admin  102 Oct  1 14:30 bzrlib22:44
=== mwhudson_ is now known as mwhudson
jfroyit installs as an egg22:44
mwhudsonlifeless: not really22:44
noskloit never asked for my password http://dpaste.com/81778/22:44
jfroy(And so does bzr: /Library/Python/2.5/site-packages/bzr-1.7.1rc1-py2.5-macosx-10.5-i386.egg/bzrlib/plugins)22:45
jfroyAlthough bzr seems to be smart enough to add site-packages/bzrlib/plugins to its plugin import path as well22:45
lifelessnosklo: have you read te FAQ I think it talks about auth22:46
jfroyIn general, is it recommend to use easy_install for plugins (apparently there are issues), or should one generally download them and run the standard setup.py (that may not even address the issue).22:46
lifelessjfroy: I am of the 'easy install is a broken concept' school; other than digging into what-why-and-how of eggs to decide I really do dislike them, I don't ever use the egg-and-related facilities22:47
lifelessjfroy: thus my recommendation will always be to use bzr's setup.py, and ditto bzr-svn's setup.py22:48
nosklolifeless, hmm, can you point me to it? is it this faq http://samba.org/~jelmer/bzr-svn/FAQ.html here? can't find it.22:48
jamlifeless: so... as near as I can tell it is just a buggy pyrex that would be really hard to work around22:48
jam(for the 'fails with pyrex 1.4.1 stuff)22:48
lifelesspatches from users of easy_install are welcome, as long as they don't degrade support for non-easy-install environments22:48
jamIt is re-using a variable22:48
jfroylifeless: noted. I will agree with you there are issues with setuptools, but easy_install is truly useful as a Python package manager of sort. Until a better solution is developed...22:48
jamand sometimes setting "pointer = 0" and using PY_XDECREF22:48
jamand sometimes using PY_DECREF22:49
lifelessjfroy: macosX? fink|maxports|the packaged bzr installer22:49
jamand it is failing because it is using PY_DECREF when it should be using PY_XDECREF22:49
lifelessjam: uhg22:49
jfroyJust this morning, I had to hack some of the guts of setuptools because its zip unarchiver didn't restore UNIX mode bits when installing an egg, and I had UNIX executables as package data that wouldn't run after installation (obviously)22:49
lifelessnosklo: oh, its changed; uhm22:50
jamlifeless: so I get the feeling that if we want to support 1.4.1, we just need to create smaller functios22:50
lifelessjelmer: ^ haaalp22:50
jamfunctions22:50
lifelessjam: 1.4.1 ?22:50
jamlifeless: sorry pyrex 0.9.4.122:50
lifelessjam: :P22:50
jfroylifeless: that's general a good solution; however, unfortunately, there is no easy way to install or manage python packages using MacPorts while using the system's interpreter22:50
jamIt seems to just be something it runs into when a function is complex enough22:50
lifelessjam: can we blacklist that version or something?22:50
jamlifeless: sure, we can do it as part of setup.py I believe22:51
lifelessjfroy: oh, ah well22:51
jfroyAnd I need the system's interpreter because I heavily use PyObjC import packages for system frameworks22:51
jamwe can look at Pyrex.Compiler.Version or somesuch22:51
jfroymmm, it may be a worthwhile idea to see if a bzr install-plugin command / plugin would be useful to assist in installing plugins22:52
lifelessjfroy: ok; well like I say, happy to review patches to work better in that environment; you might like to look at 'bzrlib.plugin' to see how the 'load plugins' code works22:52
* jfroy add item to TODO22:52
jamlifeless: either that, or it is this bugfix22:53
jam  - Temporary vars used by del statement not being properly     released, sometimes leading to double decrefs. [Jiba]22:53
jfroylifeless: I think, unfortunately, that it's not a Bazaar issue, but a plugin packaging issue, e.g. I've seen plugins install in various different ways based on weather they use setuptools or plain distutils, and how their setup.py is configured. It's somewhat of a mess...22:53
jambut the "del" statements I see aren't near where it is segfaulting22:53
jfroy*whether22:53
lifelessjfroy: actual install for plugins is really just their setup.py; this works very well in  other environments; it *sounds* like failing introspection23:03
jfroylifeless: yeah it's setuptools' doing. Bazaar just doesn't scan eggs on the path for plugins. The "fix" would be to have bazaar scan every entry in sys.path for "bzrlib-plugins/" as a subdirectory of every entry, making sure that's not an actual package, and then adding that as a plugin import path23:13
jfroylet alone refactoring the plugin code to support importing from potentially a virtual directory, e.g. if the plugin was installed as a zipped egg23:14
jfroySounds like a lot of work that's not really worth the trouble :|23:14
jamjfroy: it isn't worth some of our time, but it may be worth it for others23:17
jamif people really need to use setuptools to install everything23:17
jfroyjam: it's not an issue for people comfortable with Python, but in a situation (such as mine) where you'd like to promote adoption of Bazaar, it does help to be able to tell people to just "sudo easy_install bzr bzr-svn ..."23:18
jfroyOne liner install instructions are A Good Thing™23:18
jamjfroy: well, if they have "easy_install" available23:19
jfroyNo matter how flawed the underlying install mechanism may be...23:19
jamapt-get install bzr works well here23:19
jfroyjam: quite true...23:19
jamor "start bzr-setup.exe"23:19
jamdepending on your platform23:19
jfroyI'm mostly concerned with Mac OS X. MacPorts is certainly viable in a lot of cases.23:19
jfroyBut not in mine :(23:20
jfroyI should get in touch with the maintainer of the 10.5 Installer package to help improve it.23:22
jamjfroy: sure, I know I'd certainly appreciate the help in getting things packaged everywhere23:36
Verterokjfroy: I usually build the 10.4 installer, what improvements to recommend?23:43
Verterokah, mornin' all23:43
jfroyVerterok: I just sent an email to Szilveszter Farkas, I can forward it to you.23:44
Verterokjfroy: that would be nice, I know the installers are a bit different, but I'ld like improve it23:45
jfroyThe 10.4 installer actually offers more plugins than the 10.5 one (bundling loom would be nice), but the critical one is bzr-svn (in my case).23:45
Verterokjfroy: right, I'm working to include bzr-svn in the 10.4 installer, but I'm fighting with PackageManager to include both versions (for 1.4.x and 1.5.2)23:46
Verterokjfroy: actually, buidling a mpkg for bzr-svn is quite easy23:47
jfroyThe maintainer for the 10.5 package recommends using bdist_mpkg23:48
Verterokjfroy: yeap, I use that. just need to patch the setup.py to use setuptools instead of distutils23:49
=== jam changed the topic of #bzr to: Bazaar version control system | http://bazaar-vcs.org | bzr-1.7.1 now available! | http://irclogs.ubuntu.com/ | http://planet.bazaar-vcs.org/
mxpxpodI'm using bzr-svn version 0.4.13 and I'm trying to branch an svn repo without using svn+ in the URL (since it's deprecated), but when I do that, it tells me that authorization is required... how do I get around that?23:52
Verterokjfroy: and to build it run something like: http://rafb.net/p/qlHJMT35.html23:55
jfroyVerterok: it dies on me, fails to find the nidump command23:56
jfroylooking at the source right now23:56
jelmermxpxpod, that's a known bug23:57
Verterokjfroy: I have it at /usr/bin/nidump23:57
jfroyThat sounds like one of the old netinfo tools23:57
mxpxpodjelmer: any fix?23:57
jfroyVerterok: they're gone on 10.5 :p23:57
jelmermxpxpod, for now please just use svn+  until that bug is fixed23:57
mxpxpodjelmer: ok, thanks23:57
Verterokjfroy: setuptools is trying ot use it?23:58
jelmermxpxpod: bug 25661223:58
ubottuLaunchpad bug 256612 in bzr "should handle 401 (unauthorized) response" [Medium,Triaged] https://launchpad.net/bugs/25661223:58
mxpxpodjelmer: thank you23:58
pooliehi jelmer, all23:58
jfroyVerterok: it's used by bdist_mpgk.tools.get_gid()23:59
jampoolie: morning. Can you call the house today for the standup? Or my cellphone23:59
jelmerhi poolie, Verterok, jfroy, jam23:59
pooliesure23:59

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