/srv/irclogs.ubuntu.com/2012/07/16/#bzr.txt

=== youlysse` is now known as youlysses
mgzmorning08:18
jelmersup mgz08:19
=== zyga is now known as zyga-food
=== zyga-food is now known as zyga-food]
=== zyga-food] is now known as zyga-food
=== zyga-food is now known as zyga
=== mrevell_ is now known as mrevell
=== deryck is now known as deryck[lunch]
=== nyuszika7h is now known as pingmenextround
=== pingmenextround is now known as nyuszika7h
=== deryck[lunch] is now known as deryck
=== iBasic is now known as BasicOSX
rafaelmartinshi all. supposing that I have a repo 'X', published at lp, and a clone 'Y' of it, hosted on my own infra. I add a tag 'foo' to Y, and want to push some changes I did at 'Y' to 'X', is it possible to leave the 'foo' tag local to 'Y', without get it propagated to 'X'?19:58
jelmerrafaelmartins: not really, at least not with the bzr cli20:01
rafaelmartinsjelmer, too bad. there's another way though?20:04
jelmerrafaelmartins: you could probably script something using the Python API20:04
rafaelmartinshmm20:04
rafaelmartinsthanks for the info, jelmer20:05
ccxCZhow do I check in a script if there are any changes in a working tree?20:12
ccxCZsomething better than [[ $(bzr stat -VS | wc -l) -gt 1 ]] possibly?20:13
jelmerccxCZ: IIRC the exit code of 'bzr status' also changes if there are modifications in the working tree20:14
ccxCZdoesn't seem so20:16
trkvHi all, can anoyone help me with bzr api, please?20:28
jelmerccxCZ: I guess checking the output of 'bzr status' or 'bzr diff' is the safest bet in that case20:28
ccxCZyeah, I went for [[ -n "$( bzr stat -SV)" ]] in the end20:28
jelmerccxCZ: another option is running20:28
jelmerccxCZ:  bzr version-info --check-clean | grep "clean: True"20:28
jelmerhi trkv20:29
trkvhi20:29
jelmertrkv: what's your question? perhaps somebody here can help20:29
trkvI want to write a plugin storing some info in the branch metadata during the commit (i.e. store one string with each commit)20:30
trkvhowever looking to the info about hooks I see that I shouldn't modify future_tree or tree_delta during the pre_commit hook20:31
trkvand I'm unsure how to modify the commit at the post_commit hook20:31
jelmertrkv: you can't modify the tree during pre_commit, but you can modify it during start_commit20:32
jelmertrkv: the branch and commit metadata is also not a part of the tree20:32
trkvhm, so what should I do at start_commit stage? I thought there should be available modifiable Commit object at some moment :)20:34
jelmeryou can modify the tree in the start_commit stage I think20:36
trkvjelmer: I've just looked at MutableTree and still have no idea how to access current commit from it :(20:44
jelmertrkv: What do you mean with the current commit?20:51
trkvthe commit I'm going to perform20:52
=== yofel_ is now known as yofel
jelmertrkv: there is no information about the current commit in start_commit20:59
jelmeronly during pre_commit20:59
trkvand during pre_commit I can't modify info... deadend >.<21:02
jelmertrkv: during pre_commit you can't modify the tree, but you can modify the commit or branch metadata21:03
Noldorinjelmer: hey there. what does bzr-bookmarks do, may i ask?21:05
Noldorini didn't find any real description online...21:06
jelmerNoldorin: I think it provides shortcuts for URLs21:10
Noldorinjelmer: oh it said you were the co-ordinator on lp :)21:10
jelmerhello nz21:10
jelmerNoldorin: huh, where does it say that?21:11
Noldorinjelmer: sorry, i mean "top contributor" https://launchpad.net/bzr-bookmarks21:11
jelmerNoldorin: ah, that's probably just because I triaged bugs21:11
Noldorini did not check, just assumed you were involved heh21:11
Noldorinah okay21:11
Noldorinfair enough21:11
trkvjelmer: It seems that when i modify local.repository.get_revision(future_revid).properties in pre_commit hook, nothing changes actually. Is it real to save my changes at that moment?22:00
jelmertrkv: right, you need to change the properties of the Commit object22:01
jelmertrkv: You shouldn't be able to make that call btw, because the revision doesn't exist yet22:02
trkvoh, that was the first question I asked)22:02
trkvhow to obtain Commit object at the pre_commit22:02
jelmertrkv: it should be one of the arguments to the hook22:03
trkvyep, but it isn't22:03
trkv(local, master, old_revno, old_revid, future_revno, future_revid, tree_delta, future_tree) are all the arguments22:03
trkvand tree_delta, future_tree shouldn't be modified22:04
jelmerah, that actually happens after the commit is made but before the branch is updated22:04
jelmertrkv: you want the Commit pre_commit hook, not the Branch pre_commit hook22:04
jelmerhmm, except there is no such thing22:05
jelmertrkv: Sorry, I don't remember where this is exactly and I don't have time to dig deeper at the moment22:05
trkvok, may be I can return and ask you tomorrow (or some day later if you have no time tomorrow)?)22:06
jelmertrkv: you might want to ask on the mailing list, where your question will reach a wider audience22:08
jelmerthough I should also be around tomorrow during European working hours22:08
trkvok, it's bazaar@l.c.o, yep?22:09
jelmertrkv: yep22:09
trkvthanks, I'll won't bother you anymore)22:10
trkvgood night22:10

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