/srv/irclogs.ubuntu.com/2010/05/03/#bzr.txt

thumperhow do I cat a file at a particular date in history00:20
thumperwhere that file may not be in the branch now00:21
lifelessbzr cat -r revspec filepath00:26
lifelessyou can use bzr ls -r revspec to find files present there00:27
lifelessthumper: ^00:28
thumperlifeless: thanks, I kinda figured that out on my own :)00:29
spivGood morning.00:57
pooliethumper: cat -rdate:2010-01-01 file01:11
pooliei think so?01:11
thumperpoolie: yeah, thansk got that01:11
pooliesorry, i didn't see the scrollback01:11
pooliethumper: export -r REV FILENAME may do it?01:12
thumperI just used cat01:12
thumperand ls to find the name of the file01:12
thumperthat had been remvoed01:12
meoblast001hi02:06
meoblast001i'm having a problem02:06
meoblast001i'm trying to get the contents of a file named src/renderer.cpp at revision 3002:07
meoblast001wait, hm, i think i just figured it out02:07
meoblast001ah, nevermind, guess i was doing it right02:07
rubbsmeoblast001: if you still need help I'm here.02:11
meoblast001ah, i had the file name wrong :P02:11
meoblast001it was crenderer.cpp02:11
meoblast001bzr cat src/crenderer.cpp -r3002:12
rubbscool :D02:12
poolielifeless: when you say "a rewrite rule for squid"02:24
pooliethis is a rule that says when squid gets request X, it should actually serve and cache the URL f(X)?02:24
lifelessyes02:26
lifelessthis can take two forms02:26
lifelesssquid can return a 30x to the client, so the client makes a new request02:27
lifelesssquid can make the new request itself, and returns the result of that request02:27
lifelessits the latter form I'm suggesting02:27
pooliehow will squid know which revid to request?02:28
lifelesswe'd write a small redirectory02:28
lifelesss/y//02:28
lifelesswhich would take urls in, and do the work to decide what url should be used instead02:29
poolieok, so this would be a subprocess of squid that knows how to interpret bzr branches?02:29
lifelessyes02:30
lifelesssquid would run a few of them up02:30
pooliehm02:30
pooliewhy not just use an etag to let loggerhead verify the revno page still shows what squid has got cached?02:30
lifelessbecause revno pages are less stable, by being revid keyed we can cache the output of diff/status etc operations for weeks or months with low risk02:31
lifelesswe may well use an etag *too*02:31
lifelessbut thats for a different problem02:31
pooliehm02:32
pooliethis seems a bit duplicative02:32
pooliebetween the redirect helper and what loggerhead does02:32
pooliei think there is probably simpler fruit first02:32
pooliesuch as just getting a squid at all :)02:33
lifelessthere is overlap02:35
lifelessthe benefit is that once a revno->revid mapping is established, no further hits will reach loggerhead for that revno for [mapping cache time]02:36
lifelessand further, mapping and rendering are decoupled, so that we don't have expensive rendering logic happening much either02:37
pooliehm02:42
poolieif there's a cache time on this, isn't it just equivalent to saying that revno urls are simply cacheable for that period?02:42
pooliewell, i guess in the case where it misses we'd be doing a lookup in the branch to see if the mapping is still true02:43
lifelessright02:43
lifelessand the cache time is in squid02:43
lifelesswe can invalidate it by an api call when the branch has a revno change02:43
lifeless[in principle; that might not be as no-brainer as the basic stuff]02:43
poolieoh there's an external api to squid to say "drop X"?02:44
lifelesseys02:44
poolieok02:44
lifelessseveral02:44
pooliei guess you need to determine all possible affected urls02:44
lifelessbut possibly not for the particular mapping we're talking about02:44
lifelesstheres also a lightweight 'is this still valid' api using a helper and rss stuff that yahoo built02:45
lifelessI don't know if we've integrated that upstream properly yet.02:45
lifelessthe takeaway though is - some infrastructure in squid, policy in bzr, win.02:45
lifeless:P02:45
lifelessI'll reach st leonards on the 1:05 trani02:45
pooliehm02:46
pooliecan you defer that02:46
pooliei need to do some errands for stephane before i leave02:46
lifelessthe train? sure. or I can hack-in-sunshine if the deferral is minor.02:46
lifelessI'm coming from mount colah, so outside the high frequency train zone02:46
lifelessok -> train03:13
poolienice mail there03:21
pooliehi spiv?03:57
spivHi poolie.04:46
parthmI am thinking of landing the approved mp https://code.launchpad.net/~jbowtie/bzr/fix-515660/+merge/24290 using ./feed-pqm05:42
parthmis there anything i need to consider or is it simply a matter of running the ./feed-pqm command?05:43
* parthm hasn't done this before.05:43
spivparthm: are you asking about how to use feed-pqm, or about our policies about what proposals are ready to land?05:47
parthmspiv: more about how to use feed-pqm. I am assuming that the proposals that show us as "ready to land" should be ok to land.05:48
spivYeah, they should be, although some may need conflicts resolved.05:49
spivAs far as using feed-pqm goes, run "./feed-pqm bzr"05:49
parthmspiv: so the suggested method is that i try the merge manually on my system before submit?05:49
spivYou can enter ? at the prompt to get help on the options05:50
parthmspiv: sounds good.05:50
spivparthm: no, in fact if you look at the LP page for the proposal it'll mention if there are conflicts, and PQM will obviously fail to land conflicts anyway.05:51
parthmspiv: one more question. whats the policy in moving reviewed mps to "ready to land". 2+ approves?05:51
spivSo it's typically not worth the effort to do it locally.05:51
parthmspiv: ok. that sounds easy enough. i will give it a shot with the documentation proposals.05:52
spivparthm: http://doc.bazaar.canonical.com/bzr.dev/developers/HACKING.html#the-code-review-process05:52
spiv"ormally changes by core contributors are reviewed by one other core developer, and changes from other people are reviewed by two core developers. Use intelligent discretion if the patch is trivial."05:53
spivIn case you're not already aware of it, you can see the PQM queue (and status of the current job) at http://pqm.bazaar-vcs.org/05:54
parthmspiv: just curious. does the queue run tests on win, linunx and mac? or is it linux only?05:55
spivJust on linux (with Python 2.4).  vila has something that runs tests on some other platforms after landing, I don't have a URL for that handy though.05:57
parthmspiv: thanks for your help. i will try feed-pqm now.06:01
lifelessjelmer: is bug 551362  fixed ?06:51
ubottuLaunchpad bug 551362 in bzr-builddeb "support upstream/VERSION tags" [Medium,Triaged] https://launchpad.net/bugs/55136206:51
lifelesshey07:25
lifelessspiv: ping07:25
lifelessmtaylor: you might like https://code.edge.launchpad.net/~lifeless/bzr-builddeb/trunk/+merge/24578 too07:54
lifelessmtaylor: as I recall you struggling with pristine-tar transitions07:55
mtaylorlifeless: sweet07:56
mtaylorlifeless: I'm maintaining all of my packages using that process now, btw07:56
lifelessmtaylor: cool07:56
lifelessmtaylor: you should be able to just merge-upstream now; but if you find an old branch youhaven't fixed up yet - that should be much easier for you07:56
mtaylorsweet07:57
mtaylorlifeless: hey, you know things... any ideas on how I might actually sensibly use launchpadlib via jython in hudson?07:57
mtaylorlifeless: I poked at it some today and did not get very far07:58
lifelessmtaylor: offhand it should be compatible with jython; did the basics work ?07:58
lifelessmtaylor: if they didn't (just doing a repl loop in netbeans or whatever) - file a bug07:59
mtaylorlifeless: well, getting it going just basically was very hard07:59
mtaylorlifeless: lucid ships python2.6 and doesn't have a 2.5 package anymore07:59
mtaylorlifeless: also, lucid ships very old jython07:59
mtaylorI installed recent (2.5) jython from python.org, but it does not understand .pth files or any of the places debian puts python files08:00
mtaylorso really it's just one big giant mess08:00
lifelessfile a bug08:00
lifelessits probably the mother of all bad ideas, setuptools, all over again.08:01
mtaylorI started trying to build a pythonpath so that jython could find everything, but then I got eaten by the fact that python system libs were 2.6, which meant jython couldn't read the site.py08:01
mtayloryup08:01
mtaylorvery much setuptools, combined with python-support  let's add 7 more search directories08:01
mtaylormy next thought was building a virtualenv and installing stuff into that, which I'm doing on a different machine :(08:01
lifelessmtaylor: also #launchpad-dev08:03
lifelessspiv: https://bugs.edge.launchpad.net/bzr/+bug/574236 - sorry for the delay; yak shaved by filing a bug on malone ;)08:06
ubottuLaunchpad bug 574236 in bzr "repository.refresh_data() cannot be called in a write group" [Wishlist,Confirmed]08:07
spivlifeless: heh :)08:07
pooliehi there spiv08:14
vilahi all !08:17
* vila crosses fingers after the repeated crashes in the last hours08:18
lifelesshai08:19
* vila blesses its mail client for its autosave feature :-/08:20
lifelessvila: s/its/his/08:20
vilagrr, lifeless: thanks :)08:21
lifelessvila: its is for non gendered things ;)08:21
vilalifeless: I blame the crashes that directly attacked my sanity :)08:21
parthmhello. i am trying to feed-pqm proposal https://code.launchpad.net/~jbowtie/bzr/fix-515660/+merge/2429008:24
parthmit doesn't seem to be working. this is what i did. http://pastebin.com/pG7K4amn08:25
parthmit doesn't show up in the queue and i didn't see any mails. should i be doing something differently?08:25
spivparthm: that looks ok to me.  PQM ought to send you a mail if it has rejected your request for some reason.08:26
lifelessparthm: you're not authorised to send via PQM email, are you ?08:26
parthmlifeless: i am not sure. i am just using feed-pqm.08:27
lifelessparthm: if you haven't given your GPG key to the losas to install on balleny, you can't submit things to land.08:27
lifelessparthm: this is something that the API based feed-bzr fixed, but we're disabling that.08:27
pooliei think i did add his key previously08:28
poolieperhaps not08:28
spivEither way, PQM ought to send a reply saying what happened.08:28
* spiv takes the opportunity to tweak the commit message on that merge proposal ;)08:28
poolieaccording to my mail, that  key is authorized to commit08:29
lifelessoh, ok08:29
lifelessparthm: have you configured outbound email on your machine ?08:29
lifelessis it perhaps stuck in a mail queue ?08:29
parthmi tried it earlier today but nothing happened. so i tried it again right now (after doing an "approve" of mp just in case).08:29
lifelessI don't see anything from the pqm cron server08:29
parthmlifeless: i don't remember explicitly configuring outbound email. let me see.08:30
parthmspiv: :)08:30
parthmlifeless: outgoing mail isn't configured on my system. would that cause a problem?08:36
lifelessfeed-pqm is trying to send an email08:37
lifelessI'm surprised you're not gettnig an exception08:37
parthmlifeless: i will try to configure exim and try again.08:38
lifelessparthm: you can just configure your normal SMTP server using bazaar.conf08:39
lifelessparthm: see bzr help configuration08:39
poolieiow you can ask bzr to send direct to your company's or isp's smtp server08:42
parthmthe patch seems to have gone to the queue http://pqm.bazaar-vcs.org/ but i haven't seen the mail yet. it will probably come. :)08:57
* parthm just configured thunderbird as the default mail client.08:57
parthmspiv, lifeless, poolie: thanks for your help.08:58
lifelessok, EOD for me08:59
poolieparthm: ok, it's running, you should get mail when it either succeeds or fails09:01
parthmpoolie: great. thanks.09:03
jelmerlifeless: hi09:09
jelmerlifeless: bug 551362 is fixed in bzr-builddbe trunk09:10
ubottuLaunchpad bug 551362 in bzr-builddeb "support upstream/VERSION tags" [Medium,Triaged] https://launchpad.net/bugs/55136209:10
MvGHi! Wrt https://code.launchpad.net/~gagern/bzr/bug527878-directoryCommonOption/+merge/23970 I'm looking for a suitable name for a function that does Branch.open if --directory is given, BzrDir.open_containing_tree_or_branch otherwise. Preferrably not too long. Opinions?09:20
bialixheya09:21
MvGvila suggested "_open_containing_tree_or_branch_for_directory" but to me that implies that --directory would find containing bas well, which is not what I implemented, so I'm looking for better alternatives. Listed a few in a comment on that merge request.09:21
MvGhi bialix!09:23
bialixMvG: hi09:23
bialixMvG: I have a strange problem with my machine where trac and trac-bzr hosted09:24
bialixMvG: it could be unrelated to trac-bzr of course, I just don't know how to track it09:24
bialixevery week I'm packing entire trac repo for archive reasons09:24
bialixlast weeks every time I do this I'm get disk error from inside branch metadata (often branch.conf)09:25
bialixscandisk helps in those cases and fix the problem09:25
MvGdisk error? Sounds very hardware-ish.09:25
bialixbut I'm a bit worried of this09:26
bialixnot really disk error09:26
bialixwindows can't read the file, and then scandisk reports about fixing incorrect index entries (this is NTFS disk)09:26
MvGOnly thing I can imagine would be kept locks or similar.09:26
bialixthe disk itself is brand new, the other hardware is not09:27
bialixMvG: is there any dangling branch references left inside trac-bzr when doing timeline with repository checkins?09:28
MvGtrac-bzr should perform read-only access to branch.conf at the most, I'd say.09:28
bialixso it could be bzr server, oh well09:28
bialixstrange thing -- the errors often arised in the non-active branches09:28
bialixthat's why I'm not sure it's bzr serve09:29
MvGbialix: You could enable the memory leak detection code in trac, see if that has anything to say about dangling references.09:29
bialixhow?09:29
MvGbialix: http://trac.edgewall.org/browser/branches/0.11-stable/trac/web/main.py#L42509:30
bialix0.11 only?09:31
MvGbialix: Dunno, guess newer ones should have it as well.09:31
poolieMvG: open_directory_dwim?09:31
poolieopen_dash_d?09:31
bialixMvG: thanks, I'll try to use it and see what it say09:32
MvGpoolie: Maybe. Problem is that there are other similar open thingies that require working trees.09:32
MvGpoolie: And that it does open even in cases where --directory wasn't given at all, in which cases it takes the argument into account.09:33
MvGvila: Currently discussing function name alternatives for https://code.launchpad.net/~gagern/bzr/bug527878-directoryCommonOption/+merge/23970 as I'm not perfectly happy with your suggestion.09:34
MvGpoolie: So maybe open_branch_dash_d?09:35
poolieit's not great, just an idea09:35
MvGI tried _open_directory_or_containing_tree_or_branch and found that in that case I can keep to 80 cols with a single escaped line break. Anything lonmger maks the code really really ugly.09:36
vilaMvG: (hoping to avoid crashes), from your names I think I'd prefer (2) (sorry I'm still recovering from crash and I don't remember it more precisely)09:45
vilaMvG: But, I wonder if the issue is not a deeper one,09:46
MAfifiIs there a way to list the branches in a bazaar repository?09:46
MvGvila: I think I'm in favour of (2) as well. Thx. will push that and set state to needs-review.09:46
vilaroughly, we don't *require* the directory because we deduce it from the path and to achieve --dir support we may want to change that,09:46
vilai.e. if the user tell us: here is my branch root, don't guess09:47
vilathen instead of *adding* a new funtion/method, you may want to inspect the existing open_containing_* ones and see if you could address that at this lower level09:47
vilathis would also means *less* tests since once you're happy with the tests in the open_containing_* methods, there is little point in testing all their call sites09:48
vilaMvG: does that make sense ?09:49
MvGDoesn't feel right: the semantics here, with the --directory option, are specific to command line interface, while the underlying open methods are generic bzrlib, and clobbering them with command line special cases feels bad. So I'd prefer a function in builtins.py.09:49
MvGAnd there is still the chance of commands doing funky things with their arguments besides opening a branch, as I experienced in the case of the added builtin.09:50
MvGSo the tests do make kind of sense, I fear.09:51
vilawell, the tendency should be to *reduce* the specifics in builtins.py since that smells like lack of feature in bzrlib09:51
MvGvila: On the other hand, providing several different ways to achieve a goal is probably a good thing for a command line interface, where you want to support anything that users might naturally expect to work. For the API that kind of redundnancy would be bad design, I'd say.09:53
vilayes, some commands may do fancy things, I view your work on the --directory option as the perfect occasion to unify our behavior here (but that doesn't mean you have to address all of them in your proposal)09:53
vilaMvG: Well, having an optional directory short-circuiting the branch root guess is not *that* bad, there are just different ways to find it09:54
vilathere are other part of the API that already do that kind of thing09:54
MvGvila: OK, if you want it in the BzrDir.open_containing_tree_or_branch method, I can put it there. But in that case I guess I'd name it branch_location or similar, as the --directory option from the command line isn't exactly fitting, since remote URLs work just as well.09:55
vilamy feeling is that there are already too many open_containing_tree_or_branch_or_repo_or_whatever variations that may be simplified there09:56
vilaMvG: I don't have a strong feeling there, I'm thinking out loud (especially with the crashes I'm experimenting this morning, I haven't yet look at the code again)09:56
MvGOK. Maybe we should land my branch first, and see about unifying stuff afterwards.09:57
vilaMvG: exactly what I was about to say09:57
MvGThe method I introduced starts with an _, so it should be easy to drop it without a compatibility stub when we have a better solution.09:58
MvGs/method/function/09:58
* vila shudders with ease, yeah, leading '_' are *good*09:58
vilait's far easier to drop one than to add one09:58
MvGvila: OK, I pushed a function rename and a NEWS item, and would like to see the thing merged soon. I assume you'll want to recover from your crash first. And it seems LP is taking some time to update stuff today as well.10:12
vilaMvG: I'm reviewing right now10:13
vilaMvG: out of curiosity, are you using jam's update_copyright plugin ?10:20
MvGvila: no, did that manually.10:20
vilaMvG: ok, you may want to give it a try then :)10:20
MvGLP is taking really long today to update branches... :-(10:31
pooliehm, you could tell them10:31
pooliethey changed something that's supposed to eliminated delays10:32
pooliethere may be some fallout10:32
MvGpoolie: OK, mentioned it in #launchpad.10:34
vilaMvG: hmm, "the --directory option from the command line isn't exactly fitting, since remote URLs work just as well."10:34
MvGvila: Agreed. Do you think it should be renamed to --branch in these cases?10:35
MvGvila: In bug #559998 poolie suggested reuse of the --directory option.10:36
ubottuLaunchpad bug 559998 in bzr "bzr cat should accept --directory" [Low,Confirmed] https://launchpad.net/bugs/55999810:36
vilaMvG: I think we had this kind of discussion in the past and 'location' has been used instead...10:36
vilabut...10:36
vilasometimes it's used for tree so branch doesn't fit either, directory may be the best after all10:37
vilaand '-d' also has an history in other tools so...10:38
vila--base c oming :(10:38
MvGvila: So we keep --directory/-d for now, knowing that it is somewhat inaccurate?10:46
MvGvila: Or do we introduce a location option, which has directory as an alias, and still uses -d for compatibility?10:47
MvGvila: except that Option doesn't allow for aliases...10:48
* MvG just notices that vila has left the room... :-(10:50
vilagrr, add one more crash10:57
vilaMvG: so --base may be considered, but --directory still sounds like the best choice10:57
MvGvila: I had addressed some lines to you while you were away. I'll repeat them below:10:59
MvGvila: So we keep --directory/-d for now, knowing that it is somewhat inaccurate?10:59
MvGvila: Or do we introduce a --location option, which has --directory as an alias, and still uses -d for compatibility?10:59
MvGvila: except that Option doesn't allow for aliases...10:59
vilaMvG: my main hesitation comes from the compatibility issue, if we start with --directory we have to stick to that,11:01
lifelessjelmer: then the status needs updating ;)11:01
MvGvila: Yes, that has me somewhat worried as well.11:01
vilahaving aliases just because we're not sure about the best name is asking for trouble down the road and just exposes our doubts.11:01
vilaLet me check where we use location11:02
MvGvila: afaik only for args, not as an option...11:02
vilaMvG: and for config vars11:03
vilaI think the rationale there was because directory sounds like a local thing as opposed to a remote thing11:03
MvGvila: There is a global --basis option registered, but it seems no command actually uses it.11:03
vila--basis is for merge purposes AFAIK11:03
vilaMvG: So, I think --directory is fine, we may want to explain whether it applies to branch or tree for some commands but that should be all there is to it11:06
* vila blesses *his* mail client again, the review is not lost11:07
MvGvila: One problem is that one globally registered option has one global help string to go with it.11:07
vilaMvG: the command help itself then ?11:07
vilaMvG: *in* the command help itself then ?11:07
MvGvila: So if we had --base (-d) alongside --directory (-d), we could simply use different documentation for these as well, which is much more problematic with a single option.11:07
vilanah, forget --base, it's as abstract as --directory but without history11:08
vilaMvG: Anyway, this is targeted at people who want to be explicit, it's not as if they didn't know what there are talking about11:09
MvGvila: One could use custom_help for individual commands, but that would introduce quite a lot of redundancy.11:09
MvGThat's what http://bazaar.launchpad.net/~gagern/bzr/bug527878-directoryCommonOption/revision/5172 does to preserve current trunk behaviour.11:10
MvGvila: One good argument for using --directory in all cases is that there might be cases where we require a working tree now but find a sensible application to remote branches in the future.11:11
vilaI'm sure we can find a way to describe the option intent around: paths given to command either deduce the branch/tree they are in or respect the --directory option11:12
vilaand in that case are relative to it11:12
vilablah, in correct english :)11:13
MvGWhere would you put that help description?11:13
* vila reading revno 517211:13
MvGAnd it doesn't help users figure if remote branches are allowed for a given command or not.11:13
vilaMvG: I find revno 5172 very good, there may be a bit of duplication but I really don't care at that point, I don't have problems with duplication in doc, as long as it's kept consistant11:16
vilaMvG: I.e. custom_help looks like the perfect solution11:17
vilaso forget my remark about the generic definition or maybe just add a comment before the 'directory' definition in bzrlib.option explaining how it's intended to be customized11:18
MvGOK. Then we might fine-tune the documentation in the future to convey more information as to where branches are acceptable.11:19
vilaMvG: yes. Keep in mind to check for cases where *two* --directory options may be needed (hopefully none)11:19
=== davidstrauss_ is now known as davidstrauss
vilaMvG: 'bzr diff' comes to mind but we already have --old --new there11:20
vilaMvG: Approval sent, I'm ok with the actual submission (settling on --directory) most of the discussion above is for further work (and thanks again for working in on that ;)11:21
MvGvila: thx for the review!11:22
vilaMvG: Will have a look to the bash completion one now11:22
MvGGreat!11:22
* MvG has got to go11:25
MvGvila: in case there are questions about the bash completion merge request, please comment on the merge, and I'll deal with it in about two hours hopefully.11:25
vilaMvG: sure, near lunch time here anyway11:26
MvGI guess we're the same time zone. :-)11:26
parthmlifeless: looking at the trunk looks like the merge went through. however i noticed that https://code.launchpad.net/~jbowtie/bzr/fix-515660/+merge/24290 still shows status as "approved".11:29
vilaMvG: 12:30 here11:30
parthmlifeless: i also got an empty message from pqm with the subject "no valid commands given".11:30
lifelessparthm: thats a bug; the approved thing will depend on lp noticing11:44
parthmlifeless: so will it eventually turn to "merged"? just a matter of time?11:45
lifelessparthm: yes, a few days :)11:48
lifelessparthm: lp is busy right now dealing with maverick11:48
=== Viper7 is now known as Viper-7
parthmlifeless: cool :) ... whats maverick?11:49
lifelessthe thing after lucid :)11:49
thumperparthm: after lucid11:50
parthmthumper: aah :) ... i just upgraded to lucid a few days back. look forward to it. thanks.11:50
=== oubiwann is now known as oubiwann_
rodrigo_hi13:14
rodrigo_I'm getting this message:13:14
rodrigo_bzr: ERROR: KnitPackRepository('lp-67245712:///~vcs-imports/couchdb-glib/trunk/.bzr/repository')13:14
rodrigo_is not compatible with13:14
rodrigo_CHKInventoryRepository('lp-67245712:///~rodrigo-moya/couchdb-glib/optional-introspection/.bzr/repository')13:14
rodrigo_different serializers13:14
rodrigo_whenever I push a branch branched from a vcs import13:14
rodrigo_bzr push again works, but it seems it pushes the whole branch, it takes much more time than when pushing other branches where I don't get those errors13:15
maxbUgh, yes, this is known and annoying13:15
rodrigo_maxb, any solution?13:16
maxbYou can't stack a 2a format branch on a 1.x format branch, which is what's trying to happen here13:16
=== oubiwann_ is now known as oubiwann
rodrigo_ah, the vcs-import is 1.x, I guess?13:16
maxbUnfortunately, since bzr 2.x defaults to using 2a, the workflow of "bzr init-repo; bzr branch" tends to lead people to unwittingly create their local branches in 2a format even when the remote trunk is 1.x13:17
rodrigo_maxb, so, maybe I should get the vcs-import to move to 2a? is that possible? and how is it done?13:17
maxbIdeally, yes, except that would break any existing branches stacked on it13:18
rodrigo_you mean branches in active status? or all the previous branches that have already been merged?13:19
maxball of them13:20
maxbAnyway, the solution for the moment is to not use 2a format for this project13:21
maxbAs for the migration, you should probably ask on #launchpad about this problem during UK working hours, or file a Launchpad question13:21
rodrigo_ok, not a big problem though, so I guess I can keep pushing twice for no13:26
rodrigo_w13:26
rodrigo_maxb, another question, about bzr-git13:26
rodrigo_do you know anything about it?13:26
Tiibiidiihi, can someone help me? i'm trying to push to the same repository with 2 different users15:28
Tiibiidiibut one of the 2 constantly keeps creating files15:28
Tiibiidiiwith its own permission15:29
Tiibiidii(thus making the repository unusable for the other)15:29
Tiibiidii(one of the culript files is .bzr/repository/pack-names ... but it isn't the only one)15:29
Tiibiidii(i've already tried googling the problem to no avail)15:30
Tiibiidii(in fact i've found that in this page: http://wiki.bazaar.canonical.com/SharedRepositoryTutorial  it says that " When Bazaar writes to control files, it tries to make their permissions consistent with existing files." so this shouldn't be happening )15:31
Tiibiidii(currently i don't have a shared repository... i'm using a normal repository and first tried with a lightweight checkout... thought that this may be the cause of the problem... then tried with a full branch...)15:32
Tiibiidii(but by pushing from the branch the problem still happens)15:33
Tiibiidiianyone?15:33
GaryvdMTiibiidii: what os?15:33
Tiibiidiiubuntu15:34
Tiibiidii(wait while i'll check the version)15:34
GaryvdMthats odd15:34
Tiibiidiikarmic15:34
GaryvdMWhat transport (file/ftp/sftp)?15:35
Tiibiidiicurrently i'm trying directly through file15:35
Tiibiidii(i'm connected via ssh with both users)15:35
TiibiidiiGaryvdM, how do you usually setup your repository?15:36
Tiibiidiii mean.... push, then ssh to the server, then chown .bzr to a common group between the users like i'm doing right now?15:37
GaryvdMTiibiidii: Yes15:37
Tiibiidiiok15:38
Tiibiidiiwhere do you usually put your branch?15:38
Tiibiidiicould this make any difference?15:38
GaryvdMI don't think so15:38
Tiibiidii(i mean: external fs mounted somewhere... inside the home of some user)15:39
Tiibiidiimhn15:39
GaryvdMTiibiidii:  why only chown the .bzr. I would chown the whole branch.15:39
Tiibiidiiuhm15:39
GaryvdMTiibiidii:  Normally just use sftp15:39
Tiibiidiiit should be chowned...15:39
Tiibiidiii'll check if the whole branch is chowned ok15:40
Tiibiidiiyes, it is... the folder and all of the direct subfolders are chowned by the common group (with write permissions for the group)15:41
bialixheya GaryvdM !!!15:44
GaryvdMHi bialix15:48
TiibiidiiGaryvdM,15:48
Tiibiidiii tried again15:48
Tiibiidiipushed via sftp15:49
Tiibiidiithen branched locally (unfortunately i don't have the password of the other user... i'm testing while it's logged on)15:49
Tiibiidiiwith the other user15:49
Tiibiidiithen touched an empty file, added and commited it15:49
Tiibiidiibut i can't push15:49
Tiibiidiinow it laments about a .bzr/branch/lock/tmp-something file15:50
GaryvdMTiibiidii: Please pastbin error.15:50
Tiibiidii(i haven't tried yet to chown it... but it seems strange to be regarding a lock file)15:50
Tiibiidiisure15:50
GaryvdMTiibiidii:  try chown first15:51
GaryvdMThe lock file would be the first file it would try write to15:51
Tiibiidiimhn, but shouldn't a lock tmp file be erased at the end of every transaction?15:52
Tiibiidii(now i'll try to chown as before)15:52
GaryvdMYes15:53
GaryvdMTiibiidii:  how is it going16:00
GaryvdMI'm going home soon16:00
Tiibiidiisorry16:06
Tiibiidiifor the delay16:06
Tiibiidiiyou know:16:06
Tiibiidiithe guy who choose the folder/setup for the server16:06
Tiibiidiichose to put everything in a /GeoIndex folder -_-16:06
Tiibiidiieven if this folder has the correct ownership and permissions16:07
Tiibiidiiit seems that this still causes some problems16:07
Tiibiidiii tried it again16:07
Tiibiidiiby creating the repository on my home on the server (where i can liberally chmod and chown everything)16:07
Tiibiidiiand now everything's seems fine16:07
Tiibiidiithanks anyhow16:07
=== salgado is now known as salgado-lunch
=== IslandUsurper is now known as IslandUsurperAFK
mdmkolbeWhere is a good tutorial on the bzr API?  (e.g. if I wanted to write a web based front end to bzr)17:35
bialixcheck this http://doc.bazaar.canonical.com/plugins/en/plugin-development.html#learning-more17:37
TresEquismdmkolbe: and have a look at loggerhead:  https://launchpad.net/loggerhead17:42
Peng_TresEquis: Why are you trying to hurt him? :(17:43
mdmkolbebialix: hmm, looks promising.  (but it looks like I'll have to dig to find a way to commit to a branch without checking out a working directory to the filesystem)17:43
bialixmdmkolbe: there is preview tree and memory tree17:44
bialixtry to ask abentley or lifeless for more details17:44
* TresEquis quotes Santayana here17:45
TresEquis"those who do not know history are condemned to repeat it"17:45
Christoph^Hi!17:46
mdmkolbeTresEquis: I'm not actually trying to create a BZR viewer.  I'm trying to use BZR as a light-weight, ACID, storage mechanism for my web app.17:47
Peng_mdmkolbe: There's probably prior work in that area -- ikiwiki and such17:48
abentleymdmkolbe, you may also be interested in https://edge.launchpad.net/wikkid/17:48
=== radoe_ is now known as radoe
TresEquismdmkolbe: OIC17:49
Peng_Took me a minute to see the pun there.17:49
Peng_abentley: Neat. Thanks for the link. :)17:50
Christoph^When I want two people to push code to a launchpad project, does that mean I have to create a team for those two people?17:50
Peng_Christoph^: If you want them to push to the same branch? Yes.17:50
Christoph^And you can't seem to push code directly to a project, only to your own id?17:50
Peng_Christoph^: Branches must belong to a user or team.17:51
Christoph^ok, thanks17:51
Christoph^What would be the advantage of having one branch per person for the same project? (Up to now its only two people.)17:52
TresEquisChristoph^: the "main line" branch can be shared, but each developer can push multiple feature / fix branches for the project17:53
TresEquise.g., to let the others review / approve17:54
TresEquisfor instance, the lp:zope.event branch is owned by ztk-steering-group17:54
TresEquisbut I have another branch where I was improviing docs:  lp:~tseaver/zope.event/new_style_docs17:55
TresEquiswhich wasn't merged until this weekend.17:55
TresEquis(the trunk there is actaully a mirror of the SVN trunk)17:56
=== IslandUsurperAFK is now known as IslandUsurper
=== salgado-lunch is now known as salgado
Christoph^What is the difference between pull and checkout?19:28
Peng_One creates a branch, one creates a checkout.19:28
Peng_Err, wait.19:28
Peng_pull is to branch as update is to checkout.19:28
Christoph^And practically? I mean, both gets me a local copy of some foreign branch that can be updated?19:29
Peng_Christoph^: If by "pull" you meant "branch", yes.19:30
Christoph^no, I meant pull19:32
Christoph^ah, pull is to branch as update is to checkout19:32
Christoph^ok19:32
Christoph^but then there is no real difference between doing a branch and then pulling changes to doing a checkout and then updating changes?19:32
Peng_There are differences between a branch and a checkout -- and, um, I'm terrible at explaining things, but there should be some nice documentation somewhere.19:34
Peng_But either is sufficient for the requirements you described.19:34
fullermdIf you do a 'branch', you have two branches.  If you do a 'checkout', you have one branch.19:40
=== salgado is now known as salgado-brb
=== salgado-brb is now known as salgado
mdmkolbeDoes bzr handle non-overlapping merges at the server end or do those all have to be done at the client?20:44
mdmkolbe(Specifically I'm wondering if I use bzrlib to directly access a repo and two different copies of my program (running at the same time) change two different files, then am I going to have to put logic in my program to do the merge or is that automatic?)20:44
lifelessmdmkolbe: so the repo is just a cloud of data; if you change a tree stored in the repo, thats atomic; you'll need to use bzr's merge facilities to join your two changes together, or otherwise arrange them to end up on the same timeline21:23
lifelessmdmkolbe: if you're wanting to have your changes appear as changes to a branch, then bzr will force you to be serialised anyway, so you won't need merge logic in your code21:23
mdmkolbelifeless: I'm not sure I understand you.  Is Bzr like Git in that merging two branches is just creating a new tree that happens to point to the two parent nodes (it was probably created via a tree-way merge but Git doesn't know that)?  Or is Bzr smarter about merges than that (the oposite extreme would be Darcs which is structured such that merges happen automatically)?21:35
james_wmdmkolbe: like git in that sense21:37
james_wthe branch can only point to a single revision though21:38
james_wso you can happily create new revisions in parallel, subject to locking constraints21:38
james_wbut if your application requires it then at some point there will have to be a new revisions that references the others if you want them to be tied in to the history of the branch21:39
james_wand if both instances will be expecting to update the branch pointer when they add new revisions they will have to serialise and the second will have to merge if your app expects that21:39
mdmkolbejames_w: thanks, that makes sense.  two questions though.  First, is there support in the bzrlib API for making doing that merge easy?  Second is there a good quick reference out there for the bzrlib repo format/object model (It would make it easier for me to figure out these things if there were)?21:43
james_wmdmkolbe: you mean doing a three-way merge, or just creating a new tree with two parents?21:44
mdmkolbetree-way merge21:44
mdmkolbe/tree/three/21:44
james_wthere are some helpers21:45
james_wthere's WorkingTree.merge_from_branch() and similar at one level21:45
james_wthen Merger.from_revision_ids or similar at a lower level21:45
lifelessmdmkolbe: theres some object stuff on the wiki21:46
a212901390231901is launchpad having issues?21:47
a212901390231901https://code.launchpad.net/~bzr-pqm/bzr/bzr.dev <- not updated21:47
lifelessa212901390231901: yes21:47
lifelessa212901390231901: we just made 20K branches21:47
fullermdAh, spring, that wondrous time of year when every young man's fancy turns to reproduction...21:48
fullermdThough most aren't THAT prolific.21:48
a212901390231901but it's okay to push new branches and suggest them for merging still?21:48
lifelessa212901390231901: yup21:49
lifelessjames_w: what do you think is wrong with doing the fetch ?21:49
james_wlifeless: excuse me?21:50
james_woh21:51
lifelessnvm, I see what you meant21:51
james_wit's not doing a fetch21:51
lifelessI was going to put it in one place and changed my mind.21:51
lifelessjames_w: I'll get that additional test written today.21:54
james_wthanks21:55
=== salgado is now known as salgado-afk
ovnicrafthi folks, i have symlinks to folders in my repo i added them22:36
ovnicraftbzr has any problem with this?22:36
Peng_ovnicraft: If the OS supports symlinks, to.22:37
Peng_Err, no*22:37
Peng_ovnicraft: Checking the branch out on Windows will lead to pain unless you install a plugin to help.22:37
Peng_That was a while ago. The situation may have improved.22:37
jamhi Peng_22:39
Peng_Hii22:39
jamI just posted a review changing the History class to use bzr-history-db as the storage22:39
jamsome numbers, etc.22:40
Peng_Ooh. I need to learn what bzr-history-db is. :D22:40
jamPeng_: essentially a way to partition history data so that you can share it between branches22:41
jamit takes more space initially22:41
jambut if you are browsing 20 branches, it is ~1+changes, rather than 20*N22:41
jamIf I can get a chance, I'd like to discuss it with you, mwhudson, beuno, whoever would be interested.22:42
jamI'd like to get some of my patches moving, but I'm not really sure how to do that.22:42
jamOn the plus side, you don't need to get rid of merge_points, since the db stores information to look it up reasonably efficiently22:42
a212901390231901are you still doing a sqlite backend thing?22:42
Peng_I'm good at the "bzr merge"ing, not so much at the discussing.22:42
jama212901390231901: roughly, yes22:42
a212901390231901I've read what you've posted to the list but not followed very closely22:43
beunojam, I have them in my queue to review. I want to help you move them22:43
beunotime has been lacking due to Lucid22:43
beunobut should get better now22:43
jamSo I'm officially switching back to bzr + annotation stuff, but I'm sure that if you need me to do stuff to land it, I'll be happy to work on it.22:43
jamjust the primary push is done.22:44
ovnicraftPeng, so i need a plug to have not problems with symlinks?22:44
ovnicrafti need add them, dont want to replicate info in my disk22:44
jamwhat would be *really* nice, is if I could find a way to get a Staging deployment of it, and then replay the requests that go to the regular site22:44
jamand see what happens.22:44
beunojam, thanks a lot for all the work, I haven't been very verbose about it, but I'm thrilled you picked it up22:44
a212901390231901ovincraft: really, you need the branch you're working on to not contain symlinks at all22:45
jamstuff like "browsing 2 related branches" going from 13s down to <1s for the second branch is very nice, but I don't know how often that happens22:45
a212901390231901the plugins have big problems, and doing everything through cygwin is a pain22:45
a212901390231901symlinks just aren't a windows thing.22:45
Peng_ovnicraft: This is only if you need to be able to check out the branch on OSes that don't support symlinks, of course.22:45
Peng_Just reading the diff, not the code itself, is "self.get_revid_for_revno([revid])" in http://bazaar.launchpad.net/~jameinel/loggerhead/history_db/revision/415 right?22:46
ovnicraftPeng, i am linux user, but trying to add a file inside a folder@ i get this error http://dpaste.com/190495/22:47
jamPeng_: well, there are several revisions there. But yes, that is the final implementation.22:49
ovnicraftas i see bzr has problems in linux adding symlinks folders22:54
Peng_ovnicraft: What exactly are you trying to do?22:55
ovnicraftadd a file inside folder@22:55
Peng_ovnicraft: Add a file inside a directory that is a symlink?22:56
ovnicraftyes22:56
Peng_Wow. lp:~jameinel/loggerhead/history_db changes a lot of code that I don't think I've ever even read.22:56
Peng_ovnicraft: Yes, that sounds problematic.22:56
ovnicraftyes but i need it, i want to know if bzr support that actions?22:56
ovnicraftPeng_, so i ask you if its supported and maybe i understood wrong but i read that is a OS issue22:59
Peng_ovnicraft: You can version symlinks 'til the cows come home, but files inside symlinks? That's just bizarre. I don't know if it's supposed to be supported, but I'm not surprised it fails.23:00
ovnicrafti think must be, as example if you are django devel and you want to version an app in different projects that can help you :) BTW i'll fix it placing the info23:02
Peng_jam: Hmm, your history_db branch used to have different revisions? "Bring back the small-cleanups branch and restore the removed changes.". What became of that?23:02
* Peng_ dozes off23:04
ovnicraftand as i see my bus is being fixed https://bugs.edge.launchpad.net/ubuntu/+source/bzr/+bug/26427523:05
ubottuLaunchpad bug 264275 in bzr "bazaar internal error if adding file in a linked directory" [Undecided,In progress]23:05
jamPeng_: I only see 4 revisions for lp:~jameinel/loggerhead/history_db, I'm not sure where you are getting that message23:05
ovnicraftbug*23:05
jamah, I did do a push --overwrite23:06
jamthe old stuff was a test23:06
jamI nuked it and started from scratch23:06
Peng_Oh, good, I hadn't merged the old stuff anyway.23:07
jambasically, the old branch was a dogpile of stuff I was working on, I split it out into a bunch of new branches and merge requests, and redid how bzr-history-db integrated23:07
jamI'm pretty sure "small-cleanups" was proposed, and I think it was merged23:08
jam408 Ian Clatworthy    2010-04-22 [merge]23:08
jam    Merge John's minor cleanups23:08
Peng_OK. :)23:08
jamanyway, end-of-day for me here, I'll see you all around tomorrow23:09
jamPeng_: you may want to look at lp:~jameinel/loggerhead/integration, which is where I put all my stuff together to make sure I'm tuning the right code.23:11
Peng_jam: Ah, thanks,23:12
a212901390231901what's the right way of spelling "this test needs pywin32" in a test method?23:13
Peng_jam: I'm running a few bits of it, but none of the major ones.23:13
a212901390231901I currently have the first line as:23:13
a212901390231901self.requireFeature(ModuleAvailableFeature("pywintypes"))23:13

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