/srv/irclogs.ubuntu.com/2012/06/13/#bzr.txt

=== bradm_ is now known as bradm
=== cinerama_ is now known as cinerama
=== echo-are` is now known as echo-area
=== matsubara_ is now known as matsubara
mgzmorning08:31
=== matsubara_ is now known as matsubara-lunch
=== matsubara-lunch is now known as matsubara
=== apw is now known as apw_
=== apw_ is now known as cafetiere
=== cafetiere is now known as apw_
=== apw_ is now known as cafetiere
=== cafetiere is now known as apw
BasicOSXIs the bzr dev branch still at http://bazaar.launchpad.net/~bzr-pqm/bzr/bzr.dev? I've been at revision 6524 for what seems like months14:13
=== yofel_ is now known as yofel
mgzBasicOSX: yup, a few things want mergin up from earlier series though14:27
jmljelmer: oh right, so, bzr-stats14:28
jmljelmer: I find myself working on similar stuff from time to time and am thinking of merging my similar stuff into it14:28
jmljelmer: but I don't think I understand the code in bzr-stats very well.14:28
abentleyjelmer: I'd like to introduce my team-mates to native colocated branches.  Are there any docs?14:31
jmlthere are no docs, there is only pain.14:32
abentleyjml: Is that specifically about colocated branches?14:33
jelmerjml: okay14:34
jmlabentley: yes. I don't know of any docs.14:34
jelmerjml: Contributions are welcome, I can also give you pointers if that would help.14:34
jelmerabentley: I don't think they're ready for production use either yet; the API side is there, and some bits of the UI14:34
jmlabentley: and while I really like using them, they are buggy enough that I personally wouldn't recommend them strongly to another team mate.14:34
jmljelmer: what's all this 'classify' stuff about?14:34
mgzmisspelling of the day: Ununtu14:35
jelmerjml: In what way are they buggy? I would rather say they're unpolished14:35
jelmerjml: It classifies files as documentation, code, translations, etc14:35
jmljelmer: yeah, unpolished is better.14:35
jelmerjml: It's used for the About dialog in bzr-gtk to give people proper credit14:36
jelmerjml: See "bzr credits"14:36
abentleyjelmer: the main pain point for me is the lack of config support.  I want a way to map file://foo,branch=$BAR to lp:~abentley/project/$bar.14:36
jmljelmer: ah ok.14:37
jmljelmer: how does the collapsing work? I sort of understand collapse_by_person, but I don't think I get collapse_email_and_users. Should they be used in conjunction?14:38
jelmerjml: I'm not sure, I think that was originally jam's code14:39
jmljelmer: my motivating use cases are getting things like number of mainline commits by person since a date, or finding out how many lines of code have been added / removed per person. duplicate records are a pain there.14:39
* jelmer looks14:39
jelmerjml: IIRC it groups by both fullname and email14:39
jmljelmer: e.g. http://paste.ubuntu.com/1039164/ and the awful code in utilities/community-contributions.py in Launchpad.14:41
jelmerjml: ah, I see14:41
jamjml: the issue is that people often don't use the same user information over time. Especially in early bzr, and for people working on many different machines. So we try to figure out that john@arbash-meinel.com is the same as john@canonical.com or whatever. But also user's don't spell their name 100% the same, etc.14:42
jelmerjml: I think the collapse code could definitely be useful there14:42
jamlike the jelmer in your example14:42
jmljam: right, I think I understand the issue14:42
jelmermaybe it would be worth putting into bzr core?14:42
jelmerI think it already has a fair amount of tests14:42
jmljam: but not how to go from "I have a list of usernames please make me something that maps them to a best guess of a list of people"14:43
jamjml: well bzr-stats was my attempt at it, but I wrote that code ~5 years ago. So I haven't been thinking about it as much recently.14:43
jmljam: heh, understood.14:43
jamI know empty strings were a problem, as it ended up linking everything to me14:43
jamsince somewhere I committed with only an email address, or something like that.14:44
jamProbably doing it as a 'these are some known mappings, try to find more' might be an interesting way to do it.14:44
jelmerjam: I vaguely recall that was fixed since14:44
jamjelmer: it was, hence *were* a problem.14:44
jamI'm not sure if there were other edge cases that linked too much.14:44
jelmerjam: sorry, English reading fail14:45
jambut the "map username to all known email addresses" and "map email addresses to all known usernames", and then you can iterate that cycle until it converges.14:45
jamjml: ^^14:45
jmljam: thanks.14:45
jmlthe other thing I want to do a lot is work around PQM claiming to own the merge commit14:46
jmlwhich is accurately done by assembling all of the authors of all the merged revisions14:46
jamjml: you can argue that the merge commit isn't significant, vs the actual commits, so just ignore the PQM done.14:46
jamjml: how do you get negative numbers in your list?14:47
jamor is that LoC ?14:47
jmljam: not if one of your metrics is 'how many changes landed on trunk' or if you want to answer 'what trunk changes have I landed since January'14:47
jmljam: net LoC. Lines added - lines removed.14:47
jamjml: sure, but then you should be ignoring all the individual commits, I think.14:47
jmljam: it's motivated by the LP LoC-neutral change policy.14:47
jmljam: I don't understand. How do you get "what trunk changes have I landed since January" without looking at individual commits in a PQM-managed branch?14:48
jamjml: so if the revision is in the history, it has landed on trunk, right?14:50
jmljam: I guess.14:50
jamso if you want to split out "how many commits" from "how many features/branches have landed".14:51
jamThen you probably want to go to each rev, and look at just the merged revisions. And attribute that to the individual authors (each gets +1 per pqm commit)14:51
jammerge_sort is your friend there14:51
jamwhile not mainline: authors.add(rev.authors)14:52
jmlok. that makes sense.14:53
jamjml: you're more than welcome to expand bzr-stats if it is doing what you want, and you are also welcome to propose merging it into bzr core (I think). It seems a bit waffley about accuracy of stats, which is why I would tend to put it in a plugin, but there has certainly been a move to put more in core.15:08
jamanyway, EOD here, you can always email if you want more info15:08
jmljam: thanks15:10
=== zyga is now known as zyga-afk
tedgIt was suggested that I look at Bazaar Keywords plugin: http://wiki.bazaar.canonical.com/KeywordExpansion16:12
tedgBut that seems kinda dead16:12
tedgIs that part of the main Bazaar now or was it considered not a good idea?16:12
mgztedg: generally, there are nicer ways of doing what that kind of thing was used for in cvs/svn16:18
mgzinvoking bzr in your build script to get version and so on.16:18
tedgThe problem is I don't have a build script :-/  This is for getting a juju charm to have the same revno as the Bazaar repo it's in.16:19
tedghttp://askubuntu.com/questions/149553/how-do-i-make-a-juju-charms-revision-match-the-bazaar-revision-of-its-repo16:19
mgzI did point hazmat at keywords for that kind of thing the other day16:20
mgzhave you tried it and can't get it to work, or are just worried about it?16:21
mgzthere may be juju-specific annoyances to work around, to do with how it deploys charms and what it installs on units16:22
tedgI haven't tried keywords, it doesn't seem to be in Ubuntu and has no releases... so that, in general, makes me uncomfortable :-)16:24
tedgPlus, I don't understand how things would work if someone didn't have the plugin.16:24
tedgIt seems like I'd be making my repo "ted only"16:25
tedgSo I was hoping the answer was "merged into mainline under a different name" :-)16:25
mgzwell, I suspect it straight up won't work as juju wants to run from branch effectively, and doesn't install any bzr plugins16:27
mgzbut having that and no way of pulling the revision from the charm is a little daft.16:27
tedgI honestly don't know why they have "revision" at all -- seems like it'd be better to always pull it from the VCS, what ever that may be.16:29
jelmertedg: that doesn't necessarily work, since not all VCSes have sortable revision ids16:35
tedgjelmer, All the ones that I care about do ;-)16:36
tedgAnd, you *could* calculate it for others with some sort of plugin.  It'd be expensive, but eh.16:37
=== deryck is now known as deryck[lunch]
HanI just got an out of memory error while running "bzr branch bzr://bzr.savannah.gnu.org/emacs/emacs-24"17:13
HanThis system has got 4Gb memory. What can I do to prevent that?17:14
jelmerHan: what version of bzr are you using?17:29
HanBazaar (bzr) 2.4.217:34
HanHoi Jelmer. :-)17:35
HanIt's a kind of a shame to download 120mb and to end up with nothing.17:36
jelmerI was wondering if it was /the/ Han :-) hi!17:59
jelmer4Gb should be plenty; and AFAIK most of the memory improvements are already in 2.417:59
lifelessHan: are you running 32-bit or 64-bit? If 32-bit, then individual processes cannot use all 4GB (not that we should need to in this case...)18:00
Han6418:00
HanI'm going to try the same command with 2.5.1, see what happens.18:05
=== matsubara is now known as matsubara-afk
=== deryck[lunch] is now known as deryck
javehow can I revert all the changes to a file in a branch, so the file is same as upstream?19:09
=== hazmat is now known as kapilt
pikkachuhi, I'm getting this error when I try to branch from launchpad: http://pastie.org/pastes/4082141/text20:15
pikkachuBazaar 2.5.0, Python 2.7.3, Windows 7. Any help?20:16
mgzpikkachu: looks like you have ssh problems, try `ssh -vv yourlpusername@bazaar.launchpad.net`20:17
pikkachumgz: I use PuTTY's plink (BZR_SSH=plink)20:22
mgzah, in which case, manually run `plink you@bazaar.launchpad.net` and accept the fingerprint20:24
jelmer'evening mgz, pikkachu20:25
mgzthen try again (you have BZR_SSH set to the location of plink, right?)20:25
pikkachugood evening jelmer20:26
pikkachumgz, I have the impression it was working before, and that in my old windows I didn't need to do that :(20:27
mgz..just try it? I bet plink will complain about the fingerprint20:29
pikkachuthank you mgz, it worked!20:33
pikkachunot sure why it used to work before, but it's gone now20:33
mgzpresumably putty learnt it before but then forgot it again recently20:37
mgzor you're being MITMed20:38
pikkachumaybe in older versions of bzr/putty, it used to ask to add the server right there in $bzr branch20:40
mgznope, that never worked unfortunately20:43
pikkachuhmm, then it seems my feeling I could branch before is just wrong, and I just had added the host manually before in my old windows with plink/whatever but can't recall20:47
* pikkachu searches for excuses to not think he's being mitmed20:47
=== kapilt is now known as hazmat
mgzwell, I can see what the fingerprint I have, then you can compare with what you got for bazaar.launchpad.net20:49
mgz$ ssh-keyscan bazaar.launchpad.net>/tmp/key && ssh-keygen -lf /tmp/key20:52
mgz# bazaar.launchpad.net SSH-2.0-Twisted20:52
mgz1024 9d:38:3a:63:b1:d5:6f:c4:44:67:53:49:2e:ee:fc:89 bazaar.launchpad.net (RSA)20:52
mgzyou had:20:52
mgzssh-rsa 1024 9d:38:3a:63:b1:d5:6f:c4:44:67:53:49:2e:ee:fc:8920:52
mgzso you're fine :D20:52
pikkachu:)20:58
pikkachuthanks all21:48
deepaHi, how does partial trees work?22:33
deepadoes it differ to partial checkouts in some interesting ways that miht make me not want to use it?22:34

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