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

dvheumenlifeless, about the locking behaviour we talked about yesterday. That special case 'LockResult(file:///tmp/testbzr-J2pcy2.tmp/.bzr/branch-lockc4au55ppz8wdym11z1aq)', you can never get this if you install your own hook, right? (i.e. you will only find it if you use _lock_actions directly)00:05
lifelessdvheumen: you can get it, but only if you install your hook before creating a bzrdir00:06
dvheumenaha okay, so that's the idea. Okay in that case I'll add that case to the documentation too.00:07
dvheumenbzrdir is the '.bzr' directory right?00:08
dvheumenso in essence a newly created checkout/branch/repository00:08
pooliejelmer: so feed-pqm worked for you, it seems?00:08
spivdvheumen: bzrdir is the .bzr directory, yes00:09
jelmerpoolie: no, unfortunately the email it generated in the end was rejected because of the gpg signature00:09
pooliehuh00:09
pooliethe signature was invalid?00:09
lifelessdvheumen: yes00:10
lifelessis feedpqm in the bzr-pqm plugin00:10
lifeless?00:10
jelmerpoolie: I'm not sure - it's very cryptic in its error messages: "PQMException: 'Failed to verify signature: gpgv exited with error code 1'00:11
jelmer"00:11
jelmerlifeless: it's in hydrazine00:11
pooliejelmer: :/00:13
pooliewhat if you pipe it through gpgv yourself?00:13
pooliecould it be that you have multiple secret keys and it's using the wrong one?00:13
jelmerNo, I'm sure this is the right key00:14
jelmerit seems like it might be related to the from address - does pqm rely on that ?00:14
pooliei don't know00:14
jelmer(feed-pqm uses the email address to do a proper CC but it doesn't override the actual from address)00:14
lifelessjelmer: the key's primary UID *I think*00:14
pooliethat could well be the problem though00:14
lifelessjelmer: check the code.00:14
lifelesslp:pqm00:15
poolieso you could try forwarding the message from the right from address and see what happens00:15
poolielifeless: feed-pqm is i presume what you were just asking me about00:15
jelmerlifeless: Thanks, but I've wasted too much hours of my life in pqm source code already :-)00:15
lifelesspoolie: nope00:15
lifelesspoolie: the queue API stuff you found00:15
poolieit uses the queue api00:16
lifelessgood00:25
jelmerpoolie: Things seem to work quite a bit better if I use bzrlib's email API01:00
jelmerpoolie: Are you opposed to having hydrazine depend on bzrlib for sending email ?01:00
poolienup01:00
poolieit's probably much better to do that01:00
jelmerawesome; one mp coming up :-)01:00
pooliei'd like to teach it to ignore mps from people who can merge their own01:01
pooliethanks01:01
lifelesspoolie: I think its great to have it  submit other ppls mps ;)01:01
jelmerpoolie: yeah, I agree that'd be nice (except for the current user, of course)01:01
poolieor we could do that01:02
pooliebut it gets more into 'almost ready' vs 'actually read'01:02
poolieready*01:02
mwhudsonjelmer: are you using hydrazine to triage bugs?01:21
mwhudsonbecause all you comments are coming wrapped in "s01:21
jelmermwhudson: yes01:21
jelmermwhudson: oops, I was assuming I had to quote arguments to the comment command :-)01:21
jelmermwhudson: thanks, I'll avoid that from now on01:21
* jelmer thinks he also added a comment '--help' somewhere01:22
poolieheh01:22
poolieis that working again?01:22
pooliefor a while most bug operations were broken because of an etag bug01:22
pooliebut it was marked critical so maybe it's fixed01:22
pooliei guess adding a comment would still work01:22
jelmerI did get "precondition" exceptions on some changes01:22
jelmerother than that it worked quite well01:23
james_wI think the CP may have gone through today01:24
james_wbut I'm not sure if that was production/edge01:24
poolieheh, i see your "--help i'm trapped in a bug" message :)01:44
pooliealso for some reason it no longer exits cleanly on ^D01:44
poolieum01:44
pooliei'd like to have a way to go into $editor to add a comment01:44
poolieprobably most easily done by calling bzrlib01:45
poolieigc is https://bugs.edge.launchpad.net/bzr/+bug/524162 still open in bzr itself?02:00
ubottuLaunchpad bug 524162 in bzr "bzr-explorer don't work if installing by bzr-2.1.0 standalone installer." [Critical,Confirmed]02:01
igcpoolie: yes. It's waiting on https://code.edge.launchpad.net/~ian-clatworthy/bzr/plugin-packaging-524162/+merge/20858 being reviewed and landed02:02
pooliek thanks02:04
* igc lunch02:08
parthmpoolie: does the bzr-grep textfile.text_file approach for checking binary seem reasonable to you? https://bugs.launchpad.net/bzr-grep/+bug/531336/comments/402:10
ubottuLaunchpad bug 531336 in bzr-grep "bzr grep does not handle binary files cleanly" [High,Fix released]02:10
poolieparthm: isn't there something in osutils or similar to already do this?02:12
poolieoh obviously that's what you're doing02:13
parthmpoolie: yes. i am just using a bzrlib implementation.02:13
poolieyes that looks good then02:13
parthmpoolie: ok. thanks.02:14
=== wash is now known as wash-away
=== Kilroo1 is now known as Kilroo
=== fullermd_ is now known as fullermd
pooliehi igc, lunched?03:39
poolieigc are you already doing something similar to bug 53432004:04
ubottuLaunchpad bug 534320 in bzr "Disable plugins for given command" [Undecided,New] https://launchpad.net/bugs/53432004:04
echo-areahello, is there any explaination of stacked branches besides the documentation?04:12
echo-areathe secion "using stacked branches" in the bzr manual doesn't explain it well, and many examples in it don't work04:13
spivecho-area: those docs are the best I know of, but I'm happy to answer questions here04:16
spivecho-area: the primary use case is pushing to a server where a trunk already exists (so most of your branch's revisions are already on the server), but you don't have write access to that repository04:18
spivecho-area: so you can push (using the --stacked and --stacked-on options, or specially configure the remote .bzr directory) just the revisions unique to your branch to the server.04:19
spivecho-area: launchpad for instance creates those specially configured .bzr directories automatically, so if I push a new branch to ~spiv/bzr/..., it will automatically be stacked on the bzr trunk.04:20
echo-areaspiv: but I can't commit to a stacked branch04:20
spivecho-area: yes, unfortunately :(04:21
spivThat's bug 37501304:21
ubottuLaunchpad bug 375013 in rosetta "Cannot commit directly to a stacked branch" [High,Triaged] https://launchpad.net/bugs/37501304:21
spivWe'd like to fix that, but it will be a surprisingly large amount of work :/04:22
spivOh, does the "Using stacked branches" doc suggest that you can commit to a stacked branch?  Eek :(04:22
spivThat is confusing, I'm sorry.04:22
echo-areaspiv: that's the main source of my confusion.  I've created a stacked branch, by following the documentation, via the command "bzr branch --stacked source branch"04:23
echo-areaspiv: but after making some changes, I can't commit them, nor can I push them.04:23
spivecho-area: Right, because of that bug.04:24
spivSo, if you want to commit, you can't use a stacked branch yet, sorry :(04:24
spivI'll submit a clarification to the docs now04:24
spivIn the meantime you'll probably be better off using a shared repository and unstacked branches.04:25
echo-areaspiv: umm, stack branches aren't usable before we can commit to it, are they?04:25
* fullermd suspects stacking should be rather more hidden...04:26
spivecho-area: There are uses for branches that don't involve committing to them04:31
lifelessand pushing is different to committing04:32
spivecho-area: e.g. the scenario I described earlier (pushing to a server that has a suitable repository for stacking-on, but that you do not have permissions to write to)04:32
lifelesswhich is in fact why you can't commit to stacked branches.04:32
SamB_XPI just don't worry too much about stacked branches unless they make things go too slowly when I try and push something to launchpad ...04:34
parthmhello. i am planning to suggest the lp:parrot owner to upgrade the repo format to 2a. whats the suggested way to upgrade an lp branch. l believe lp:parrot is an svn imported branch.05:19
parthmhttps://launchpad.net/parrot05:20
spivI think the owner of the branch can click an "upgrade format" button in the web UI now.05:23
parthmspiv: thanks. i will suggest that.05:25
=== BasicPRO is now known as BasicOSX
echo-areaspiv: I have not reproduced that scenario successfully yet.  I did this:05:39
echo-areabzr init-repo --no-trees test-repo05:39
echo-areabzr init test-repo/trunk05:39
echo-areabzr init-repo test-branch05:39
echo-areabzr branch test-repo/trunk test-branch/trunk05:40
echo-areacd test-branch/trunk   <-- and work here, commit05:41
echo-areathen I did (in test-branch/trunk)   bzr push --stacked ../../test-repo05:42
echo-areaI got messages like these:05:43
echo-areaIgnoring request for a stacked branch as repository already exists at the destination location.05:43
echo-areaAll changes applied successfully.05:43
echo-areaPushed up to revision 4.05:43
parthmhmm. i did suggest lp:parrot to upgrade the branch http://groups.google.com/group/parrot-dev/browse_thread/thread/1cc2f0bbb18b76fc05:44
echo-areabut as I made another branch of test-repo/trunk, I didn't see the new revisions unique to test-branch/trunk05:44
parthmbut i see the branch owner listed as 'VCS Imports' https://code.launchpad.net/~vcs-imports/parrot/trunk so is the upgrade to be done by the project owner or branch owner?05:45
parthmlp:parrot project owner is ~parrot-dev while branch owner is ~vcs-imports.05:46
spivecho-area: that's not the scenario I was referring to05:47
spivecho-area: because in that scenario you can (and did) push directly into the original repo (test-repo)05:48
spivecho-area: I'm referring to a case like a server shared by several developers, but only one (or perhaps a non-human system account, like a gatekeeper bot) has access to the integration branch everyone branches off05:49
echo-areaspiv: should I make test-repo a stacked branch, and so that pushing onto it is the same as pushing to the stacked-on branch of test-repo?05:50
spivecho-area: e.g. if the trunk is on /srv/project/trunk on a host, and /srv/project is a repo made with init-repo, but you don't have access to write to /srv/project05:50
spivecho-area: but you can read from it, so you can do e.g. "bzr branch sftp://host/srv/project/trunk local-branch", work on that, and then push it up with "bzr push sftp://host/home/myuser/my-branch --stacked --stacked-on=sftp://host/home/myuser/my-branch"05:52
spivecho-area: in that case making local-branch will still copy the full history, but you don't have to push the full history back to the server, you use stacking to point to the history the server already has05:53
spiv(and also you don't waste space on the server by keeping a second copy of the history)05:54
spivecho-area: does that make sense?05:54
echo-areaspiv: I'm reading and understanding.  It definitely makes sense.  Thanks05:55
spivCool.  Glad I could help :)05:56
spivIt's an optimisation that most people don't need, I think.05:56
lifelessthumper: will lp crash if we set merge proposal queue fields using APIs ?07:07
lifeless'try it' is a good answer.07:07
vilahi all !07:18
echo-areaspiv: please take a look at this, does it elaborate the scenario you mentioned:07:23
echo-areabzr init-repo test-repo07:23
echo-areabzr init test-repo/trunk07:23
echo-areabzr init-repo stacked-repo07:23
echo-areabzr branch --stacked test-repo/trunk stacked-repo/trunk07:24
echo-areabzr init-repo local07:24
echo-areabzr branch test-repo/trunk local/trunk07:24
echo-areacd local/trunk   <--- work here07:24
spivecho-area: it doesn't make much sense to create a stacked branch in a shared repo (i.e. a directory you've made with init-repo)07:24
echo-area(in local/trunk)  bzr push ../../stacked-repo/trunk07:25
echo-areaspiv: so a stacked branch is better put in its own directory?07:26
spiv(I guess I can imagine uses for it, but it's certainly not how I would choose to explain it)07:26
spivecho-area: I'd ignore init-repo entirely, really07:26
spivecho-area: (for explaining how stacking works, not in general)07:27
spivI'm not sure what you're asking, exactly.07:28
spivI guess you're trying to test your understanding of stacking by constructing a scenario that uses it?07:29
echo-areaspiv: in your last example, "bzr push sftp://host/home/myuser/my-branch --stacked --stacked-on=sftp://host/home/myuser/my-branch", are the following statements true or not?  1) sftp://host/home/myuser/my-branch contains the full history too; 2) only the local revisions that have not been synced will be transfered during that push, the previous history will come from my-branch on host; and 3) full history will be tran07:33
echo-areasfered in a normal push.07:33
echo-areaspiv: kind of.  I want to figure out the things not explained explicitly in your example, hoping to help myself fully understand stacked branches07:34
spiv1) no, it only contains the history not in the stacked-on location (plus some small overhead), b) yes, only the history not already in sftp://host/home/myuser/my-branch and not already in its stacked-on location is pushed, 3) it depends; full history is transferred in a normal push when there is no shared repository (or that shared repository is empty or otherwise contains none of the relevant history)07:37
echo-areaspiv: so sftp://host/home/myuser/my-branch is a stacked branch too?07:38
spivTo clarify for 3, I mean a normal *initial* push.  Obviously subsequent pushes to the same branch don't have to re-transfer data that was already transferred.07:39
spivecho-area: what do you mean "too"?  I think that's the only stacked branch in my example.07:39
spivecho-area: oh, I see I made a silly typo in my example07:40
spivecho-area: that command ought to have been "bzr push sftp://host/home/myuser/my-branch --stacked --stacked-on=sftp://host/srv/project/trunk"07:40
spivecho-area: I guess that was rather confusing!07:40
echo-areaspiv: should be  bzr push --stacked --stacked-on=sftp://host/srv/project/trunk sftp://host/myuser/myproject, right?07:41
spivecho-area: right07:42
echo-areaspiv: whoa, I think I understand that now.  Thank you!07:42
echo-areaspiv: I think your example is the one that clarifies much about stacked branches.  Maybe you can add it to the documentation.  What do you think?07:45
spivecho-area: or you could :)07:46
spivPatches are always welcome :)07:46
spivMore seriously, I'm finishing up for the day, and will likely to have forgotten by tomorrow, so please file a bug asking for that, feel free to paste my IRC comments into it.07:47
echo-areaspiv: okay, let me try to write one.  I'll do what you said.  Thank you very much.07:48
spivecho-area: Btw, <https://code.launchpad.net/~spiv/bzr/stacked-commit-doc-update/+merge/21024> is the patch I wrote to that doc earlier.07:48
echo-areaspiv: ok07:49
spivecho-area: thank you, feedback on docs are very welcome, and offers to write them even more so!07:49
thumperlifeless: I don't advise it08:10
=== tro|| is now known as tro
* igc dinner08:45
lifelessthumper: is staging sufficient to tell if its a problem?09:21
thumperlifeless: probably, but what are you trying to accomplish?09:22
lifelessthumper: streamline landing stuff09:22
thumperlifeless: I can't guarantee it won't be a problem09:24
thumperlifeless: but staging should be good enough09:24
* lifeless makes a memo09:25
thumperlifeless: if I lock a working tree for writing, does that take a lock on the branch as well?09:27
lifelessthumper: yes09:45
lifelessthumper: lock_tree_write will lock the tree only (and take a read lock on the branch)09:45
thumperlifeless: I'm trying to write a test that uses a working tree09:46
thumperlifeless: and I want some files in that working tree09:46
thumperis build_tree_contents the right thing to use?09:47
thumperit doesn't seem to take enough params09:47
thumperusing TestCaseWithTransport09:47
lifelessself.build_tree_contents([(path1, content1), (path2, content2)])09:47
lifelessthere are a few similar thigns09:47
lifelessif you want versioned files, you need to also add them09:48
thumperlifeless: does that only work if you use make_branch_and_tree with '.'?09:49
thumperlifeless: also, where are the internal methods for working out if a fileid is a directory? or binary?09:49
lifelessthumper: just adjust the paths09:49
thumperok09:49
lifelesstree.inventory[fileid].kind - internalish09:50
lifelesstree.kind() or something like that - public09:50
thumperta09:50
vilathumper: alternatively, you can provide a transport to build_tree_contents, damn, no, you can't, that works for build_tree only, shame09:52
vilabut if you're ok with arbitrary content and have a tree from make_branch_and_tree, you can then use transport=tree.bzrdir.root_transport and you don't need to prefix your paths anymore09:52
thumperI'm having trouble finding the options for return values for tree.kind()09:53
lifelessvila: if you want arbitrary, MutableTree.set_file_content is better09:54
vilathumper: 'file', 'directory', 'symlink', 'absent'09:54
lifelessthumper: osutils._kind IIRC09:54
thumperit'd be really helpful if that was part of the docs for the method :)09:55
thumpersomeone told me that bzrlib uses looks for a null withing 'x' amount of the content to determine if a file is binary09:56
lifelessthumper: patches loved09:56
thumperis that method public(ish)?09:56
lifelessyes09:56
lifelesstis in osutils09:56
* thumper looks again09:56
vilalifeless: set_[file_]content ENOTFOUND09:59
lifelessvila: meh; look at MemoryTree using tests.10:01
vilathumper: bzrlib/textfile.py ?10:02
lifelessah yes10:04
lifelessthumper:  ^10:04
thumperta10:04
thumperreading now10:04
lifelessvila: sanity check: bzrlib.textfile.check_text_path is bust10:14
lifelessvila: or perhaps just unclear10:14
vilalifeless: as in not mentioning that it checks the *content* of the path ?10:15
lifelesswell10:16
lifelesslooking at it, it looks like it calls a generator and discards it10:16
lifelesswhich isn't generally useful10:16
spivIt calls an iterator and discards it, but happily the constructor of the iterator contains the relevant check.10:17
lifelessit would be clearer, I think as10:17
lifeless'if '\x00' in f.read(1024): raise BinaryFile()'10:17
spivSo, a little unclear, but given the overall simplicity of the module not a big deal either.10:17
thumperwhat is the right way to call check_text_path with a path and a working tree?10:18
lifelessspiv: I hope you and Mary will be available on the 27th10:18
thumperthe method assumes the path is relative to the current working dir10:19
lifelessthumper: tree.get_file() -> check_text_file10:19
thumperlifeless: in my test, I want to have fines in the tree10:32
thumperlifeless: how do I add the files ?10:33
thumpertree.add() ?10:33
thumpersmart_add perhaps10:36
lifelesstree.add([path, path], [id ,id])10:37
lifelessusually10:37
lifelessor smart_add(['pathtotree']) if you just want versioned10:37
lifelessbut at this point I'd smell aa case where branchbuilder might be ready10:37
thumperbranchbuilder?10:40
lifelessyah10:45
lifelessself.make_branch_builder('relpath')10:46
lifelessgrep for make_branch_builder in bzrlib.tests; its not well described yet10:46
thumperok10:47
thumperprolly not tonight10:47
thumper'tis getting late10:47
mwhudsonremember to add the root as the first thing you do with the branch builder10:48
mwhudsonor you will get very confused10:48
* thumper puts laptop down10:57
spivlifeless: we are, yeah11:00
lifelessgoogle invites ftw11:13
lifelessspiv: ^11:13
parthmvila: ping11:14
vilaparthm: pong11:15
parthmvila: hi. i have closed most of the review comment on https://code.launchpad.net/~parthm/bzr/376388-dot-bazaar-ownership/+merge/1969111:15
parthmvila: regarding, the testing, i updated the tests  as we discussed the other day ( http://pastebin.com/CKhiAgL4 ) but it seems a regular user doesn't have permissions to chown ( http://pastebin.com/ZPk2XGvv )11:16
* bialix waves hi all11:17
parthmvila: i am out of ideas on the testing front.11:17
* vila waves back at bialix11:18
vilaparthm: weird11:21
vilaargh, my X server is... acting weird too11:21
vilaha, no, it was only FF11:23
parthmvila: how do you suggest we take this forward? the earlier _dummy_chown approach seems reasonable to me as os.chown is the lowest layer.11:25
vilaparthm: if chown can't be used, then it's sure sign that *not* using it in tests... shows why it should be used in tests :)11:27
parthmvila: :-)11:28
vila... that's the first time I see chown failing in a directory where I have write access... did posix changed overnight ???11:32
parthmvila: i am not sure :-) ... generally i tend to use chown with sodo so i never really tried this before.11:33
parthms/sodo/sudo11:33
parthmvila: i have also updated https://code.launchpad.net/~parthm/bzr/262450/+merge/19483 as per the review comments. so do i need to resubmit that?11:36
vilaparthm: as a rule, if you modify a branch, you just push again and then check that the status is 'Needs review'11:37
parthmvila: thanks. i will do that.11:38
vilaparthm: then you nag the patch pilot if nothing occur :)11:38
parthmvila: sounds like fun :-) so  i will nag poolie this week.11:38
parthmvila: so for https://code.launchpad.net/~parthm/bzr/376388-dot-bazaar-ownership/+merge/19691 should i just put it up for review for now? we can discuss it further over review.11:40
parthmits 'work in progress' now.11:41
vilaparthm: as you feel, we at least to understand why os.chown doesn't work or your fix won't either anyway11:42
parthmvila: yes. we do have a better understand of the tests now. will do that. thanks.11:42
parthmregarding https://code.launchpad.net/~parthm/bzr/262450/+merge/19483 i have updated the code based on your comments. feel free to relook at it anytime :-)11:43
parthmvila: hmm. you raise a good point. normally chown won't work so a user foo can't chown to bar. however in this case we are going to chown to based on the containing folder which would be users home (and owned by the user).11:47
parthmso that should work i think. unfortunately we don't seem to have a thorough way of testing it.11:47
vilaparthm: it would be quite risky to introduce untested code especially code for .bzr.log and .bazaar access...11:51
parthmvila: i agree. i does seem somewhat brittle. i will set the status to 'Needs Review' in case there are any more ideas. i would be happy to work some more if something comes up or we can reject it.11:52
vilaparthm: sounds fine, don't forget to mention the chown problems you encountered in a comment11:53
vilaa comment on the merge proposal I mean11:53
parthmvila: will do that.11:53
parthmvila: thanks for taking the time to review this.11:53
=== mrevell is now known as mrevell-lunch
jmldoes bzr have a shorthand for doing 'bzr merge -r N..(N-1) .'12:36
jmlin svn, I think you can do 'svn merge -c -N .'12:37
jmlwhere N is a revno12:37
parthmjml: if you want to merge a specific revision then '-r N' should work IIRC.12:40
jmlparthm, unmerge12:41
jmlparthm, I want to revert a particular revision12:41
parthmjml: ah. :-) maybe 'bzr revert -r N'? I haven't tried it though.12:42
spivjml: I suppose -r N..before:N12:42
spivjml: which is shorthand if N is sufficiently long :)12:42
spivjml: I think a --reverse/-R switch would probably be a reasonable addition to 'bzr merge', although I haven't thought about it carefully.12:43
spivWe already use -c as shorthand for -r (N-1)..N12:44
spivjml: I'm off to bed... if you like the -R idea please file a bug asking for it :)12:45
jmlspiv, ok12:46
spiv(And if you think it should be --backwards or --unmerge or something instead, do bikeshed in the bug report as appropriate)12:48
awilkinsBest place to report packaging bugs still the bugs for bzr?13:37
jelmerawilkins: hmm?13:37
jelmerwhich packaging specifically?13:37
awilkinsWindows13:40
awilkinsThe current 2.1.0-2 package contains bug 52674013:40
ubottuLaunchpad bug 526740 in bzr-xmloutput "XML-RPC service broken by bzr-2.1" [High,Fix committed] https://launchpad.net/bugs/52674013:40
awilkinsI guess bzr-windows-installers13:44
parthmhello. i am trying to create a series 0.0.1-final for lp:bzr-grep. i have already created series 0.0.1-final via web ui.13:48
parthmwhen i try to push my trunk (with tag 0.0.1-final) to lp:bzr-grep/0.0.1-final I get the error bzr: ERROR: Invalid url supplied to transport: "lp:bzr-grep/0.0.1-final": 0.0.1-final has no default branch.13:49
parthmwhat am i missing?13:49
bialixpartm: you need to create a bracnh first, then assign it via series interface13:56
bialixthere is no magic lp:bzr-grep/0.0.1-final branch created when you created a series13:57
bialixso just push to lp:~user/bzr-grep/0.0.1-final first13:57
bialixthen assign this branch as *the* branch for the series13:58
bialixnot vice versa13:58
bialixparthm: ^13:58
=== mrevell-lunch is now known as mrevell
parthmbialix: I knew I was missing something silly :P thanks. that worked out fine.14:01
bialixsilly milly14:01
=== kirkland` is now known as kirkland
=== salgado is now known as salgado-lunch
=== oubiwann` is now known as oubiwann
=== IslandUsurper is now known as IslandUsurperAFK
=== salgado-lunch is now known as salgado
riochI have a file listed as modified in bzr status, but the filename has a * after it, which I don't normally see. What does that mean?17:27
Pengrioch: Exec bit changed.17:30
PengI think.17:30
riochahhhh yeah that's true I did a chmod as well :)17:31
PengI'm pretty sure the * is explained somewhere17:32
slangaseklifeless: doing the needful on the extra_headers patch; stuck now because I can't figure out how to *run* the test suite to verify that the test works :)17:39
swathanthrani have a local bzr checkout of emacs. where should i look to know which url it is pointing too?17:39
swathanthrani had a try through the .bzr directory but found nothing useful..17:40
=== abentley_ is now known as abentley
jelmerswathanthran: try 'bzr info'17:42
jelmerslangasek: "bzr selftest bzrlib.plugins.email"17:43
slangasekjelmer: thanks :)17:43
swathanthranjelmer: http://bzr.savannah.gnu.org/r/emacs/trunk/ is this trunk "proper" at the moment?17:44
slangasekoh neat, my patch makes *other* tests fail :)17:44
slangasektests are great!17:44
=== beuno is now known as beuno-lunch
swathanthranjelmer: assuming it can be said by looking at there or something..17:44
swathanthranbzr: ERROR: No WorkingTree exists for "http://bzr.savannah.gnu.org/r/emacs/.bzr/checkout/". and bzr: ERROR: No WorkingTree exists for "http://bzr.savannah.gnu.org/r/emacs/trunk/.bzr/checkout/". as i tried bzr update http://bzr.savannah.gnu.org/r/emacs/ and bzr update http://bzr.savannah.gnu.org/r/emacs/trunk17:45
swathanthranbzr update says Tree is up to date at revision 99318.17:45
=== IslandUsurperAFK is now known as IslandUsurper
swathanthranbzr pull does it:)17:50
jelmerswathanthran: specifying a URL to 'bzr update' will try to update that remote URL :-)17:51
swathanthranuh:) i thought it the opposite way:)17:54
vilaslangasek: 'bzr selftest -s bzrlib.plugins.email' should be faster17:57
vilaslangasek: you can also do 'bzr selftest -s bp.email -s bt.<the other failing tests>'17:57
vilaslangasek: 'bp' and 'bt' are known shortcuts17:58
slangasekvila: ok, cheers :)18:00
Peng(FYI, 'bzr selftest foo' loads the entire list of tests and then filters it. 'bzr selftest -s foo' only loads those tests starting with the module 'foo'.)18:01
vilaslangasek: I'm not sure what you're working on, but be aware that part of the plugin has been moved to bzr-core but the plugin still has that code (mostly the smtp connection stuff from memory)18:06
vilaslangasek: But if you're modifying something else, no worries18:06
jelmer'evening vila18:07
slangasekvila: hum, I'm adding a new feature to the plugin, and basing my work on lp:~bzr/bzr-email/trunk/; where would I see that things have moved?18:07
vilajelmer: hey  :)18:07
vilaslangasek: nothing has moved from the plugin yet, that's the point :-/ Some code has been taken from there, put in core, and enhanced there18:07
slangasekok... :)18:08
vilaslangasek: let me check18:08
slangasekvila: lp:~vorlon/bzr-email/extra-headers/, if you want to comment on the appropriateness18:08
slangasekbut lifeless mentioned nothing to me yesterday about this code moving :)18:08
vilaslangasek: ok, so you should be fine :)18:08
vilaslangasek: hmm, smtp_connection.py seems to have diverged, I can't be more precise at first glance18:12
slangasekok18:12
* vila looks at lp:~vorlon/bzr-email/extra-headers18:13
vilaslangasek: hmm, well, it's late, but it looks like your additions will be welcome in bzrlib/email_message.py ...18:20
vilaslangasek: bah, one more thing to backport from the plugin ...18:20
=== beuno-lunch is now known as beuno
slangasekvila: mumble; well, I'm at least going to wait until lifeless is satisfied with the merge on bzr-email first18:32
slangasekvila: fwiw, this patching is all tied to moving the Debian Samba team off of svn, greatly simplifying the workflow we discussed at UDS :)18:33
vilaslangasek: sure, that's what I meant. I didn't imply you had to do the backport18:33
vilaslangasek: great news, thanks18:33
=== radoe_ is now known as radoe
kjcoleIs there a way to get bzr to eliminate unnecessary .bzr/ files?  (Say, for example, in the case of using rsync or scp independently of bzr with different versions of bzr, or upgrades that didn't quite go as planned.)19:09
=== zekopeko_ is now known as zekopeko
* kfogel is away: bbiab20:09
lifelessslangasek: bzr selftest email20:28
lifelessslangasek: or, to be a bit faster, the less discoverable 'bzr selftest -s bp.email'20:28
slangaseklifeless: done - merge request resubmitted.  Good morning :)20:29
lifelessslangasek: good morning :)20:29
=== salgado is now known as salgado-afk
xevioxcan somebody help me understanding the bzr 2a format?22:24
xevioxI've seen that there is a folder called "branch" that holds basic information like the last revision22:25
xevioxI've also seen that there is a "repository" folder that seems to hold the data22:25
xevioxas far as I can understand the contents are stored in the "packs" subfolder of "repository"22:27
Pengxeviox: Some data is stored in the indices as well.22:27
xevioxok22:27
PengFWIW, the basic meta dir format (.bzr/branch, .bzr/repository, .bzr/checkout) has been around for ages.22:28
xevioxhow is the information stored in indices and packs?22:28
PengCleverly.22:28
Peng.bzr/repository/{packs,indices} have existed since pack-0.92, though the actual format has changed several times.22:28
xevioxit seems to be compressed, but I don't see using what ..22:28
Pengzlib.22:28
xevioxare you a developer of the project?22:29
PengNot really.22:29
xevioxk22:29
xevioxanyways thanks for the background info :D22:29
PengIt's not super-simple, and even if I wasn't half-asleep, I don't know all of the answers.22:29
xevioxso there is some metadata in front of the data, any idea what it is?22:30
PengThere is documentation, at the very least in the code, developer docs and mailing list.22:30
PengLook up btrees, packs and groupcompress.22:30
xeviox"records" look like "gcblz\n324\n442\nData...22:31
xevioxPeng: ok I'll check22:31
xevioxthe problem is that the project is very complex22:31
xevioxand my skills in python are very basic :(22:31
xevioxI just try to build up a readonly script in php22:32
xevioxas there a few people that want to share there codes but couldn't use bzr on their webpages ..22:32
PengTrying to re-implement bzr is not a fun task.22:33
xevioxPeng: sure :), but I hope that a read-only script is not that hard ..22:34
PengIt is that hard. :P22:34
xeviox:(22:34
PengWhat exactly are you trying to build?22:34
xevioxI just want to build a script that is able to "read" a bazaar respository22:35
xevioxa little web interface for bazaar22:36
xevioxas there is nothing that is usable with php only22:36
xevioxmaybe I'm able to release a working solution for one format and encourage others to help to support more ..22:38
lifelessxeviox: there is a xml interface to bzr; you are probably better off using that than reimplementing the core in php23:02
pooliehello all23:02
xevioxlifeless: the problem is that people can't use it at their webserver without installing bzr ..23:03
lifeless'seems reasonable to have bzr installed to use bzr' :P23:13
poolieyeah23:16
poolieis it hard to install?23:17
pooliei guess python can be hard23:17
fullermdThat's SO 20th century...23:17
ronnypoolie: every sane linux distribution ships recent bzr packages, so its absolutely easy to install23:19
mneptokand not only every sane distro, but even Gentoo.23:20
ronnymneptok: i'd argue that gentoo is sane23:21
mneptokronny: ah, so you work for an electricity company. ;)23:21
ronnymneptok: no, but i support carbon-free global warming23:22
mneptokronny: hmmm ... does Gentoo have a SPARC port?23:23
ronnyno idea23:23
mneptokthat would get the job done.23:23
ronnyhaha23:23
ronnyi prefer crowdsourcing (read everyone please install gentoo - i want the snow outside gone tommorow)23:24
mneptok$ emerge spring23:24
ronny\o/23:25
poolieoh hi ronny23:40
poolieamazingly enough some people still use other OSs23:40
jelmerwhoa, using the indexes to store the cache for bzr-git is *significantly* faster23:53
dvheumenis anyone familiar with the class _RelockDebugMixin and for what it is used?23:54
dvheumeni mean, i can read the comments, but is it actually *super* important, or just for the occasional debugging?23:54
dvheumen(_RelockDebugMixin can be found in lock.py)23:55
lifelessjelmer: which indices?23:55
jelmerlifeless: the bzr Btree indexes23:56
lifelessjelmer: custom use of ?23:56
jelmerfor a certain definition of custom23:56
jelmerI'm just using their public API but storing different keys of course23:56
lifelessjelmer: right23:56
jelmerin .bzr/repository/git23:56
lifelessa la bzr-search23:56
lifelessyes, our btree's are pretty good23:56
jelmeryeah, but without actual content in packs23:56
lifelesscontent schmontent23:57
pooliedvheumen: it certainly sounds like it's for debugging23:57
pooliewhy?23:57
pooliewell, you can see it is in fact mixed in to man yclasses23:58
poolieso we shouldn't break it23:58
poolieand -Drelock is useful23:58
jelmerlifeless: So, lsprof shows the amount of time spent deal with the cache is now ~1%, down from >20%23:58
lifelessjelmer: awesome23:58
lifelessbrb23:58
jelmerAlthough adding repack triggering will increase it a bit once I add that23:59
dvheumenI'm exploring the classes around branches, trees and repository objects. I've got this idea to create a super class of which all derive, where this super class contains those high-level lock hooks, but in the case of the Repository class this class is in the way :P23:59
lifelessdvheumen: I don't think thats a particularly good idea.23:59
dvheumenand it seems feasible to put this functionality in the same super class as the lock hooks23:59

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