/srv/irclogs.ubuntu.com/2012/01/27/#bzr.txt

niemeyerHello everybody00:14
niemeyerIs there any way to tell bzr pull something like --overwrite-my-local-tags-only00:15
niemeyer?00:15
wgzI can't quite guess from the name...00:22
wgzah, you maybe mean, no new revisions, just get the tags updated?00:23
niemeyerwgz: Yeah, don't do something crazy with my branch, but overwriting tags that point to different revisions is fine00:23
wgz`bzr pull -r0 BRANCH` should work.00:24
wgz-r1 might be safer as it'd tell you before pulling in tags from an unrelated branch00:24
niemeyerwgz: Not sure I see where you're coming from00:26
niemeyerwgz: This doesn't really pull the tag changes?00:26
niemeyerwgz: I mean conflicting tags00:26
niemeyerwgz: Which are currently only pulled down with --overwrite00:27
niemeyerwgz: Which unfortunately has other side effects well beyond pulling tag replacements00:27
wgzhm, the check for tags may happen at a later stage00:29
wgzand tag conflicts are another fun thing altogether00:29
wgzhm, no does work00:31
wgzso, it's only the conflicts case then to worry about00:31
niemeyerwgz: Yeah, that's exactly the problem I'm trying to solve :(00:32
niemeyerwgz: I need to overwrite tags commonly, but using --overwrite all the time is not nice00:33
niemeyerIt's just waiting for the day it will _actually_ overwrite something, unintendedly00:33
wgzfile a bug, it doesn't seem quite as rabbit hole-ish as other tag related requests.00:36
fullermdYou could just make an alias that deletes all your tags, then pulls   8-}00:39
niemeyerwgz: Thanks, will do00:41
niemeyerfullermd: This is part of the Go language's standard installation tooling00:41
niemeyerfullermd: I'm not keen on putting such an ugly hack there00:41
niemeyerIt's what enables people to use Bazaar to host Go packages00:42
niemeyerThe reason they have to override the tags is that Go allows people to tag which revision of the branch a given release of Go should pull00:42
niemeyerand this of course means the tags have to be overwritten every now and then00:42
wgzhow about replacing .bzr/branch/tags with an empty file as an ugly hack? :)00:44
fullermdAre you sure you need the pull to update the tags?  I mean, you don't really care about the tags locally, as long as you have the right rev, right?00:45
niemeyerfullermd: It pulls the changes, and updates to the given revisoin00:46
fullermdAnd I think -r on pull resolve the rev as the remote side things of it.  So maybe "yeah, my local tags list is out of date, but the rest still works" is a usable step.00:46
wgzand yeah, does seem like there should be a neater solution to that particular issue, which I'll leave to fullermd00:46
fullermdOh, neat solutions are _totally_ not my baliwick   8-}00:46
fullermdUnless you mean neat in the sense of "Hey, neat, I didn't know my elbow bent that way!"00:47
niemeyerfullermd: It doesn't pull from remote until requested.. it may shift revisions around multiple times though00:47
niemeyerLOL00:47
niemeyerfullermd: We can talk eyebrows later, but I have to find a solution to that first. :)00:47
fullermdRight, but I think the resolution would happen on the far side's view.00:48
fullermdSo, e.g. `bzr pull -rtag:FOO where://ever` would look at that remote side for tag 'FOO', turn that into a revid, then pull that revid down and set the tree to it.00:48
jelmer_niemeyer: bug 681792  ?00:48
ubot5`Launchpad bug 681792 in Bazaar "wishlist: bzr pull --overwrite-tags" [Medium,In progress] https://launchpad.net/bugs/68179200:48
niemeyerjelmer_: YES00:48
fullermd(tag FOO existing locally pointing to some other rev would make it kvetch about the tags not matching, but that would be after it set everything to the 'right' rev anyway)00:49
* niemeyer +1s.. or subscribes.. or thumbs ups, or whatever the me too of the day is00:49
wgz+affectsmetoo00:50
niemeyerjelmer_: Man, and it's in your plate too00:50
wgzhas the plus, and affects, and me too.00:50
niemeyerjelmer_: I'm afraid you won't want to see my name anymore.. ;-)00:50
jelmer_niemeyer: hehe00:51
jelmer_niemeyer: at least you're not adding more bugs to the list this way.. ;-)00:51
jelmer_niemeyer: so, that bug actually has a branch attached that fixes it (IIRC the emacs folks asked about it). It just lacks tests, but we can add those and make sure it ends up in 2.5/precise.00:52
jelmer_niemeyer: IOW, it shouldn't be more than an hour of two of work additional. How much do you need it?00:54
niemeyerjelmer_: Just added the explanation to the bug00:55
niemeyerjelmer_: I need it badly.. everybody that is using the "go" or "goinstall" standard tools now from Go are running "--overwrite" on their branches often00:55
niemeyerWithout even realizing00:56
jelmer_niemeyer: ok00:56
wgzmeh, nearly got to bed an hour ago01:02
niemeyerwgz: :)01:02
niemeyerBtw, on a half-related side note, how do I check if e.g. http://launchpad.net/project has a branch associated with it programatically? Can I poke in lp.net/project/.bzr or something?01:03
jelmer_niemeyer: you can use the Launchpad API to see if it's got a development focus branch01:03
niemeyerjelmer_: Is there a non-api way with a trivial http get?01:04
niemeyerjelmer_: E.g. if /project/.bzr/location.conf 404s it's not there01:04
niemeyerjelmer_: Or is it more magic than that?01:04
jelmer_niemeyer: I guess something like that would work too. Perhaps http://code.launchpad.net/PROJECT/.bzr/branch-format ?01:04
jelmer_(assuming the project is public, etc)01:05
niemeyerjelmer_: Perfect01:05
niemeyerjelmer_: Thanks01:05
niemeyerThat's for the go tool as well.. I have to improve the handling of series01:06
jelmer_ah, no launchpad API library for go yet ? :)01:06
niemeyerjelmer_: Oh, we have a fairly complete one actually :)01:06
niemeyerjelmer_: http://goneat.org/lp/lpad01:07
jelmer_ah01:07
jelmer_neat01:07
niemeyerjelmer_: The documentation is a bit messy because they've made a change in godoc that is mixing up some methods, but that's being fixed already01:07
niemeyerjelmer_: But the reason I'm looking for something simpler is that it'd be too much to use that in the go tool01:07
niemeyerjelmer_: I just want to disambiguate the case of lp.net/project/a/b/c01:08
jelmer_ah, I see01:08
niemeyerjelmer_: It could be a branch at lp.net/project with /a/b/c, or a series branch at lp.net/project/a, with a /b/c directory01:08
niemeyerjelmer_: A quick get on the branch-format you pointed to solves the question01:09
niemeyerProfit!01:40
AfCJust filed a UX bug; is there a tag I should add?02:29
achianghello, can someone please remind me how to bypass bzr's builtin ignore file and force it to commit binary .so files?03:27
achiangoh, i just edit ~/.bazaar/ignore03:29
achiangi wonder if that is auto-created the first time i use bzr?03:29
AfCIf you add & commit an ignored file, it won't be ignored03:33
achiangbzr init ; bzr add ; bzr commit in an existing directory with foo.so files will skip the .so files (obviously due to ~/.bazaar/ignore)03:41
achiangi haven't tried directly doing: bzr add foo.so03:41
mwhudsonachiang: directly doing bzr add foo.so will add the file03:58
achiangmwhudson: thx. i was just being lazy, i suppose. :)04:00
vilahey guys !07:33
mgzmorning!09:25
vilamgz: hey !09:32
vilamgz: ping, pm ?09:48
mgzthanks vila09:49
wgzhttp://stackoverflow.com/questions/4145123/whats-the-right-way-for-a-python-twisted-program-to-validate-an-ssl-certificate10:12
LeoNerdMmmm.. async. SSL. Always fun10:14
vilawgz: this doesn't really give an easier solution for windows than getting the curl bundle (as far as my reading went)10:23
vilaso far10:23
mgzindeed, that's the point.10:23
mgzand (without bothering the man in here) if that's what g-lyph says I'm inclined to believe it's true10:24
vilamgz: err, not sure I follow, you conclusion is to do what ?10:42
vilas/you/your/10:42
mgzcry?10:46
mgzwell, add the nix style certs to the all-in-one installer at least10:47
vilaI don't get it, with the code we have already in place, all we need is a single bundle with all the cert roots in there, ha ok10:47
vilaI agree it's not a super clean solution but it will at least avoid blocking everybody10:48
vilaparanoiac users can still chose to opt-out trivially and we'll find a better way later10:48
mgzI'm not sure I know of any good twisted introductions10:56
mgzhas always been obtuse, despite the reasonable amount of documentation and such like10:57
mgz2.5 needs from __future__ import with_statement right?11:28
mgz...yes, check it yourself lazy11:28
mgzmorning jelmer11:34
jelmer_ohai mgz12:07
jelmer_my irssi highlights seems to be b0rked :(12:08
* mgz strips jelmer_'s underscore12:08
jelmer_hah, good point12:09
=== jelmer_ is now known as jelmer
mgzhaving the same nick and name is simple at least12:09
mgzrealised in mp comment I have confusing style by referring to John and Vincent... but then also Larstiq. Mixing up names and nicks is bad form.12:10
jelmermgz: I think you'll find it's LarstiQ :P12:11
* jelmer stops being pedantic12:11
* LarstiQ cringes12:12
mgzlarsty-queue?12:12
mgzI wonder what the most painful way to pronounce it is :)12:13
LarstiQmgz: oh there are many12:13
mgzcan't top qt and gnome whatever.12:13
LarstiQjelmer: one of these I might switch to all lowercase, but I'm afraid that won't stop people from occasionally capitalising the l12:15
jelmer:)12:18
mgzjelmer: so, I'm doing review stuff now (though vila has already bashed a fair bit), want to hop on mumble or similar?12:19
sidneihi folks, i'm seeing a traceback with tarmac in precise, which smells like maybe some api change: http://paste.ubuntu.com/818744/12:26
mgzsidnei: bug 91773312:28
ubot5`Launchpad bug 917733 in Tarmac "AttributeError: 'NoneType' object has no attribute 'cmdline_overrides'" [Medium,In progress] https://launchpad.net/bugs/91773312:28
sidneiaha12:29
mgz...which has actually been merged into 2.512:29
mgzthere's also a tarmac branch though, which explains the in progress12:30
sidneii guess it wasn't released in precise yet though?12:30
jelmermgz: sounds good - mumble it is12:32
mgznope. there are also enough things like this that I'm wondering if leaving it to 2.5 final won't be a bit long12:32
=== yofel_ is now known as yofel
mgzha, talking to myself.12:51
* mgz goes back to humming12:51
jelmermgz: sorry13:01
jelmermgz: I was talking to myself too13:01
jelmermgz: my laptop (which I was using solely for mumble) suspended because it hit ten minutes of "inactivity"13:01
jelmerargh,not again13:12
mgzjelmer: sus... right13:13
jelmerI was talking about the same thing as last time too :)13:13
mgz:D13:13
mgzit's a curse!13:13
mgzjelmer: that might be sign for lunch14:05
jelmerheh14:05
jelmergood point14:05
jelmerback in a bit14:05
mgzhm, cake might be a bit too lemony15:13
mgzbug 903696 is pretty popular15:16
ubot5`Launchpad bug 903696 in bzr-gtk (Ubuntu) "bzr-notify crashed with SIGSEGV in g_return_if_fail_warning()" [Medium,Confirmed] https://launchpad.net/bugs/90369615:16
jelmerWHY am I in three independent IRC channels where people are talking about cake?15:30
* jelmer feels like he has missed a memo, or something15:30
mgz:)15:30
mgzit's all gone now15:30
mgzjelmer: mumble again?15:34
mgzheh:15:44
mgz    def destroy_branch(self, name=None):15:45
mgz        """See BzrDir.create_branch."""15:45
jelmermgz: okay15:46
jelmermgz: hehe15:46
mgzneither BzrDir.create_branch nor BzrDir.destroy_branch actually exist any more15:47
mgzas they've been moved up to ControlDir15:48
mgzso, the current error message for the destroy branch no branch branch branch branch branch15:59
mgzsorry, got carried away15:59
mgzis: 'Not a branch: "": location is a repository.'15:59
mgzand destroy_branch is documented as taking None (that should be 'the empty string' now, right?)16:00
mgzfor name for the default branch16:01
mgzsame in create_branch16:01
vilajelmer, mgz : pfew, finally, I think I found the pristine-tar last blocking issue: pbzip2 needs to be upgraded on jubany...16:36
mgzjemler: https://lists.ubuntu.com/archives/bazaar/2012q1/074286.html16:38
vilayeah jemler, no wonder his filters won't catch it ;)16:38
mgzjelmer: ;_;16:57
hariomI want to download a repository that is password protected. Is there any way to send username and password in a single command (eg: username:password@someserver/repo)16:57
mgzhariom: in the context of what protocol? http?16:58
hariommgz: https. I am currently using something like: bzr branch bzr+https:// ...          I want to add username and password also16:59
mgzhariom: what you probably want is to add the details to your authentication.conf17:01
hariommgz: Actually I am doing it to automate my program pulling the repo and setup the system. I can't expect my user to modify authenticate.conf17:03
hariommgz: bzr branch <scheme>://<user>:<password>@host:port/path17:04
hariomI guess this should do. Just read the doc17:04
mgzit does work, bar possibly a few edge cases you probably won't hit17:05
mgzbut putting the auth in the location isn't really ideal17:06
=== deryck is now known as deryck[lunch]
jelmervila: hi17:27
jelmervila: is there an easy way to do RegistryOption perhaps?17:27
dandraderhello! how can I merge two commits into one in bzr? Like the equivalent to "git commit --amend" or "git rebase -i" and then selecting "squash"17:29
mgzLarstiQ: yell when you've pulled in the change for the bzr-pypy branch and I'll land it17:33
mgzdandrader: if they're the two you've just done, you can uncommit twice then commit17:34
mgzotherwise there's the bzr-rebase plugin for more complex stuff17:34
dandradermgz, ok, thanks!17:35
=== deryck[lunch] is now known as deryck
SpamapSWhen using merge-upstream, I got some of these:19:17
SpamapS  Conflict adding files to plugins-src.  Moved to root.19:17
SpamapSI'm a bit confused how to deal with them19:17
LarstiQSpamapS: is merge-upstream from bzr-builddeb?19:18
SpamapSyes19:18
LarstiQSpamapS: do you have some more context on those conflicts? Maybe `bzr status` output?19:20
SpamapSThese look like just new files, not sure why there is a conflict19:21
SpamapShttp://paste.ubuntu.com/819191/19:21
SpamapStheres the full bzr status19:21
SpamapSI'm inspecting the contents of the branch.. cmp'ing to an untar of the imported tarball.. and it all looks good19:23
SpamapSso maybe this is just a weirdness of merge-upstream ?19:23
LarstiQSpamapS: for the plugins-src conflict, the only thing I could think of is that in one tree a file got added with the same path (but different file-id) as a file in the other tree19:27
LarstiQbut for the license files that doesn't make sense19:27
SpamapSLarstiQ: whats odd to me is that the resulting contents are perfect, so I don't know why it thinks there is any conflict19:28
* LarstiQ looks at the code19:29
LarstiQoh hey, there is `bzr help conflict-types`19:32
LarstiQSpamapS: it's the Missing parent conflict19:34
SpamapSLarstiQ: ahh so merge expected that there would be a revision for that file, but there wasn't?19:36
SpamapSI'm pretty sure its ok.. and won't break.. much. :)19:37
LarstiQSpamapS: no, the file is added to a directory in branchA and deleted in branchB19:38
LarstiQSpamapS: that is, that _directory_ has been deleted19:38
SpamapSah, ok, so there's no parent for the directory itself.19:39
SpamapSthis sort of makes sense. :)19:39
LarstiQSpamapS: if you look at the history you can probably figure out which dir those files got added to that is now gone19:39
SpamapSLarstiQ: from what I'm seeing, they all got added to the root19:40
SpamapSLarstiQ: unless rsync is broken too.. it verifies that the contents of the tarball, and the contents of my working copy, are identical19:40
LarstiQSpamapS: but if you're happy with their current location that would mainly be to satisfy your curiosity19:40
LarstiQSpamapS: yeah19:40
LarstiQwgz: pulled, confirmed it's fine under pypy, and pushed19:42
LarstiQwgz: should I not change writes to build_tree_contents?19:42
wgzLarstiQ: I wouldn't bother, as generally there are also bigger things that would be worth changing with old tests19:49
wgzand then you're rewriting it, which risks breaking the test19:49
LarstiQwgz: right19:49
* LarstiQ nods19:49
wgzLarstiQ: sent. now, off to quiz, bye!19:53
LarstiQwgz: ciao!19:54
LarstiQwgz: oh, and thanks :)19:55
sidneijelmer, filed bug #922800 about the bzr-git vs github issue, before i forget20:16
ubot5`Error: Launchpad bug 922800 could not be found20:16
jelmersidnei: thanks20:22
jelmersidnei: is there a particular reason it's private?20:22
sidneijelmer, launchpad decided so? i didn't pick private.20:22
jelmersidnei: ok, just checking20:23
* jelmer changes to public20:23
Noldorin_hi jelmer20:48
jelmerhi Noldorin_21:09
jelmerhow's it going?21:09
Noldorin_good thanks...21:23
Noldorin_you?21:23
jelmeralright too21:25
Noldorin_jelmer, how's progress on... things? :-)21:28
LarstiQjelmer: ehm, get_get_config should be test_get_config?21:49
jelmerLarstiQ: whoops22:00
jelmerLarstiQ: I noticed it in the per_branch tests, and then I still copy-n-paste it incorrectly..22:00
jelmerNoldorin_: Hacking on colocated branches, mostly22:31
wgzcame third.23:11
Noldorin_jelmer, ah okay :-)23:19
Noldorin_jelmer, will they be in 2.5 final then?23:19
Noldorin_they look pretty mature now23:19

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