/srv/irclogs.ubuntu.com/2011/06/23/#bzr.txt

=== spm` is now known as spm
=== cinerama_ is now known as cinerama
=== lifeless_ is now known as lifeless
=== medberry is now known as med_out
jammorning all08:23
jelmerhi jam08:25
jamhi jelmer, feeling better?08:25
jelmeryeah, much better08:26
jamI still mean to have you come out and visit us in Eindhoven sometime. Maybe after we settle from the sprint?08:26
vilahi jam, jelmer08:26
jamhi vila08:26
vilajelmer: glad you're feeling better !08:26
fullermdWell, I guess if .eu is here, it must be time for me to go...08:27
jamfullermd: I didn't think you ever left08:28
fullermdWell, I'm almost always right, but I'm occasionally left.08:28
vilafullermd: careful, you may end up falling asleep08:28
jelmerjam: Yeah, me too08:29
fullermdSleep?  I just did that _last_ week...08:29
jelmer'morning vila, fullermd08:29
vilamaxb: wrong revid used in bug #795703 (but the tags have been deleted nevertheless)08:33
ubot5Launchpad bug 795703 in Ubuntu Distributed Development "jubany fixups relating to misplaced tags (AssertionError:<module>:main:find_unimported_versions:check)" [Undecided,In progress] https://launchpad.net/bugs/79570308:33
vilamaxb: I won't apply the other ones until you give feedback08:35
maxbvila: Oh dear, do I fail at copy paste?08:55
maxbgnome-mousetrap, right?08:56
vilamaxb: That's my fear :-/ (I know I often fail there because of my unusual setup where the clipboard content can randomly (really ? :-/) be wrong so some copies are lost and I end up pasting an old value...08:56
vilawell, often is exaggerated but that's not rare enough to be really annoying08:56
maxbOh,yes. The revid I put for gnome-mousetrap is the same as the one from git-buildpackage above08:57
maxbI think the I and K commands should all be safe, since I was wise to the problem by then - but apparently I missed one instance near the beginning08:58
vilamaxb: yes, I saw the duplicate but had of course no idea what the right one could be08:59
maxbI've updated the bug now09:00
vilacool09:00
maxbFor some reason, qbzr seems particularly prone to copy / paste weirdness09:00
maxbMaybe that's what I get for using one Qt app in a Gnome desktop09:00
maxboh. I failed, with the same revid, for gphoto2 and gst-plugins-base-0.10 too09:05
* maxb sorts09:05
maxband apparently I fixed gnumeric on breezy, but now it's failing on hoary-security09:06
maxbWhilst you're on jubany, could you also requeue --full ubuntu-defaults-builder ?09:12
vilamaxb: done09:12
vilamaxb: +1 for requeue in fixit.sh, it even allow c/p from IRC... :-p09:13
vilamaxb: almost a natural language UI (for some geek value of natural ;)09:14
maxbI was just thinking something like that :-)09:14
=== hunger_ is now known as hunger
maxbvila: You saw my updated commands for gst-plugins-base0.10 gphoto2 gnome-mousetrap?09:17
maxb(Just wanting to be sure since they partially interleaved with your comments on the bug)09:18
vilamaxb: gphoto2 and gst-plugins-base done09:20
vilamaxb: that's an interesting experiment, let's keep posting there if only to capture what happened (errors included)09:21
vilaand *of course* no offense intended, I hope that's clear09:21
vilaI *expect* errors09:22
vilathat's why I wanted to capture recipes in fixit.sh09:22
vilaI know no better way to design UI...09:23
vilamaxb: also, any error should end up in some trace at http://package-import.ubuntu.com/status/ right ?09:23
vilaor can there be some fallouts for users with local branches ?09:24
maxbThanks, that's looking better - but, did you miss my comment #16 for gnome-mousetrap?09:27
vilaha crap, yeah, it seems09:27
maxboh,09:27
maxbmaybe not09:27
vilaerr09:27
* vila blinks09:28
maxbah, you did the tags, but not the requeue09:28
vilamy comment appears *after* yours ?09:28
maxbRight - sorry.09:29
maxbI was attempting to match up the failures page and the bug09:29
* vila notes to use two pages: one to copy/ one to paste09:29
maxbSo, you did in fact do my second fixup to gnome-mousetrap's tags, but did you requeue it again?09:29
vilayeah, a real UI involving a single user would probably address these cases09:30
vilamaxb: yup, I just requeued it09:30
maxbgreat!09:30
maxbso09:30
=== maxb changed the topic of #bzr to: Bazaar version control <http://bazaar.canonical.com> | try https://answers.launchpad.net/bzr for more help | http://irclogs.ubuntu.com/ | Patch pilot: spiv | UDD failures: 444
maxb:-)09:30
vilanice number, let's stop there ! :D09:31
maxbhmm09:31
vilamagcius: ha, just found your comment on #71462209:34
vilagha09:34
vilamagcius: sorry09:34
vilamaxb: ha, just found your comment on #71462209:34
* magcius looks up bug #71462209:34
ubot5Launchpad bug 714622 in Ubuntu Distributed Development "import fails when lp branch has been push --overwrite'n" [High,Confirmed] https://launchpad.net/bugs/71462209:34
viladouble gha09:34
vilamagcius: wrong nick completion, sorry for the noise09:35
vilarhaa, what's the bug # for selftest not using python provided definition for number of available processors/threads ?09:42
jelmervila: are you sure we have one? IIRC we only use the python provided one in some cases09:49
vilaoh, may be a fix has landed, let me check the annotations09:50
jelmerI landed a fix for the number of processors on *BSD earlier09:51
vilaha right, no bug, but that's revno 5683 by... you :)09:51
vilayup, I thought that was still pending09:51
vilacould be cleanup up now that we require py2609:51
vilahmm, the python impl slightly diverge from our fallback... (sunos5 and even darwin)09:55
vilaok, forget about it09:55
lifelesspoolie: bzr: failed to report crash using apport:11:43
lifeless     OSError(17, 'File exists')11:43
lifelesspoolie: have you seen that before?11:43
jelmerlifeless: I've seen it before on occasion, but I'm not sure what causes it11:47
jdobrienlifeless, he's here in orlando AFAIK12:00
lifelessjdobrien: yes, he is12:03
briandealwisgit users: is there a git equivalent of bzr's append_revisions_only?13:40
jelmerbriandealwis, I'm not sure how it works exactly, but I think the term you're looking for is "fast forward only"13:48
briandealwisjelmer: thx for the pointer13:49
=== mbarnett` is now known as mbarnett
RobOakesGood morning. Is anyone aware of a tutorial that describes how to keep packaging information and the source code of a project in separate branches?15:33
RobOakesI am trying to set up a launchpad recipe similar to the one shown here: http://www.youtube.com/watch?v=_bG-SXNX9Ww15:34
RobOakesMy biggest problem is that my packaging branch and my code branch don't share a common ancestor. Is there any way around this? (I don't want all of my source history as part of the packaging branch, just the debian folder.)15:36
jelmerRobOakes: you can use the nest command if you don't want them to have shared history15:39
RobOakesWhat would be the best way to do this? Do I need to create a new branch with the nesting command?15:41
RobOakesSorry, my knowledge of bzr is pretty basic. I basically use it like SVN, and you can't do fancy stuff in SVN.15:41
jelmerRobOakes, the nest command would be in the recipe15:44
jelmerRobOakes: I usually just merge the source history into the packaging branch, is there any reason you don't want to do that?15:44
RobOakesYes, it's due to size.  The program I'm packaging, LyX, has 20 years of development history and some 300,000 commits.15:45
RobOakesI'm actually curious if I can do a lightweight checkout with the source so I don't have to wait for the entire source history to download. (On my local machine.)15:46
RobOakesWould the nest line look something like this: merge packaging nest lp:~...15:49
jelmerno, it would be nest rather than merge15:51
RobOakesOkay. Is there a difference between nest-part and nest?15:52
RobOakes(bzr help is being less than helpful and Bug report which discusses them doesn't delve into the differences.)15:53
maxbYou'd use nest if the debian/ directory *was* the packaging branch, nest-part if the debian/ directory was contained within the packaging branch16:03
maxbi.e. whether you need to nest a whole branch or just a subtree of one16:03
=== med_out is now known as med
=== med is now known as medberry
RobOakesOkay, so something like this: nest packaging lp:~lyx-outline-devel/+junk/lyx-debian debian?16:09
RobOakesIf I wanted to place the entire contents of lyx-debian into a folder called debian?16:10
poolielifeless: hi, it's vaguely familiar, the thing would be to work out which file or line is raising it16:36
jelmer'morning poolie16:45
pooliehi there jelmer16:54
jamdahlHi everyone, I'm having some difficulty with bazaar allowing out of date checkouts to make commits17:19
maxbCan you elaborate on what you mean?17:21
jamdahlOk, so I have a project initialized to a central location17:30
jamdahland 2 separate checkouts of that17:30
jamdahlCheckout 1 makes an edit and commits17:30
jamdahlCheckout 2 makes a conflicting edit and commits17:31
jamdahlMy problem is that checkout 2 got no warning and was allowed to commit17:32
jamdahlany ideas?17:44
jelmerjamdahl, how were the checkouts created?17:52
jamdahlbzr checkout remotedirectory localdirectory17:54
LarstiQevening17:55
lamalexhi, does bzr grep search history? is there a plugin that will grep a projects history for some pattern/lines of code?17:57
jelmerjamdahl: that's odd - what happened to the contents of the remote branch?18:04
maxbjamdahl: Are you sure no one used "bzr branch", "bzr unbind" or "bzr commit --local" anywhere in this?18:05
jamdahlI'm testing this so I did it all myself.  None of those commands were used18:07
jamdahlbzr checkout was used for checkout, bzr qcommit was used for commit18:07
LarstiQlamalex: afaik that is exactly what bzr-grep does18:09
lamalexLarstiQ, i guess i just need to give it revs to search18:09
lamalexexpected it to just automatically search backwards through history18:10
LarstiQlamalex: doesn't `bzr help grep` say?18:10
* LarstiQ installs it18:10
LarstiQlamalex: if you don't specify a revision, and also not a filename, it seems to grep through history18:11
LarstiQor maybe the help can use some rewording18:12
jamdahlI think I have narrowed down the problem actually18:12
jamdahlor at least part of it18:12
jamdahlapparently when I am calling commit, diff, and some of the other commands it isn't doing it on the entire checkout18:12
jamdahlThe project I'm version controlling is a spreadsheet with the VBA code exported.  The spreadsheet is in the main directory  and the vba code is in subfolders18:13
lamalexLarstiQ, hm.. I mean it just outputs (for me) what's in the current rev without any rev numbers or anything18:13
lamalexunclear if it goes through branches that were merged and so on18:14
jamdahlIt seems like much of the time when I call for a commit or try to check diff, it doesn't notice the change to the spreadsheet18:14
LarstiQlamalex: ok, needs some rewording then. -r to the rescue!18:14
* LarstiQ heads for dinner18:14
lamalexthanks18:14
=== yofel_ is now known as yofel
pooliehullo all20:42
lifelesshi20:43
pooliehi there20:45
LarstiQhi poolie, lifeless20:58
lifelesshi LarstiQ21:00
jelmernåvond21:05
LarstiQhey jelmer :)21:06
maxbjelmer: FYI bzr-builddeb r571 "Merge cleanup of DistributionBranch upstream attributes." causes problems for the udd importer - I guess that needs a related update. What were your intentions re compatibility there?21:46
jelmermaxb, I hadn't realized I had broken the udd importer - will have a look now.21:47
milleja46hi21:48
maxbjelmer: If you look in the importer's make_db_set, there's a construction of DistributionBranch with a None second argument - I think the blame is there21:48
maxbmilleja46: hello21:49
milleja46i need to pull some updates for a project but i don't know how to set the bzr_ssh variable...what would the bzr_ssh variable be?21:49
* milleja46 remembers he has to have pagent loaded XD21:49
maxbjelmer: "./import_package.py --no-existing --no-push python-oauth" is a relatively quick reproducer21:49
maxbmilleja46: Oh. Windows. I don't know about that stuff :-)21:49
LarstiQmilleja46: iirc it doesn't always need to be set21:53
LarstiQmilleja46: but one option is "plink"21:53
milleja46LarstiQ: i know but i think i'd forgotten that i needed to have pagent running XD21:56
LarstiQmilleja46: ah right21:56
milleja46LarstiQ: is there a way to add plink to environment variables so that i don't have to set it again?21:58
LarstiQmilleja46: iirc there is an "Environment Variables" setting somewhere in System22:01
LarstiQmilleja46: you can add BZR_SSH=plink there22:01
milleja46so in the value part put bzr_ssh=plink?22:02
milleja46or just plink?22:02
=== milleja464 is now known as milleja46
jelmermaxb, fixed22:49
jelmermaxb, thanks for the reminder22:50
maxbawesome, thanks22:50
maxbbleh22:51
maxbI've found the bug which results in all these misplaced tags w.r.t the importer's meta22:51
james_woooh22:52
james_wtell me22:52
maxbThe importer is quite capable of moving tags.... but it only sends them back to launchpad using merge_tags_if_possible, mostly22:52
james_wah22:52
james_wnot sure it should be moving tags normally though should it?22:53
maxban example is the iscsitarget import I'm trying to repair22:53
maxbIt collided in maverick, so it push --overwrote that.22:53
james_wah22:54
james_wcollisions, of course22:54
maxbBut, natty and oneiric were just straight pulls from what went before, so they kept the old tag22:54
zygaI'm trying to implement something equivalent to `bzr pull` using bzrlib23:06
zygamy simple code seems to work but it prints "unknown command commit"23:06
systemclienthow can I tell bzr that I want to run astyle *.java before every commit?23:07
zygaam I missing something obvious?23:07
zygahere is my code: http://paste.ubuntu.com/631467/23:08
lifelesssystemclient: a start_commit hook23:09
zygalifeless, could you please have a look at my code and tell me if I'm missing something obvious (or there is an easier method of doing that apart from shelling out to bzr)23:12
systemclientlifeless: so I basically write a little python script that calls a shell command?23:12
lifelesszyga: I don't see where you are committing to trigger that error23:12
lifelesszyga: unknown command will be because you haven't loaded the bzr built in command classes (see bzrlib/command.py)23:12
zygalifeless, I have no idea either, I'm running on daily bzr23:13
lifelesssystemclient: yes, - can be very tiny23:13
zygalifeless, let me reinstall bzr just in case23:13
lifelesssystemclient: there are folk that have written generic call-shell-command implementations of the core hooks23:13
lifelesssystemclient: I don't recall where they are offhand23:13
zygalifeless, could I be initializing bzrlib incorrectly somehow?23:14
pooliewe should really merge that23:14
lifelesswell, you're definitely doing it a bit oddly23:15
lifelesspoolie: it had security issues23:15
zygalifeless, ah, it must have been coming from one of my plugins, sorry for the noise23:15
zygalifeless, I wish I could do it easier but there is a bug in the way normal initialization works (I posted about this to the mailing list recently)23:16
lifelesszyga: you probably want to use bzrlib.initialize23:16
lifelessah yes23:16
zygalifeless, then fix it :>23:16
lifelessthat surprised me23:16
lifelesszyga: you are as capable of that as me :>23:17
zygalifeless, would you accept a simple fix without unit tests? I don't feel skilled in bzr internals enough to test this23:17
pooliezyga: if you want it to do what 'bzr pull' does' it would be easiest to just run run_bzr(['pull', ...])23:17
zygapoolie, run_bzr, I never saw that before, let me have a look23:18
lifelesszyga: you probably want to call bzrlib.commands.install_bzr_command_hooksI()23:18
lifelesszyga: that will register commit etc23:18
lifelesszyga: do that before you call load_plugins23:18
zygalifeless, thanks, applied23:20
zygalifeless, is there a way to initialize just the launchpad plugin?23:20
zygalifeless, I would like to shield the system from random plugins users may have (and speed up oprations)23:20
lifelessbzrlib.plugin.set_plugin_path(); import bzrlib.plugins.launchpad23:20
zygalifeless, awesome!23:20
lifeless(something like that)23:20

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