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

GungaDinis it possible to merge into a branch if there already is an ongoing merge?00:08
mgzI believe it is these days, it's certainly possible for there to be more than two parents.00:09
mgznot actually tried it recently though.00:09
GaryvdMGungaDin: bzr merge --force00:09
GaryvdMIf I recall correctly - Bzr has been able to do that from pre 0.17 days - if not the beginning00:11
GungaDinthey're not really done from the same machine.00:11
mgzha, clearly I didn't try hard enough last time then.00:11
mgzthanks Gary.00:12
GaryvdMGungaDin: then I think I we miss understand you - Could you try describe in more detail what you are wanting to do?00:12
GungaDinthere's a branch stored in a shared on machine S. there are 2 checkouts of it on machine A & B. both users on A & B want to merge something into this branch.00:13
GaryvdMGungaDin: Yes - person A commits - cause it's a check out it gets pushed to the master branch.00:14
maxbOne should merge and commit. The other should then update, merge and commit00:15
GaryvdMthen person b ties to commit - It wont let him/her because of person a's commit00:15
GaryvdMso b must update before he commits00:16
GaryvdMand the update will merge a's changes with b's changes00:16
GungaDinI'm talking about the situation before anyone commits.00:16
GungaDinone has started a merge... can the other one start his now?00:17
dashGungaDin: merges don't happen in branches, they happen in working copies.00:17
GungaDinor is that branch locked until the commit of the first one?00:17
maxbThere is no locking, but if they both start simultaneously, one will have to update before committing, and may have to resolve conflicts as a result00:18
pooliehi guys00:19
pooliei'm going to be at uds next week so i'll be offline a bit00:19
poolieand i have been busy a bit this week getting ready00:19
spivGungaDin: a merge is basically just another kind of uncommitted edit you can make to a checkout, like modifying or adding files.00:21
spivGungaDin: and the branch isn't affected by uncommitted changes until they are committed.00:21
GaryvdMmgz: see revno 4825.1.1 in bzr.dev00:24
mgz...appears to be doc fixes from nmb?00:25
GaryvdM mgz: hint - count the parents :-)00:25
mgzah, I see what you mean.00:27
GaryvdMI had a script to find octopus merges, but I've lost it. There are others...00:29
* KombuchaKip is very much enjoying the soundtrack to The Fountain by Kronos Quartet. Every time he sees their name on a soundtrack, he's confident it will be stellar.00:32
pooliehi there spiv01:55
spivHey02:13
pooliesorry i haven't piloted much02:21
pooliehaving one of those about-to-go-away weeks02:21
pooliethe lp-dev review thread is interesting, isn't it02:21
poolieit reminds me how much easier things seem to flow for us compared to a few years ago02:21
spivYeah, definitely02:22
spivIt's partly also that they have such a large team, so naturally there's a little more divergence in understanding of the norms and rationales for reviewing.02:23
spivSuch a large review team, that is.02:23
spivWe actually have a pretty large set of people generating merge proposals, really :)02:24
pooliemm02:29
=== Ursinha is now known as Ursinha-afk
mwhudsoni think launchpad and bazaar are really quite different projects02:40
mwhudsonin ways that i can't quite put my finger on02:40
poolieprobably02:56
pooliehm, gmail seems to be down?02:57
mwhudsonnot for me02:57
mwhudsonbut then the way that sort of thing works, partial outage is hardly surprising02:57
spivOn another channel I'm on someone else had gmail be down just for them for a while this morning.02:59
spivOr more facetiously, http://downforeveryoneorjustme.com/gmail.com02:59
pooliehm, maybe this is a good chance to get something done :)02:59
spivHah03:00
pooliehm the docs are indeed broken by danilo03:08
poolieby his name occurring in a tex document03:09
pooliespiv what did you change there?03:09
spivNothing much I would have thought...03:10
spivWhere does his name occur?  In release-notes?03:10
pooliein bzr-en-release-notes03:12
spivI didn't look at the tex generation at all03:14
spivI believe that's done by sphinx?  So in theory nothing significant has changed there...03:14
spivYeah, nothing obvious... will look again after lunch if you're still having trouble.03:16
pooliei can reproduce it locally03:22
poolieand yes, it does seem to be produced by sphinx03:22
gilanialiwhats the bzr of eqivalent of gitosis and gitolite03:27
jbowtieI think that's Sphinx issue 432, fixed 5 months ago in http://bitbucket.org/birkenfield/sphinx/changeset/28e9f10c1f3403:27
dashgilaniali: what do those do?03:27
gilanialidash: they help in managing a gitserver by providing an easy way to add user users, manage group permissions and such03:28
pooliegilaniali: i believe there is a fork of gitosis that runs bzr, bzrosis or something03:29
pooliejbowtie: i don't think it is that issue ,but thanks03:29
jbowtiepoolie: sorry, correct URL is http://bitbucket.org/birkenfeld/sphinx/changeset/28e9f10c1f3403:31
pooliemm, i found it, but that's not the error i'm getting03:32
pooliei'll file a bug03:32
jbowtieHm, Maverick still has 0.6.6, bug was fixed in 0.6.7 but it could be down to latex version being used I suppose.03:37
pooliehttps://code.edge.launchpad.net/~mbp/bzr/doc/+merge/39115 skirts around it03:51
pooliejbowtie: but the one i get is an error during pdflatex, not while producing the tex03:51
pooliei suspect the bug if anywhere is in their tex templates but i really don't want to dig into that now03:52
jbowtieOh, that might be the moving arguments bug in pdflatex. I'll have a closer look over the weekend when I push my documentation bug fixes.04:01
pooliegreat04:01
pooliedo you want to rubberstamp <https://code.edge.launchpad.net/~mbp/bzr/doc/+merge/39115> in the interim?04:02
pooliei'd be happy to leave the bug open04:02
jbowtiepoolie: Yes, just did so.04:46
pooliethanks04:46
jbowtieHmm...apparently I'm 'community'.  Is that a new launchpad feature?04:47
pooliei think it means you're not in the team of reviewers for the target branch?04:48
jbowtieMaybe. I just requested bzr-core membership.  Already in bzr-qa and bzr-doc04:49
jbowtieI would have thought that would have been within the purview of bzr-doc anyhow.04:51
pooliemm04:51
pooliebzr-core is just the default reviewer and i didn't change it04:51
poolieit's totally fine as it is04:51
jbowtieIs bug 388249 still an issue?05:00
ubot5Launchpad bug 388249 in Bazaar "2a format doesn't support Revision.message = None (affected: 1, heat: 8)" [High,Confirmed] https://launchpad.net/bugs/38824905:00
abentleypoolie: bzr-core is not merely the default reviewer, it is the designated review team for that branch.  Anyone doing a review for that branch who's not a member of that team is "(community)".05:01
lifelesspoolie: http://bzr.bz/05:33
pooliewow05:39
poolienice domain05:39
spivOoh, some excellent lightning and thunder where I am atm.05:40
glyph"It's not launchpad.net"?05:42
pooliemm me too05:43
poolieapparently not05:43
=== MTecknology is now known as AFWEG43y6t23yt2t
=== AFWEG43y6t23yt2t is now known as MTecknology
mtaylorlifeless: what an interesting thing that is06:38
lifelessindeed06:39
peitschiei can understand the sentiment slightly06:48
peitschieit'd be very nice to get something simpler to play with than launchpad for hosting bzr projects06:49
peitschiehaving said that... i wouldn't trust that place from teh looks of it with my code ;)06:49
pooliei think it's nice to have an alternative that is seems to be taking a very kind of dry approach07:11
pooliein fact it's good to have alternatives full stop07:11
pooliehas anyone else tested bzr from maverick-proposed?07:21
spivHmm, I have the bzr from bzr-beta-ppa, haven't tried maverick-proposed.07:28
lifelessdo you have maverick ?07:29
lifeless'you' should talk to marjo about getting testers07:29
vilahi all08:09
pooliethat would be good08:10
poolielifeless: what do you mean?08:10
lifelessthe ubuntu qa folk are discussing how to attract testers at themoment08:10
lifelessmainly for iso testing I think08:10
poolieok, maybe i'll see him next week08:10
lifelessbut SRU is pretty important, I would be surprised if they aren't thinking about it08:10
pooliespiv, can you downgrade and test that, and then comment on the bug? or vila?08:12
vilahmm... I've got so many different configurations flying around that the main problem will be to find the right one where I can be sure to test the right bzr 8-)08:13
vilapoolie: on the other hand, I've *already* tested it one way or the other...08:14
poolievila actually if we have room to spare, an infrequent babune job that checks bzr selftest from maverick-proposed, and other things where it should be green, would be good08:14
pooliei should add babune to my 'poll' bookmarks08:15
pooliei wonder too if we can separate them into 'should be green' and 'not yet'?08:15
poolieor maybe you already did?08:15
vilapoolie: you know there are news feeds there08:15
pooliemm, i don't really believe in rss though08:15
vilapoolie: toying around with ppas or other things requiring root access is outside babune capacities so far (and will remain for the foreseeable future)08:16
poolieeven in a vm?08:16
vilapoolie: the focus is on running from branches, not toying with system setups08:16
vilaanother maverick vm then or may be I should instead look into *not* running from source08:17
vilaI haven't looked from this angle yet08:17
poolieon the whole i would say source is a higher prioirity08:18
peitschie(hi vila :) )08:18
vilababune slaves requires an available bzr, whatever it is, just a running one08:18
pooliesince we can change it much faster08:18
vilapeitschie: hey :)08:18
vilapoolie: +108:18
poolievila i see for instance http://babune.ladeuil.net:24842/job/selftest-jaunty/321/ failed08:19
pooliewith a subunit 'connection broken' message08:19
pooliewhich is not much of a message at all08:19
pooliewhat does that mean?08:19
vilapoolie: now, it's conceivable to run an hudson job without tying it to a bzr branch and look into configuring the vms with -proposed08:19
vilapoolie: shudder08:19
spivpoolie: replied to your bug 653307 comment: I think we are closer to a diagnosis now08:19
ubot5Launchpad bug 653307 in Ubuntu Distributed Development "Import fails with missing referenced chk root keys (affected: 1, heat: 7)" [Critical,In progress] https://launchpad.net/bugs/65330708:19
poolieright, just do it every day or every few days08:19
poolieoh good08:20
lifelesspoolie: you don't like rss?08:20
spivpoolie: unfortunately, it involves the word "stacking" :(08:20
poolielifeless: i just tend to find i don't want to read a whole bunch of news mashed together08:20
vilathat's the remaining pain point with subunit/testtools/hudson: random failures, not reproducible at will, unknown cause08:20
pooliei check different things at different intervals08:20
lifelesspoolie: I do quite like google reader08:20
pooliei know08:21
vilapoolie: best guesses includes: hangs or.... whatever can make a selftest subprocess die... no traces, go figure08:21
poolielifeless: this is one of my grumbles about subunit; it tends to fail opaquely in practice08:21
lifelesspoolie: :(08:21
poolievila i wonder if it crashed in C, or ran out of memory, or something like that08:21
poolievery good in other ways mind you, and i'm sure this is tractable08:21
poolievila is it possible to see the raw streams?08:22
vilapoolie: for a while I just hit delete and re-run, now I keep them but still re-run08:22
vilapoolie: could be, but it hasn't reach the top of my TODO list yet (and I suspect it won't for quite some time ;)08:23
pooliejust wondering08:23
vilapoolie: my gut feeling is more around timing issues than OOM or crashes08:23
vilapoolie: could also be virtualbox related08:24
pooliein some cases if unexpected output gets into the noise subunit will disconnect08:24
pooliethat too08:24
vilathere are a couple or network bugs randomly occurring here and there even at boot time for karmic/lucid/maverick where the eth0 interface is not properly configured/initialized including avahi failing or dhcp or goat or chicken08:25
vilaand sometimes the network connection is lost or the autofs fail or...08:26
vilayou know, the kind of bug that disappear as soon as you try to look at them ?08:26
vilajust like them08:26
vilaanyway, to come back to the initial question: I don't feel qualify to test '-proposed', there are too many reasons that my tests won't be representative08:27
vilaimbw08:28
vilaby the way, natty is not yet installable right ?08:28
vilaI mean, with a reasonable effort08:29
vilalike: download a bootable iso or tweak an apt sources files on a maverick vm :)08:29
vilahmm, so looking a bit at my vm configs: the idea is to test whatever is packaged by the distro, except for ubuntus where I add the stable ppa08:31
vilaand this rule is not fully enforced for windows and osx (but well, I'm just adding osx to the mix)08:32
vilathis is partly due to hudson requiring a system-wide available bzr to bootstrap the jobs08:32
vilaso I'm not super keen on introducing possible failures there... and setting up alternative install of bzr kind of defeat the purpose of testing -proposed, so this will require different vms...08:33
vilasaid otherwise: there are ways to inject -proposed in babune but any failure there will induce significant fallouts08:35
vilawhich may be a good thing... or not at all08:35
poolieok08:37
pooliewell, maybe we should wait for the existing ones to stabilize more08:37
vilawhat do you mean ?08:38
spivOk, I should finish work for the day.  Happy weekend (and happy travelling if appropriate)!08:38
poolieto get all the existing jobs continuously green08:38
jbowtieHey, hey, I'm in bzr-core!  I feel happy!08:38
pooliethanks spiv, have a good weekend, thanks for the updates on the bugs08:39
pooliekeep status-ing :)08:39
pooliecongrats!08:39
vilapoolie: ha right, yes, that why I just added osx now that windows is close to green08:39
poolievila, so i think the thing to do is: boot a vm that's configured to use maverick-proposed; aptitude upgrade; run bzr selftest; see what happens08:40
vilapoolie: I had a hudson plugin that was re-running some failures automatically but it stopped working, I didn't find the time to disagnose that one08:40
pooliei don't know how hard this is to put into hudson but it's only a few shell commands so it seems it shouldn't be all that hard08:40
vilaoh, *that* shouldn't be hard, right, but that's indeed adding other vm08:41
vilapoolie: But I did this test manually... can't remember when08:42
pooliethey're pretty cheap though08:42
poolieat least if they can be shut down when they're not actually running08:42
pooliewhich test?08:42
vilarunning selftest from a ppa installed bzr08:43
vilayou make me doubt now...08:43
vilaha no, -proposed not a ppa, meh08:44
poolieah, you've tested 2.2.1 that way?08:47
pooliethen you should say so on the bug...08:47
vilapoolie: no, I did test from the stable ppa not from the -proposed pocket08:51
vilapoolie: sry for the confusion08:52
vilapoolie: meh, bug you already did the test yourself if I read bug 636930 correctly right ?08:53
ubot5Launchpad bug 636930 in Launchpad Bazaar Integration "Upgrading a repository fails with 'Inter1and2Helper' object has no attribute 'source_repo' (affected: 10, heat: 92)" [High,Triaged] https://launchpad.net/bugs/63693008:53
vilaoh, you want one more verification08:54
poolieright08:58
vilawhy didn't you start with that ? :-p08:59
pooliesorry :)09:00
vilahehe, kidding09:00
Nghrm09:06
Ngtoday's maverick package update just failed because of bzr whoami09:06
Ngwhich would presumably be because I have etckeeper installed09:06
Nghave we managed to yet convince people that requiring identity to commit is bad, harmful and wrong?09:06
GaryvdMNg: To fix I did :09:07
GaryvdMsudo -i09:07
vilapoolie: grumble, subunit/testtools bugs, can't run -proposed on hudson09:07
spivNg: have we managed to yet get etckeepr to take care of setting one for you? ;)09:07
GaryvdMbzr whoami "Root <root@hostname>"09:07
Ngspiv: my laptop having a failed apt transaction suggests not09:08
GaryvdMWhich is a work around...09:08
Ngand you question answers mine that we continue to fail :(09:08
Ngplease change bzr's behaviour, this is madness09:09
jpdsNg: Is that not bug #616878 ?09:10
ubot5Launchpad bug 616878 in Bazaar "bzr commit error because of no identity (affected: 3, heat: 60)" [Medium,Confirmed] https://launchpad.net/bugs/61687809:10
Ngjpds: it very likely is09:10
GaryvdMYou can't keep everybody happy :-/09:10
vilaNg: what do you think will be faster: issuing 'bzr whoami "junk <me@exmaple.com>"' or getting an updated bzr in maverick ?09:11
Ngeven a change in behaviour to s/error/warn/ for id 0 would be something09:11
spivOr more precisely perhaps bug 64747509:11
ubot5Launchpad bug 647475 in bzr (Ubuntu) "etckeeper with bazaar stopped working for the update manager on upgrade to maverick (affected: 3, heat: 135)" [Undecided,New] https://launchpad.net/bugs/64747509:11
spivI suggest grabbing poolie at UDS09:11
vilaNg: not that we shouldn't *refuse* to change bzr behaviour, just proposing you a workaround to address your problem *now*09:12
Ngvila: sure, a workaround is no problem for me at all, but tools that build on bzr, like etckeeper, are very likely to be used by people who don't understand (or indeed care) the ins and outs of this, which is why I asserted that changing the behaviour in this way is bad, harmful and wrong09:13
Ngit probably seems very correct from a perspective of develoeprs working on code where every bzr interaction is human driven, but that's not the full reality of bzr's usage09:14
NgI will gladly talk to pooli e about it at UDS :)09:15
vilaNg: I indeed use bzr unattended and find it good to know where a commit is coming from09:15
Ngvila: I use bzr more with robots than people and username@hostname was fine for me09:16
poolieng, i may even fix it on the plain09:19
poolieespecially if you tell me what you think a good tradeoff would be09:19
poolies//plane09:19
vilaNg: then I suggest you contribute to bug #647475 or bug #616878 both of which give a good summary of the issues09:19
pooliei guess you want to go back to just no check, no warning?09:19
ubot5Launchpad bug 647475 in bzr (Ubuntu) "etckeeper with bazaar stopped working for the update manager on upgrade to maverick (affected: 3, heat: 135)" [Undecided,New] https://launchpad.net/bugs/64747509:19
ubot5Launchpad bug 616878 in Bazaar "bzr commit error because of no identity (affected: 3, heat: 62)" [Medium,Confirmed] https://launchpad.net/bugs/61687809:19
pooliewould it be reasonable to rely on /etc/mailname being set?09:19
Ngpoolie: so ultimately the limit of my real caring is breaking automated root committing, so I'd be happy if it would notice it was running as uid 0 and just warn, then go with root@hostname09:22
Ngerroring for users is, I think, a bit annoying, but it's way less likely to break critical things like package transactions09:22
vilaWhy isn' etckeeper setting the proper default ? Istm we're bikeshedding about what bzr default should be with a conflict between protecting unaware users of the consequences and third-party tools on top of bzr using it in an unusual way (running as root)09:24
Ngvila: it's not bikeshedding dude, bikeshedding is arguing about trivial details, this is me advocating for people whose critical systems are being broken by a significant change of behaviour09:25
vilaNg: the fix was about addressing a problem seen as critical by other users, so I still call it bikeshedding as far as different users want different defaults09:26
Ngvila: I think your characterisation of bug #549310 is misleading, it's not described as critical, it was not assigned a critical bug status and the requested just asked for a warning to be printed09:32
ubot5Launchpad bug 549310 in Bazaar "bzr should not try to guess username but require setting it with whoami (affected: 1, heat: 1)" [Wishlist,Fix released] https://launchpad.net/bugs/54931009:32
GaryvdMOk - this is really bike sheading: For a new qlog option: --show-wt or --show-trees?09:35
lifeless--show-iterables09:35
vilaGaryvdM: --show-trees09:35
peitschiegaryvdm: +1 for show trees09:41
vilaNg: well, this has been discussed in other places than here, and I was the one setting it to Wishlist at first. Nobody changed its status but it's hardly relevant now. Can we focus on what the problem is and the various ways it could be addressed ?09:42
vilaNg: critical for bzr is only used for bugs that should block a release (including data loss for example), *not* for that kind of problems which could be addressed by explicitly setting a default with a single bzr command09:44
Ngvila: I think my suggestion for handling uid=0 cases takes care of the most obviously dangerous scenarios09:44
NgI'd be happy to repeat that suggestion as bug commentary09:45
vilaNg: thanks09:45
Ng:)09:46
poolieng hang on, you're saying we shouldn't have fixed 549309:49
poolie54931009:49
pooliebecause it's not critical?09:49
pooliethanks for talking about this btw09:49
poolieoh, nm, i see you're disputing vila calling it critical09:49
Ngpoolie: indeed, I'm all for encouraging users to set good metadata, I just think the fix went too far09:50
Ngperhaps bzr could notice that it's not attached to a terminal and not error, but that sounds like a potential rats nest of fragility09:52
poolieNg would a warning rather than an error be ok?09:56
Ngpoolie: I think at one point james expressed a preferences for it to warn once only. Wearing an ubuntu user hat, if a warning stops things like etckeeper commits from failing, then yes09:57
jbowtieTwo more bug fixes and bzr-tfs should be good enough to use with codeplex, should make jelmer happy.10:05
poolienice one10:09
pooliegood night all10:09
GaryvdMNight poolie. Travel well, and enjoy uds!10:10
vilapoolie: night !10:10
jbowtiepoolie: Good night.10:15
=== Ursinha is now known as Ursinha-afk
Takwhen using the command api, is there any point to calling cleanup_now() ?13:20
gthorslundwhen moving around between versions is there any advantage of doing "bzr revert -r <revno>" instead of "bzr update -r <revno>"? with revert "bzr version-info" doesn't get updated, while it does with update.13:50
maxbgthorslund: revert is primarily useful if you wanted to commit the old tree state as a new revision, e.g. to back out changes14:14
maxbupdate is normally more useful for inspecting previous tree states, plus it will retain local modifications in your tree whilst you traverse through history14:15
gthorslundmaxb: so for a plugin like bzr-bisect it would make more sense to use update then? appears it's using revert now and then version-info fails.14:18
maxbIndeed.14:18
maxbAFAIK, bisect uses revert purely because 'bzr update -r' was not implemented until recently14:19
gthorslundmaxb: thx. I'm looking at that plugin anyway. I'll look at writing a bug report + patch later.14:19
gthorslundhave to go now14:19
GaryvdMHow do you fix a Conflicting tags error?14:24
GaryvdMI have established that the tag is wrong in my branch, correct in the parent14:25
GaryvdMSo I want to pull the tag from the parent.14:26
maxbGaryvdM: pull --overwrite will do it, if you're happy for all that entails14:28
maxbotherwise, locally delete the selected tags you don't want, then pull14:28
maxberm14:28
maxbs/don't want/know to be wrong/14:28
GaryvdMmaxb: thanks - --overwrite did the trick.14:29
=== oubiwann is now known as oubiwann-away
=== oubiwann-away is now known as oubiwann
=== Ursinha-afk is now known as Ursinha
abentleyjam, does history_db use PQM or should I just push to trunk?15:42
jamabentley: just push trunk15:42
abentleyjam, what happens if I specify a history_db, but that db doesn't have any information about my branch?15:43
jamit gets populated15:43
abentleyjam, is history-db-create optional?15:45
abentleyjam, or is it needed to create the database if it doesn't exist?15:45
jamabentley: yes, but faster for the initial import15:45
jamI'm not sure what happens if the file itself doesn't exist15:45
RenatoSilvawhat is bzr+ssh exactly? how does it work exactly?16:36
LeoNerdIt ssh's to the server, and runs 'bzr serve' as a remote command over SSH16:36
RenatoSilvabzr serve, not bzr <the-desired-command>?16:37
=== pynonoir is now known as Guest58983
=== beuno is now known as beuno-lunch
=== pynonoir_ is now known as pynonoir
LeoNerdCorrect..16:42
LeoNerdE.g. if you   bzr branch bzr+ssh://....     there's no point running  bzr branch  on the server, because the new workspace needs to be written on the client.16:42
LeoNerdSo, it ssh's to the server, and runs  bzr serve  which acts as a remote agent for the (local) bzr to talk to; taking commands on stdin, issuing responses on stdout.16:43
RenatoSilvacomplicated...16:51
LeoNerdIt's a fairly simple way to do it, really. A lot of tools do things this way. svn's ssh support did that. My own IPC::PerlSSH does that; it ssh's to the server and runs "perl" to accept a program on STDIN16:52
LeoNerdIt means you only have to open the ssh port, and most servers already have that, and the ssh server itself doesn't have to understand anything special. It already has all the user auth, for example.16:52
RenatoSilvaI definitely don't understand, it may be easier but I don't get it :(16:58
RenatoSilvaMaybe someday I'll see step by step or so, but now...I just can't grok it16:59
RenatoSilvaI use putty on windows and my private key is protected by password, ssh on Linux doesn't have password protection, besides it'd be necessary to export the ppk to ssh format, creating two files for the same thing17:00
RenatoSilvaI'd like to use putty on linux exactly the same way I do on windows, or at least use the ppk on linux (some other program to load it after asking passowrd)17:01
jbuntingi'm not very familiar with putty's private key handling, but does adding a passphrase to your private key on linux not do what you want?17:07
RenatoSilvadoes ssh on linux support protecting the key with a password? In putty, I just click over the file and it shows a dialog asking the password, and in linux, how is that?17:08
maxbssh-keygen -p -f I think17:09
LeoNerdIt's called a passphrase.17:11
LeoNerdBut yes, either supply one when you generate the key, or you can alter an existing one as maxb suggests17:11
maxbAnd frankly, I blame Putty for not supporting openssh's key format17:15
LeoNerdYeah. It's very annoying. I had to jump thruogh many hoops to put a PuTTY SSH key on my phone17:15
RenatoSilvamaxb: so when I do bzr push lp:project it will ask me the password in the terminal?17:16
LeoNerdpassphrase.  Perhaps. Depends if you're using an agent, and if it's loaded into it17:17
LeoNerdBut this is now just a general "how to use SSH" question, and not directly the fault or control of bzr itself17:17
maxbI assume so. Personally I've never tried it that way. I always load my key into ssh-agent so I don't have to enter the passphrase once per connection17:18
LeoNerdYeah.. it gets very tedious very quickly :)17:18
RenatoSilvahow to tell bzr to use "the ssh agent"? In windows it's BZR_SSH=plink for putty's agent17:18
LeoNerd(though, less so in bzr because e.g. the branch is still local..)17:18
LeoNerdIt should just happen automatically17:18
RenatoSilvaautomatically? bzr guesses it's meant to use ssh?17:19
vilaRenatoSilva: bzr on linux (but tell us which one you use if you want more precise answers) relies on openssh. Configuring the ssh agent there is... generally taken into account by your distro17:19
RenatoSilvasorry for the offtopic but just one more question? does "ssh-agent" / ubuntu  have a GUI interface for loading keys?17:20
RenatoSilvaok will reboot to linux, brb...17:21
LeoNerdssh-add  without a tty ought to do that, but easier just to run   ssh-add17:21
maxbRecent Ubuntu will run a GNOME reimplementation of the ssh agent which does have all manner of GUI nonsense17:21
maxbHowever, I like the CLI much better, so can't tell you much about that :-)17:22
LeoNerdAlso, the CLI has much less cope for a security attack17:22
LeoNerdIf "some GUI box" pops up and asks for your passphrase, and you neter it... how did you know it wasn't a Javascript box on some webpage, or whatever?17:22
vilaLeoNerd, maxb: You mean you use 'ssh-add <key>' only ?17:22
LeoNerdIf you see it in the very xterm you ran 'ssh-add' from, there's a much greater chance of it being legit17:22
LeoNerdvila: Yes. See my reason above17:23
maxbvila: Well, no, I mean my .bash_profile does stuff for me :-)17:23
vilamaxb: your.... where do you get the passphrase from ? smart card ?17:23
* vila keep for himself that he just add some 'ssh-add' for passwordless keys in a cron job :D17:24
maxbMy .bash_profile inspects .ssh/* and builds a list of keys, and invokes eval `keychain --eval $keys`17:25
maxbkeychain then ensures an agent is available and invokes ssh-add17:25
maxbI then get prompted either on the console or via pinentry-gtk for the passphrase17:25
vilawhat is keychain ?17:26
vilanot installed here apparently17:26
maxbkeychain is a manager for ssh-agent17:26
vilaan equivalent to seahorse then ?17:27
maxbIt will inherit a running ssh-agent from the environment, or start a new one if not found, and then write the necessary envvars to a file, so that future invocations of keychain can then reload the environment in another session17:27
maxbSo basically "find me my running ssh agent or make a new one if necessary"17:27
maxbplus, inspect the ssh-agent for what keys are loaded, and load any that are missing17:28
vilaoh, right, synaptic is telling me about it, thanks for the pointer17:29
vilahmmm, so that allows you to run cron jobs under password protected keys17:30
vilamaxb: I have a corner case that isn't covered here: I need to start a daemon on reboot, so there is noone to type the passphrase... any idea ? (I've gove with passwordless keys but...)17:31
maxbright, no other solution there17:33
maxbideally the passwordless keys will have forced command restrictions on the other end17:33
vilahmm17:34
mgzhey all.17:36
vilamgz: hey !17:38
vilamaxb: anyway, I will re-think about it now that I see what keychain offer17:39
mgzvila, does <https://code.launchpad.net/~gagern/bzr/bug663773-help-requires-testtools/+merge/38926> look okay to you?17:41
vilaargh, totally forgot about this one17:42
mgzalso, a second review on <https://code.launchpad.net/~jared-bunting/bzr/644990-win32-path-length-check/+merge/39104> and I'll land that as well.17:42
vilahmm, I think I'm vaguely uncomfortable splitting the command in its own file instead of digging a bit more for lazy loading but... so little time17:43
mgzimporting bzrlib.tests.script will import bzrlib.tests because that's how packages work17:45
mgzand bzrlib.tests *can't* lazy import testtools17:45
mgzit needs it for class definitions and such like.17:45
vilamgz: thanks, that's the bit I wanted to check17:46
vilamgz: pff, tell what you want, a good regexp for the jared patch will be *far* clearer :-p17:47
mgz:D17:49
vilamgz: we need a commit message for the jared patch, I can't summarize the fix there... my english fails :-/17:52
mgzI'm doing it.17:52
vilawell, let's be honest, the patch is too small for me to understand where this is used ;-)17:53
=== beuno-lunch is now known as beuno
mgzdone done done, thanks vila.17:58
jbuntingand thanks to you both17:59
vilajbunting: hey ! Thanks for the fix :)18:00
dooferladHi, I have a bzr-svn checkout that I am having trouble with - the file contents doesn't match an svn checkout of the same trunk.18:49
dooferladI assume I am having trouble pulling the latest changes from the server. I have been using bzr pull18:50
=== oubiwann is now known as oubiwann-away
peitschie_mornin all :)19:44
vilamgz: sorry, I was on other subjects this week and couldn't find the time to discuss about the transport hook. I just saw you put in mp into wip, does this mean you get new ideas ?20:34
vilas/in mp/your mp/20:34
mgzvila: decided to think about the testcase collection branch first, then come back to it20:35
mgzI still need to absorb jam's post on the mailing list20:36
vila:-/20:36
vilamgz: which thread ?20:36
jammgz: basic idea, just add a per-transport test that the connect hook gets called20:36
vilajam: I think bzrlib.tests.commands is full of tests ensuring that the connect hook is called20:37
vilanot proper unit tests though20:38
jamvila: mgz was saying explicitly that he was having problems getting smart transport to fire the hook20:38
jamso add a per transport hook20:38
jams/hook/test/20:38
vilaha, but smart transport doesn't respect the specific part we're interested in there, but let me read your mail first as I lack the context20:39
jamvila: I haven't followed in detail either, but as I understand it:20:39
vilawhich means I may be misunderstanding you20:39
jam1) we want to make sure the test suite cleans up after it connects20:39
vilaright20:39
jam2) we want to use a hook so we know what was connected so we know what to disconnect20:39
vilaright20:39
jam3) add a test that ConnectTransport classes call the hook20:39
jam4)?20:39
jam5) profit20:39
vilayeah, but the evil is in the details20:40
vilaThe proposal as it is can fit the definition you gave above20:40
vilamgz, jam: In which thread could I find this mail, I have some backlog :-/20:41
mgzvila: the original one about sorting out get_transport20:41
vilamp or ml discussion ?20:41
mgzlist, sec, I'll find it in the online archive20:41
mgzhttps://lists.ubuntu.com/archives/bazaar/2010q4/070670.html20:42
vilathxs20:42
vilaha, right20:43
vilathe problem here is that we'd like to put it on the transport object, but the smart transport one define the connection point in code that doesn't get access to the transport object itself: the medium20:43
vilahence the nudge to spiv to shed some light here, but AIUI he has been pretty busy with quite a nasty bug20:44
vilaThis means we can't just put a hook here since we require a transport object to call the disconnect() method20:45
vilajam: and you know mgz, if we embed a transport reference in the medium and/or the connection object, he willl run all over the place yelling: 'ref cycles ! ref cycles !!!!'20:46
mgz:)20:46
mgzspiv did give some useful pushback on that front, I might scale the branch back to a big list of weakrefs and a gc.collect call.20:48
vilamgz: I still haven't understood where the cycle occur which a bit frustrating (as in: If I don't grok this one, how could I know if I'm introducing cycles without realizing it)20:52
vilaand how on earth do you say 'without realizing it' in a shorter form in English ?20:53
mgzunwittingly?20:53
fullermdCycles just mean the bits of code are friendly with each other.  Who can be opposed to friendly code?20:53
dashit's like how you aren't supposed to date people in your office20:54
fullermdThat's a pretty unpleasant prohibition if you work at home...20:54
mgzI agree it can be pretty obscure, but there are really not many places that do it, and most would be clearer written another way (eg, rather than putting testcase instance methods on an object instance to override, use a subclass20:55
mgz)20:55
fullermd(Though actually, back when I worked in an office and dated somebody in it, it worked out OK)20:55
vilaIndeed, who said you can't date in your office ?20:56
vilamgz: can't you just add cleanup for these instances methods (yeah, yeah, I know, I know, not the same, but still) or are they needed *after* the cleanups are called (define another cleanup list in this case ;-p)21:00
mgzI have been!21:00
vilaCan't you also replace the ugly except/finally by a simpler call so that the ugly construct is defined only once with a loooong docstring ?21:02
vilamgz: You have been... what ?21:02
vila:)21:02
mgzadding cleanups for the tests that do slightly odd things with bound methods21:04
vilaha, right, sorry, not sure I read the last diff :-(21:04
mgzI've only done try/finally in a few cases where the code just wants to get ripped out later anyway, and for lock decorators where I can't think of a better idea.21:05
vilamgz: I'm not against the construct itself (I trust you about breaking the cycle this way, it's just that I'd like to *see* it), it's about its repetition in several places21:06
vilaIt spread FUD, literally :)21:07
mgzyeah, but, blame the existing lock decorator code for that, has the same thing four times.21:07
vilamgz: one more reason to address it in a cleaner way :-D21:07
mgzpatches welcome! :p21:10
vilamgz: The underlying fear in my case is that closure create cycles in an unexpected (to me) way21:10
vilamgz: you're right, I should do that21:10
vilamgz: except you're taking my offer to collaborate on one mp and divert it to *another* mp which is... border line ? :-D21:11
mgzright, I think that's a small but potentially valid fear, hence the testing for that and printing if a test isn't freed21:11
mgznot caring about it unless a big gc at the end doesn't shift the test is the other option21:12
=== Ursinha is now known as Ursinha-afk
vilamgz: Well, all I can say at this point is that this sounds a lot like: mp author: "We need this because X", reviewer: "Why not Y instead", author . o O (You have no idea about what X means, don't you ?)21:12
aaronfayHello all, just started looking at bazaar.  I'm interested in the push ftp feature, and I'm trying to stage an existing Wordpress setup with bzr.  I guess my question is: can I have bzr ftp files into an existing scenario?21:14
mgzaaronfay: yes. it's not nessersarily the best way of doing deployment, but it can work.21:16
aaronfaymgz: Thanks, I'm green with bazaar, longtime svn user.  This is probably not the best way to deploy sites, I know.  My problem is: I'm a django developer but more and more I'm working on client wordpress sites.  I generally don't have shell access, so I need a sane way to manage versioning themes/plugins/etc.  I've known I needed to switch to a dvcs anyway...21:18
marsabentley, ping, if you have a moment, I have a question about bzr send with pipelines21:21
vilaaaronfay: lp:bzr-upload21:21
abentleymars: sure.21:21
marsabentley, so I've done this before: 'bzr send -r ancestor::prev..'.  Is it supposed to set the prerequisite branch on the merge proposal for me?21:22
aaronfayvila: fantastic, thank you.21:22
rockyis there an easy way to see what the date/time was that a revision was pulled into a branch (not the original date/time of the actual revision)21:23
vilaaaronfay: feedback welcome21:23
abentleymars: no.  Prerequisite branches are a Launchpad thing, not a Bazaar thing.  The Bazaar merge directive format does not support them.  I recommend using lp-propose.21:23
marsabentley, great, thanks21:25
marsabentley, so lp-propose understands pipelines?  Or is there some other mechanism linking the two branches?21:26
abentleymars: lp-propose provides hooks that bzr-pipeline uses to set the prerequisite branch to the previous pipe.21:28
marsah, cool21:28
abentleymars: It's all a bit cute, because it's my own code cooperating with my own code.21:30
marsabentley, its well worth it.  bzr-pipeline is awesome21:31
abentleymars: I'm glad you like it.21:31
peitschie_rocky: no clue here sorry21:32
konrwhy do you personally use bzr?22:07
dashkonr: 'cause it's the best22:09
dashobviously.22:09
konrhaha22:10
konrBut Git has github, in which you can post your photo and have friends and followers!22:10
dashlaunchpad's better.22:11
peitschie_+1 for launchpad22:11
peitschie_issue tracking & integration with bzr is very handy22:11
peitschie_other big plus is the low barrier to mods through the rather nice bzr plugin system22:12
peitschie_took me about an hr to figure out how to write a few basic plugins22:13
peitschie_which have since easily been worth the time spent writing them :)22:13
Kobazi find launchpad to be a bit slow22:18
dashi don't mind, i am too.22:21
RenatoSilvawhy does bzr branch lp:project work if I have no key loaded in ssh-agent?22:44
RenatoSilvait's http not ssh? it defaults to http transport if no ssh key is loaded, that's it?22:48
Kamping_Kaiseri'd have expected it to use bzr:// if bzr+ssh isn't available22:49
Kamping_Kaiserbut i'm not ina position to answer your question22:49
RenatoSilvait's worse actually, even after ssh-add, I can't push to Launchpad22:50
RenatoSilvaI was missing bzr launchpad-login (I thought my private key would act as identifier but ok)22:53
fullermdLaunchpad doens't serve bzr://22:53
konroh god, 300mb and Emacs's repo is still at 68/113 :(22:54
RenatoSilvaanyhow I'd like to understand this, in windows bzr doesn't default to http, but here in linux it does22:55
Kamping_Kaiserfullermd: really? i'm supprised but ok :)22:55
RenatoSilvahmmm it was because of launchpad-login, if it's empty then bzr uses http it seems22:57
fullermdYes, that's how the lp: lookup chooses.22:57
* RenatoSilva pushed succesfully his tool for using ppk keys in linux: https://code.launchpad.net/~renatosilva/+junk/loadppk23:02
aaronfayvila: what is the advantage of bzr_upload vs bzr push sftp://...23:09
aaronfayI'm seeing now that push sftp isn't doing what I want.  I see it's created a directory remotely, but there are no files in it23:12
RenatoSilvahow to delete a lp branch from bzr?23:12
aaronfayHmm, ok, using both push sftp and push ftp (--create-prefix) I see the folder is created, but no files are added, any recommendations?23:18
fullermdPush pushes the VCS info, not the working tree files.23:23
aaronfayfullermd: Thanks for clarifying that.  What is the advantage/purpose of that?23:24
fullermdI...   um...   I don't know how to answer that.   :)23:25
aaronfayvila: Fantastic plugin, I like the 'using saved location' feature.  That's what you call a time saver :)23:25
fullermdThat's just what it's for...23:25
aaronfayfullermd: Hmm, no worries, I'm sure it will become apparent to me down the road23:25
fullermdIt's the dual to pull.  Pull is for syncing the local branch to a branch $THERE, push is for syncing a branch $THERE to the local branch.23:26
aaronfayBut not the files?23:26
vilaaaronfay: pushing the VCS info (the .bzr directory) is publishing the whole history of your project, if it's behind an http server, everybody able to reach your site can download it23:27
vilaaaronfay: bzr-upload, by contrast, only upload the working tree and *none* of the history23:27
aaronfayOkay, I see23:28
aaronfaybzr-upload isn't a branch then23:28
aaronfaySo it would be safe to say I could create a branch remotely with both push and bzr-upload23:28
vilaaaronfay: if you want *both* then bzr-upload is not the solution, you want bzr-push-and-update (but this requires ssh access AFAIR)23:28
aaronfayOkay, makes sense23:28
aaronfayThanks for the clarification23:29
vilaaaronfay: 'using saved location' was 100% borrowed from bzr itself :)23:29
vilapush/pull/update/missing/merge/send and I forget some certainly, all use the same principle23:30
aaronfayvila: as a cheat, could you "bzr push <location>" and then "bzr upload <location>" ?  That would effectively upload the .bzr folder and the files, correct?23:30
aaronfayI'm having trouble finding paramiko, is my problem23:31
vilaaaronfay: yes23:31
aaronfayvila: Okay, sounds like a good scenario for fab23:31
vilaaaronfay: OS/bzr versions ?23:31
vilafab ?23:31
aaronfayvila: XP sp3 (fab -> fabric)23:31
aaronfayvila: bzr 2.2.123:32
vilaaaronfay: if you use the bzr installer, paramiko should be included... jam, GaryvdM or bialix or any windows user will answer that better than me23:33
aaronfayvila: fabric is a python library for deploying stuff/automating stuff.  It will SSh and do all kinds of funky stuff, basically you set up a fab.py file, write a couple functions (that can do thinks locally or remotely) and then you run (for example) fab update23:34
vilaaaronfay: but it's rather unusual to upload the wroking tree *AND* push the branch23:34
aaronfayvila: the 'update' function might commit local changes, log into a server, and then svn up the changes remotely, delete a few things, etc, all in one command23:34
vilaaaronfay: as soon as you have access via ssh on the server, 1) use a smart server, 2) update the working tree locally23:34
aaronfayvila: my issue is: I need to be able to push files to a server I don't have ssh access to, and it would be equally nice to leave a copy of the branch there for future usage if possible23:35
vilaaaronfay: just use hooks either in the bzr client or the bzr server, if you're already writing python code, you'll feel at home and get access to all the needed objects23:35
aaronfayvila: in most cases I can't run bzr server :(23:36
vilaaaronfay: you'd better push the branch in another place23:36
aaronfayvila: Thanks for your input, I have a much clearer idea where to start now.  Cheers23:36
vilaaaronfay: if you have an ssh shell access and can run bzr there, you already have a bzr server23:36
aaronfayvila: sorry, can you elaborate on the last part?23:37
vilaaaronfay: there is *nothing* to configure23:37
aaronfayvila: how do you "start" it?  Or do you serve it over apache?23:37
vilaaaronfay: all the client has to know is where bzr is on the remote side if it's not in default path23:37
vilaaaronfay: roughly: 'ssh <server> bzr serve' is launched on the client and we send commands and receive answers23:38
vilaaaronfay: so if you have a branch in your home directory at example.com you do: bzr branch bzr+ssh://example.com/~/my/branch23:39
aaronfayvila: Okay, very good to know23:40
vilaaaronfay: if bzr is not in the default path you do: BZR_REMOTE_PATH=/path/on/remote/bzr bzr branch bzr+ssh://example.com/~/my/branch23:40
vilaaaronfay: or the equivalent on windows23:40
aaronfayHeh, this is very fantastic, I'm quite excited about Bazaar.23:41
aaronfayThanks again for all your input.23:42
vilaAlways happy to help (tm jam)23:42
* vila off to bed 8-/23:43

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