/srv/irclogs.ubuntu.com/2008/11/12/#bzr.txt

poolie1jml, interesting: i just did bzr push --remember -Dhpss --stacked bzr+ssh://bazaar.launchpad.net/~bzr/bzr/brisbane-core00:46
poolie1and it made it stacked on the public location of the parent branch, not on lp:bzr as i expected00:46
jmlpoolie1: right. so what I normally do, as advertised on the Launchpad blog, is just bzr push lp:~bzr/bzr/brisbane-core00:48
jmlpoolie1: bazaar's default stacking policy feature takes care of the rest00:48
jmlpoolie1: use --stacked essentially overrides our stacking policy00:49
jmls/use/using/00:49
poolie1interesting00:53
poolie1and bzr now defaults to stacked00:53
jmlpoolie1: only if there's a stacking policy on the other end.00:55
jmlpoolie1: which there is in this case00:55
poolie1that may not be so great til bug 288751 is ixed00:56
ubottuLaunchpad bug 288751 in bzr "bzr push returns error Revision <x> not in <y>" [Critical,Triaged] https://launchpad.net/bugs/28875100:56
jmlpoolie1: then bug 288751 needs to be fixed.01:00
ubottuLaunchpad bug 288751 in bzr "bzr push to stacked branch returns error Revision <x> not in <y>" [Critical,Triaged] https://launchpad.net/bugs/28875101:00
poolie1indeed01:01
poolie1aaron sent what seemed like a reasonable plan01:01
=== poolie1 is now known as poolie
abentleypoolie: I'm not actually sure how to tackle 288751.  I'm somewhat against disabling the current behaviour, because I suspect there are hundreds or thousands of afflicted branches.01:13
rustyHi all!  Anyone interested in 'bzr upgrade' failures?01:15
abentleypoolie: I'd rather bless the current behavior.  A subsequent format could be stricter.01:16
poolierusty, yes01:16
abentleypoolie: A groupcompress format would be stricter anyhow.01:16
rustybzr: ERROR: Revision {[('_info.30342-20080814081531-zlq95k6nqflx7n8y-1', 'dinesh@dinesh-laptop-20080814081712-cckpecc9m4vao31v')]} not present in "<bzrlib.knit.KnitVersionedFiles object at 0xa3f474c>".01:16
rustypoolie: 1.6.1 from my upgrade yesterday to 8.10.01:17
rustypoolie: what do you need?01:17
poolierusty: i suspect this is bug 288751 we're just talking about01:17
ubottuLaunchpad bug 288751 in bzr "bzr push to stacked branch returns error Revision <x> not in <y>" [Critical,Triaged] https://launchpad.net/bugs/28875101:17
poolieit'd be useful if you add the 'bzr info' results on that to that bug01:18
rustyDomo aragato, ubottu.01:18
poolieabentley: do you want to talk here or on mail?01:19
poolieso the main question is just what server-side autopack should do01:19
abentleypoolie: No, it's larger.01:19
abentleypoolie: The main question is "should we permit text deltas across stacked repositories"?01:20
poolieso i basically agree with robert that we should not be generating them01:20
poolies/basically//01:20
rustypoolie: bzr info?  After failure or before?  Output not interesting.01:20
abentleypoolie: There's no server-side autopack involved here.01:20
pooliedoes it say it's stacked on something?01:21
rustypoolie: no...01:21
abentleypoolie: Fine, but we've already generated many stacked branches.  They are probably afflicted.  How should we deal with them?01:22
abentleyAFAICT, robert wants bzr to fail if it encounters them.  I am more inclined to keep existing branches working.01:24
rustypoolie: It's a very vanilla tree I think.  And just not that complicated.01:26
poolierusty: i would suggest that you make a backup, run bzr reconcile, bzr check, bzr upgrade01:26
poolieif that does not fix the problem, file a bug, and if the code is public attach a tarball of it01:27
rustypoolie: OK, I'll try that now.01:27
rustypoolie: yes, good news is this is all public.01:27
poolieinsert before those instructions, move backup.bzr back in place01:27
rustypoolie: woot!  I blew up reconcile!  Do I get a prize??01:28
poolieyes :/01:28
poolieabentley: so perhaps we could do a query on lp for branches that are stacked, and then look at if they have text deltas across repositories01:29
rustyI will report a bug and attach the 4MB tarball of the whole repo.01:29
pooliethanks01:29
pooliefor reporting it, and sorry for the incovenience01:29
rustypoolie: heh, I've filed 6 KDE4 bugs in the last 12 hours... this is nothing :)01:29
jmlpoolie: how would that influence the decision?01:30
poolieheh01:30
jmlalso, we don't record all instances of stacked branches, only branches stacked on other branches also in/mirrored on Launchpad.01:31
abentleyjml: because of the bzr+ssh bug, no one would want to stack their launchpad branches on something else.01:32
jmlabentley: that's comforting.01:32
ryanakcawhy do I get this with any bzr command? http://paste.ubuntu.com/70759/01:32
poolieso if it's only happened on the particular branches were lp recommends stacking, then it's more reasonable to do a one-off fix01:32
poolieryanakca: because the gtk plugin (or something related) is assuming you have a desktop running01:33
pooliebut i would guess you're running it from a text or ssh session or similar01:33
pooliei think this was fixed in a later release01:33
pooliehttps://bugs.edge.launchpad.net/bzr-dbus/+bug/19951301:34
ubottuLaunchpad bug 199513 in bzr-gtk "gcommit crashes: ERROR: dbus.exceptions.DBusException" [Low,Fix released]01:34
ryanakcapoolie: could it be qctBzrPlugin? Its the only one without a description... the rest: http://paste.ubuntu.com/70761/01:35
jmlpoolie: so, I don't see the # of affected branches as being a factor.01:36
jmlpoolie: either you break them and provide a script (or whatever) to fix them, or you accommodate them and fix the underlying issue in a new format.01:37
rustypoolie: OK, filed bug 297024.  That should keep you off the streets for a bit longer :)01:38
ubottuLaunchpad bug 297024 in bzr "bzr reconcile crashes" [Undecided,New] https://launchpad.net/bugs/29702401:38
ryanakcapoolie: nevermind, thats what it is...01:38
pooliejml, that's basically true - if it turned out to be just one or two it would be more reasonable to say 'just remirror them'01:41
ryanakcapoolie: or what I thought it was. Still there. What can I do? If I go --no-plugins, it disables the svn plugin as well... but I need the svn plugin to checkout / svn->bzr...01:41
poolieryanakca: can you upgrade?01:42
poolieor otherwise remove the gtk or qt plugin01:42
jmlpoolie: I seriously doubt it's 1 or 201:43
ryanakcapoolie: I can't see any of them installed... I removed qct, which is a qt one... but, I still get it... all of my plugins are in the above paste.01:44
jmlpoolie: when spm gets back, he can tell us which branches are stacked. I'll need more bzr expertise to get a test for the other bit.01:44
poolieryanakca: reckon the 'dbus' one might have anything to do with it? ;-)01:44
abentleyjml: You should be able to repurpose Packer._check_references to do that.02:08
lifelessabentley: or james-w's script02:09
=== mw is now known as mw|out
abentleylifeless: I didn't see that one.02:13
lifelessabentley: its attached to one of the bugs02:20
jmlabentley: everything about that except the pronoun sounded great :)02:26
abentleyjml: Y'all should be able to repurpose Packer._check_references to do that?02:27
jmlabentley: "one should be able to..."02:27
jmlpoolie: fwiw, we're looking at 300+ stacked branches on LP02:28
jmlwell, the list of branch ids is at https://pastebin.canonical.com/11067/. Let me know if you need a hand writing the script :)02:57
awmcclainWhy aren't new branches I push group writable? Am I missing some umask for bzr?03:02
abentleyawmcclain: are you using sftp?03:03
awmcclainbzr+ssh03:04
abentleyawmcclain: There's no bzr-specific umask.  What does "ssh $HOSTNAME umask" report?03:05
awmcclain002203:07
abentleyawmcclain: So your remote host umask is set to disable group write.03:07
awmcclainAh. I figured it was a system configuration. I'll go look up ssh and umask.03:08
=== sdboyer|class is now known as sdboyer
adeelwhat's the easiest way to create a central branch and commit data to it? the user-guide isn't very clear on it03:38
=== arjenAU2 is now known as arjenAU
Peng_Wait...can anyone log into pastebin.canonical.com?04:09
lifelessPeng_: anyone can authenticate04:11
Peng_Oh.04:11
lifelessadeel: once you have your code locallly; bzr push CENTRAL BRANCH04:11
lifelessadeel: then 'bzr bind CENTRAL_BRANCH' to make that into a checkout, and other people can do 'bzr checkout CENTRAL_BRANCH'04:12
adeellifeless, so does that work if the central repo is local to my system? that is, i want the repo to be stored at /foo, but right now, the contents of the files are at /bar04:12
Peng_You're right, I can /authenticate/. I just don't have permission to access anything. ;P04:13
pooliefor some reason bzr builddeb is not following its .bzr-builddeb/local.conf04:15
lifelessadeel: yes04:15
adeellifeless, interesting...thanks for the info...and btw, if you know who maintains the user's guide on the bzr website, they might need to update/clarify it04:16
lifelessadeel: file a bug with whats unclear please04:17
adeellifeless, sure04:19
adeelalso, what transports are enabled by default for bzr? sftp? http? ssh? etc04:20
lifelesseverything that the libraries for are on your system04:20
adeelthere a way to find out which ones are?04:20
lifelessthe deb packages depend on enough to have ftp/http(but not webdav)/ssh/bzr/filesystem/sftp work04:20
lifelessadeel: bzr help urlspec04:21
adeelah, i'm on gentoo, so the deb packages don't help =cp04:21
adeelthanks for the tip04:21
poolielifeless: what i'm saying is04:57
poolieif you push to lp/bzr, you may also hit the stacking issue04:57
lifelessoh sure04:57
lifelessbut I have ways and means for that "{04:57
lifeless:P04:57
lifelesspoolie: can you do me a favour05:01
lifelesspoolie: push to lp:~bzr/bzr/brisbane-core, the branch you have?05:01
lifelessit won't stack05:01
poolieit's runnig05:06
lifelesshttp://paste.ubuntu.com/70801/05:21
=== jamesh_ is now known as jamesh
lifelessigc: /srv/conversions/manganese on tungsten06:14
lifelessigc: 136Gb, knock yourself out06:14
=== timchen1` is now known as nasloc__
fullermdYou can't mix manganese and tungsten!06:14
lifelessfullermd: not mixing. layering06:15
fullermdStacking?   ;)06:15
abentleylifeless: Do you know why pqm would treat bzr+ssh://bazaar.launchpad.net/%7Eabentley/bzr/1.9-launchpad/ as a Baz1 branch?07:09
poolieabentley: it tends to treat anything it doesn't understand as a Baz1 branch07:11
pooliei would guess that you've hit 288751 and therefore lp is not republishing it over bzr+ssh07:12
poolieoh07:12
pooliein fact, that's the simpler answer, it probably just can't ssh to launchpad07:12
poolieyou need an http url07:12
abentleypoolie: I merged something via SSH yesterday evening.07:12
abentleypoolie: We use PQM with the launchpad codebase and that's confidential, so we use SSH for it.07:13
poolieok07:13
poolienevermind that then, though i thought it used to fail07:13
spivabentley: because it's not a branch? https://code.edge.launchpad.net/~abentley/bzr/1.9-launchpad/07:15
pooliei can't access it over ssh eithre07:15
spivRandom guess: you uploaded in 1.9 format, but Launchpad doesn't understand 1.9 yet.07:16
abentleyspiv: bzr info reports "Standalone branch (format: 1.6)"07:17
poolieabentley: so then i'd come back to my statement that it's affected by 28875107:19
spivRandom and wrong guess :)07:19
lifelesspoolie:07:20
lifeless            # Performance with commit was profiled extensively, and it found that07:20
pooliei pasted a reproduction sample to that bug btw07:20
lifeless            # using the keys of the Inventory._byid was faster at the time. We07:20
lifeless            # want to move away from doing this, but until careful profiling07:20
lifeless            # is done, we're preserving the old behaviour.07:20
lifeless            # <lifeless, poolie>07:20
lifelessabentley: if it can't access the branch it will fall back to considering it a baz branch, which is not as probable07:20
pooliei'd say "using the keys ... (rather than eg building a set from the key iterator)"07:21
pooliei think you need to be a bit specific07:21
poolieotherwise it's like the billboards in qld saying "motorcyclists beware"07:21
pooliebeware what, bats?07:21
pooliei was also thinking that it might have been better to do a getattr() rather than isinstance07:22
poolieit's more to the point of what we're trying to switch on07:22
abentleypoolie: That only happens on autopack, but perhaps the mirroring process is autopacking.  That would be #280595 actually.07:22
pooliei posted a reproduction example07:23
poolieit may be on the wrong bug strictly speaking07:23
abentleylifeless: So it looks like the failure is because of a problem mirroring it.07:23
* abentley sells all his computers and buys a spaghetti farm.07:23
* fullermd will show his support by buying bulk spaghetti.07:29
igcnight all07:41
poolieabentley: i have some ideas on 288751, nothing really conclusive yet08:20
pooliethere is a check Packer._check_references that's meant to stop this but does not08:20
lifeless(Pdb) self.source.get_inventory('sp1r-monty@donna.mysql.com-20000829163832-06287')['sp1f-bk.txt-20000829134525-trpy4oecjn4oeshxkcg357zy4b2sisz4']08:21
lifelessInventoryFile('sp1f-bk.txt-20000829134525-trpy4oecjn4oeshxkcg357zy4b2sisz4', 'bk.txt', parent_id='sp1d-docs-ncsbsqrhxzflos6d2mrwgql4b7a7gacv', sha1='b5a47ca433f25aac932844515415ef43209ae017', len=3087, revision=sp1r-monty@donna.mysql.com-20000829163832-06287)08:21
lifeless(Pdb) self.target.get_inventory('sp1r-monty@donna.mysql.com-20000829163832-06287')['sp1f-bk.txt-20000829134525-trpy4oecjn4oeshxkcg357zy4b2sisz4']08:21
lifeless*** KeyError: 'sp1f-bk.txt-20000829134525-trpy4oecjn4oeshxkcg357zy4b2sisz4'08:21
lifelessseems to be scaling well:09:47
lifelessCommits: 166509:47
lifeless                      Raw    %    Compressed    %  Objects09:47
lifelessRevisions:       6202 KiB   0%      1921 KiB   5%     166509:47
lifelessInventories:    27210 KiB   1%     14446 KiB  43%    2995309:47
lifelessTexts:        1520391 KiB  97%     16477 KiB  50%    1140109:47
lifelessSignatures:         0 KiB   0%         0 KiB   0%        009:48
lifelessTotal:        1553804 KiB 100%     32844 KiB 100%    4301909:48
jelmerlooks promising09:53
lifelessthe compressed size inventories are still just 'gzip' rather than deltas09:53
lifelesswhich is why it is ~50% smaller and thats all ;)09:54
fullermdDo you have a feel for how much difference there is to be made there?  'nother factor or 2, or 10?09:55
lifelesswell09:55
lifelesswe write ~20 nodes per commit09:55
lifelessof those, I guess its one leaf per changed inventory entry at worst09:56
lifelessand a leaf is quite compressible - its 4K of line orientated binary09:56
lifelessfoo\x00bar\nquux\x00gam\n09:56
lifelessso, if we change say 200 bytes per 4K page, thats say 300 bytes with headers as a delta, or 150/200 as a gzip delta09:58
lifelessdown from 2K09:58
lifelessso yeah, 5% of repo size compressed would be worth aiming for09:58
fullermdAwesome.09:59
fullermd(seeing the inventories compress to just barely smaller than the texts offended my intuition of what relative magnitudes should be.  Made me wonder if my intuition was completely cracked.)09:59
lifelessseeing it at 96% offended me10:03
fullermdWell, inventories are important; why shouldn't they get plenty of bytes!10:04
asabilhi all10:05
jelmerhey asabil10:05
asabildid anyone write a plugin to submit merge requests directly to bundle buggy ?10:07
jelmerasabil: how do you mean? Afaik bundle buggy only accepts merge requests via the mailing list10:11
asabilI would like to make my team mate use bundlebuggy10:12
fullermdWell, one could setup BB with a direct mail address, and just make send default to that address.10:12
asabilbut getting them to use a mailing list, and setting their mails would be a big hassle10:12
fullermdI don't remember if there's already support for setting a default send address or not; that make take a little plugin-fu.10:12
jelmeryeah, you can set a default send address10:13
jelmerchild_submit_to =10:13
LarstiQasabil: they can use `bzr send`10:13
asabilI am thinking about exposing some rpc over http, and add a bzr command to directly submit a merge request10:13
asabilyes, but they need to setup a mail program I guess ?10:14
fullermdI thought send could just spawn off an editor and `sendmail`-submit it itself.10:14
fullermd(of course, that assumes the rest of the system is properly setup for mailing, which I always assume but may not be valid in your neighborhood)10:15
asabilI don't think that's the case unfortunately10:15
LarstiQit can also use smtplib iirc, useful for hosts without an mta10:15
asabilso basically I would just setup bundle buggy, and create an email address for it10:17
asabiland then configure bzr send to use smtplib ?10:17
fullermdYah.  [AFAIK] it just gets email; seems to usually be done by subscribing it to a ML, but could just as easily be mail sent right at it.10:17
lifelessasabil: yah10:19
lifelessasabil: I'm sure more can be done, but thats the current state-of-play10:19
asabilokidoki, thanks a lot10:19
asabilone last question, how do I configure bzr send to use smtplib ?10:20
=== jszakmeister|awa is now known as jszakmeister
jszakmeisterjelmer: Thanks for taking care of that corruption bug.10:22
jszakmeisterLooks like there's one more with the branch nick stuff... but it sounded like 1.9.1 was going to have a fix for that.10:23
jelmerjszakmeister: yep10:23
lifelessasabil: its in the configuration help10:24
=== doko_ is now known as doko
asabilbzr help send | grep smtp gives nothing10:25
strkERROR: Your shelved patch no longer applies cleanly to the working tree!10:25
strknow what ?10:25
strkI shelved changes in a brach because I selectively patched trunk with some of the changed10:25
strkthen merged the updated trunk into the branch again10:25
strkand now was willing to unshelv, expecting the already-found patches to become non-changes10:25
strkbut I get that error above...10:25
lifelessstrk: that version of shelf works with simple patch(1) behavour10:26
lifelessstrk: just supply --force10:26
lifelessbzr's next release has a better shelve that should do what you were expecting10:27
strkok, --force did it, produced some .rej but I'm fine with them, seem to be the patches I didn't want to apply anymore cause already applied in trunk10:28
strkhow to clean the shelf now ?10:28
lifelessbzr shelf list10:28
lifelessbzr shelf delete (thing to delete)10:28
strkgreat, thanks10:28
luksasabil: bzr help configuration10:31
asabilthanks10:34
=== strk is now known as strk_away
rockyany here use cmd-line bzr with emacs? trying to get sensible status info to show up but it seems to be killing emacs13:11
=== mw|out is now known as mw
abentleyasabil: In terms of receiving patches, bundle buggy just scans a directory containing messages.  Whether it's personal mail or from a mailing list shouldn't matter.13:42
abentleyasabil: bzr help send describes the "editor" mail client, which uses smtplib.13:44
asabilokidoki, thanks for the input abentley13:47
=== strk_away is now known as strk
strkhow can I compare two branches ?14:06
strkthe ideal outpu for me would be the same you'd get with 'status' (a summary of diffs) and the possibility to know more about something14:07
Odd_Blokestrk: Try using "-r branch:<PATH>".14:11
strkto status ?14:11
strkbzr: ERROR: bzrlib.errors.ReadOnlyError: A write attempt was made in a read only transaction on KnitPackRepository('file:///home/src/gnash/avm2/.bzr/repository/')14:12
strkwrite ?! it was bzr status -r branch:../bzr/trunk/14:12
Odd_Blokestrk: That sounds wrong.  What's in ~/.bzr.log?14:13
luksthat should be fixed in recent bzr14:13
fullermdThat's a long-standing bug.14:13
Odd_BlokeAh, OK, I'd never seen it before.14:14
luks1.8 probably14:14
strkthis is Bazaar (bzr) 1.3.114:15
fullermdhttps://bugs.launchpad.net/bzr/+bug/14442114:15
ubottuLaunchpad bug 144421 in bzr "Using branch: revspec in stat blows up" [Undecided,Fix released]14:15
strkuhm... diff branchA/file1 branchB/file1 # no diffs14:30
strkbranchA$ merge ../branchB # nothing to do14:30
strkbranchB$ merge ../branchA # conflicts in file114:31
strkany idea ?14:31
strkseem the real difference in the conflict marker is just the amount of spaces used for indentation14:31
strkquestions are: 1) why 'diff' doesn't care ? 2) why merge in the two directions is different in catching that ?14:32
strkuhm, on a closer look, there's really NO difference in the two files, so diff(1) is right14:33
strkwhy does merge gets that conflict then ?14:33
Odd_BlokeHmm, I seem to have accidentally Planet Bazaar.14:37
Odd_BlokeThe whole planet.14:37
fullermd"This sentence no verb"14:37
Odd_Bloke(http://img165.imageshack.us/img165/189/1218062796760xd1.jpg)14:38
dobeyuhm14:40
dobeyriiiiiight14:40
strklol14:41
strkOdd_Bloke: I'm laughing as a kid14:42
strksilly stuff14:42
UrsinhaOdd_Bloke, LOL15:01
rockyjelmer: hey... when i do a push of a revision back to a svn branch to a repo with 75k revs it does the "determining revisions" dance like 3 times ... each time it takes about 4sec or so15:14
_tsatbic_Hi there ...15:19
_tsatbic_I've got a type in a commit's message, is it possible to rename the message even after several other commits have been made?15:20
beuno_tsatbic_, no, commits are immutabl15:20
_tsatbic_thanks15:21
=== kiko__ is now known as kiko
=== kiko is now known as kiko-fud
gary_posterHello.  Does anyone happen to have a buildbot hook for bzr (i.e., one that pings a buildbot master when a change is commited) that they would be willing to share?  Neither Google nor buildbot.net seem to show such a beast.16:18
jelmergary_poster: Hi16:19
gary_posterhi jelmer16:19
jelmerAfaik there isn't anything like that yet16:20
gary_posterjelmer: ok thanks.  here I go then, I guess ;-)16:20
=== sdboyer is now known as sdboyer|soup
=== kiko-fud is now known as kiko
=== strk is now known as strk_away
eyda|monis there anyway to get bzr to show me the relative paths of files when doing bzr st instead of the full path?19:08
eyda|mon(a la git)19:09
rockstarabentley, is a revid usually just <email-address>-<timestamp>-<randomness> ?19:20
beunorockstar, I think there's a sha1 hash in there somehow19:21
beunosomething related to the actual contents of the revid19:21
abentleyrockstar: Yes, the revids bzr itself generates are that.19:21
beunobut that may be somewhere else19:21
=== sdboyer|soup is now known as sdboyer
abentleybeuno: There is nothing related to the actual contents of the committed tree in the revid.19:21
abentleybeuno: You may be thinking of revision testaments, which are used with GPG signing.19:21
rockstarabentley, great.  That makes my job so much easier.19:22
beunoabentley, I'm actually thinking of a hash that makes sure that the revision hasn't been changed19:22
* rockstar prefers that Old Testaments. No GPG sig, but lots of funny stories.19:22
abentleyrockstar: importers like bzr-svn often do not follow bzr's practice.  The only requirement is that they be random.19:23
=== mw is now known as mw|food
abentleybeuno: That's what testaments are for.  There's also a SHA hash in the revision XML.19:23
abentleybut it's a bad idea, and not reliable.19:23
beunoabentley, the sha is what I was thinking of19:24
beunowhy is it not reliable?19:24
beunobecause of upgrades and such?19:24
abentleyYes, format upgrades will update the inventory XML without necessarily updating the SHA1.19:25
beunogotcha, thanks for the explanation\19:25
abentleybeuno: Or at least that was the case.  It should be fixed in recent bzrs, but old revisions won't be fixed.19:26
abentleylifeless: ping19:32
=== sabdfl1 is now known as sabdfl
=== strk_away is now known as strk
lifelessabentley: just waking up19:51
lifelessabentley: what can I do for you?19:51
abentleylifeless: What causes PQM to die on "not enough arguments for format string"?19:52
lifelessI think thats a new one19:52
abentleylifeless: I'm not sure if you're aware, but bzr 1.9 has API changes that are incompatible with loom trunk.  Launchpad wants to use bzr 1.9.  So I'm trying to land lp:~abentley/bzr-loom/stuff on bzr+ssh://bazaar.launchpad.net/~Elaunchpad-pqm/bzr-loom/trunk19:55
abentleylifeless: But it died with the aforementioned error.19:56
abentleylifeless: A silent failure, not an email failure.19:56
rockstarHow do I get the config of a branch, if I have a setting for a branch in my bazaar.conf19:57
jelmerrockstar: you mean something like Branch.open(url).get_config() ?19:58
rockstarjelmer, does that return a bzrlib.config.Config object?19:58
jelmerIt returns a BranchConfig object, but that's based on a Config object IIUC19:59
rockstarI thought I wanted BzrDirConfig, but BranchConfig looks better.19:59
jelmerBranchConfig reads from .bzr/branch/branch.conf, locations.conf and bazaar.conf (not sure in what order)19:59
lifeless  File "/home/pqm/pqm/pqm/__init__.py", line 534, in do_merge20:01
lifeless    self.log_with_status(logger, merge_line)20:01
lifeless  File "/home/pqm/pqm/pqm/__init__.py", line 428, in log_with_status20:01
lifeless    self.branch_spec_handler.status.line(message % args)20:01
lifelessTypeError: not enough arguments for format string20:01
lifelessabentley: its a bug; let me have brekkie and I'll try to track it down20:01
abentleylifeless: thank you.20:04
=== mw|food is now known as mw
jfroy|work:sigh: loggerhead has almost no documentation :|20:33
evarlastit has source!20:33
evarlastpython is very readable, that is how I got lh running :)20:33
jfroy|workI know, I know.20:33
jfroy|workBut I always look for the easy way out.20:33
jfroy|work*easy way out first :p20:34
jfroy|workSeems odd that they are pushing to move to serve-branches20:34
NfNit|oopHmm, is there not an option to create a branch w/o a working copy?20:34
jfroy|workIt seems a lot less flexible than the config file.20:34
dobeyNfNit|oop: bzr branch lp:foo bar20:34
dobeyor you mean create a branch on the server?20:34
NfNit|oopa branch without a checkout.20:35
NfNit|oopit's ok, I'll just branch then remove-tree20:35
verterokNfNit|oop: if you have repository created with --no-trees, the branch is created without tree20:42
jfroy|workbah, I can't make heads or tails of how to use --user-dirs with an Apache proxy20:43
NfNit|oopverterok: right, I'm in a shared repo, but I've got trees for some branches, and wanted to create a branch as a sortof temporary tag to compare against some other revision.   Didn't really need to create a working tree for it.20:44
verterokNfNit|oop: I don't think they can be mixed :/20:45
luksNfNit|oop: you can compare against remote branches20:45
NfNit|oopverterok: Well, I just did `bzr remove-tree`... so I hope they can be mixed. :p20:46
NfNit|oopluks: Yeah, but that's slower than doing it locally. :p20:46
verterokNfNit|oop: sure, but you must do a remove-tree :)20:46
NfNit|oopverterok: mkay, that's fine. :)   I was just surprised at its absence.20:47
verterokNfNit|oop: indeed20:47
abentleyNfNit|oop: If you really want to, you can create the branch over bzr+ssh (or sftp, ftp whatever your workstation has running).  Branches created over remote protocols don't get working trees.20:54
lifelessjfroy|work: its less flexible in some ways, but its a lot easier for most folk to deploy21:05
lifelessjfroy|work: the user-dirs thing is instead of using apaches' userdir mapping facility-> if you want host/~foo to be served by loggerhead21:05
lifelessverterok: they should be mxable21:06
BrentHHi, I'm having problems with the initial brnach setup of Bazaar. Any bored volunteers? <g>21:06
BrentHer branch21:06
lifelessBrentH: sure, whats up21:06
BrentHwell, I'll give you the mini-background.21:06
BrentHI've setup a project on Launchpad, and put ateam on the project...the problem is getting the initial code onto Launchpad21:07
lifelessBrentH: what vcs is it in at the moment?21:08
BrentHI'm an IT person, but Bazaar and Launchpad have made me feel really dumb. lol21:08
BrentHit's not - brand new.21:08
lifelessassume that its at /src/foo21:08
lifelesscd /src/foo21:08
lifelessbzr init21:08
lifelessbzr add21:08
lifelessbzr commit21:08
lifelessbzr push lp:~$TEAM/$PROJECT/trunk21:09
BrentHI should clarify - it didn't exist before...right now the initial code is only two files. The code is on a Win installation of Bazaar.21:09
BrentHwhen I push it, I'm getting "error not a branch"21:09
lifelessBrentH: have you run the commands I listed above?21:09
BrentHyes. all were successful until the push21:09
lifelessare you running push from within the directory?21:10
verteroklifeless: yes, it's just I expressed it wrong (choosed poorly my words), what I meant was that a share repo can't create branches without tree if it's not a --no-trees repo.21:10
lifelessabentley: I see the issue with pqm I think; the branch has % in it21:10
BrentHok, 1st problem solved...maybe21:11
BrentHhere's the thing...21:11
BrentHI desire a directory under foo called new.   So foo/new...21:12
abentleylifeless: Heh.21:12
lifeless File "/home/pqm/pqm/pqm/__init__.py", line 787, in run21:12
lifeless    line='merge %s %s' % (self.from_branch, self.to_branch))21:12
lifeless  File "/home/pqm/pqm/pqm/__init__.py", line 534, in do_merge21:12
lifeless    self.log_with_status(logger, merge_line)21:12
lifeless  File "/home/pqm/pqm/pqm/__init__.py", line 428, in log_with_status21:12
lifeless    self.branch_spec_handler.status.line(message % args)21:12
BrentHdoes it make a difference where I eventually deploy it? (I want to deploy to a virtual website dir)21:12
lifelessBrentH: 'mkdir new'21:13
lifelessBrentH: 'bzr add'21:13
lifelessBrentH: 'bzr commit'21:13
abentleylifeless: Looks like some pretty intentional string interpolation to me ;-)21:13
BrentHI just now realized I had to commit from within "new"21:13
BrentHduh21:13
lifelessabentley: I'm only guessing at this point, but it seems plausible21:13
BrentHbut it gave me an auth error21:14
BrentH...on the password error21:14
BrentHis it the same password as the private key?21:14
lifelessBrentH: on push?21:15
BrentHlifeless:yes21:15
lifelessyes, it's your private key passphrase21:15
BrentHlemme try again...21:16
BrentHbad auth type again21:17
lifelesscan you show the exact error please21:18
lifelessif its more than a couple of lines paste it on http://paste.ubuntu.com/21:18
BrentHwhy do I sometimes need to use my screen name, and other times my full name?21:18
lifelessfor launchpad urls, its always the display name21:18
abentleylifeless: I would interpret "display name" as "Aaron Bentley"21:19
abentleylifeless: I've re-submitted without the %.21:19
lifelessoh21:20
lifelessBrentH: the short-name-with-no-spaces21:20
BrentHfirst-last21:20
lifelessabentley: thanks, I'll file a bug on pqm re this21:20
BrentH1sec21:20
BrentHwhen I do the commit, it tries to use first-last instead of BrentH (scrn name)21:22
BrentHdon't know if that is the issue or not...21:22
=== fta_ is now known as fta
BrentHI'm using it to teach a class project, and thought this might be a cool way to do it21:23
lifelessBrentH: the commits record email addresses as a globally unique committer identifier21:23
lifelessthe BrentH for url's on launchpad is just what launchpad has chosen to use as account names.21:23
BrentHI set my email addy in cmd pmt21:24
=== mthaddon_ is now known as mthaddon
BrentHBrentH was the screen name I chose on launchpad21:25
BrentHguess that doesn't matter21:26
BrentHquestion: will this be too cpmplex for community college students to use for a one-off 1 month project?21:27
BrentHyeesh...sorry about that21:27
lifelessBrentH: not your fault ;)21:27
lifelessBrentH: it should be fine IMO, there are only a few steps to basic usage21:27
BrentHok. should I email you acct un/pw to take a look?21:28
lifelessBrentH: why? (I'm not sure what you're asking)21:29
BrentHwasn't sure what be the easiest to troubleshoot21:29
BrentHer what would be...21:29
BrentHdrat....brb21:30
lifelessBrentH: is there still something wrong though?21:33
lifelessbug 279381 is the one got you abentley21:42
abentleyOh, did ubotu go away?21:42
lifelessnetsplit21:43
lifeless10K users gone :P21:43
abentleylifeless: readdir?  Colour me confused.21:44
lifelessabentley: https://bugs.edge.launchpad.net/pqm/+bug/29738121:51
ubottuLaunchpad bug 297381 in pqm "string interpolation fail" [Medium,Triaged]21:51
lifelesstransient dyslexic chaos reigned21:51
=== sdboyer is now known as sdboyer|class
BrentHatlifeless: hi22:12
NfNit|oopBrentHat: hi22:14
BrentHatok, the distractions are gone. :)22:14
lifelessBrentHat: hi22:15
BrentHatI should have a block of time now if you can help22:15
lifelessBrentHat: are you still having some problem?22:15
BrentHatlifeless: yes, at the auth, even though I think it is the correct pw22:15
lifelessBrentHat: can you paste the exact thing you see please22:16
BrentHatC:\Documents and Settings\Brent\My Documents\windsortoastmasters.org\new>bzr pus22:17
BrentHath lp:~windsortoastmasters/windsortoastmasters/website22:17
BrentHatConnected (version 2.0, client Twisted)22:17
BrentHatSSH brent-hathaway@bazaar.launchpad.net password:22:17
BrentHatAuthentication type (password) not permitted.22:17
BrentHatbzr: ERROR: Connection error: Unable to authenticate to SSH host as brent-hathaw22:17
BrentHatay@bazaar.launchpad.net Bad authentication type (allowed_types=['publickey'])22:17
lifelessBrentHat: bzr doesn't know/have access to your private key22:17
lifelessBrentHat: have you setup a private key and uploaded it to launchpad?22:17
lifelessjml: also, why don't we support the users passphrase on b.l.n ?22:18
BrentHatok, makes sense. I uploaded a key to launchpad22:18
jmllifeless: historical reasons.22:18
jmllifeless: spiv may have a better notion of the history.22:19
BrentHatlifeless: so does that mean each user has to work at a dedicated location, because of the key?22:19
lifelessjml: I was there :) I don't think we ever had a good reason, just that we were not going to use the system db.22:19
lifelessBrentHat: no, they can carry the key around with them22:19
lifelessBrentHat: what you upload to launchpad was half the key22:20
jmllifeless: then why ask me.22:20
BrentHatlifeless: ok.22:20
lifelessjml: because its your baby *now* :)22:20
lifelessjml: and if you think its reasonable, I'll file a bug22:20
lifelessBrentHat: its like a lock+key; the 'public key' is the lock, the 'private key' is the bit you carry around yourself and never give to someone else.22:20
NfNitLoopBrentHat: Or, they can work wherever, then pull & push when they get to wherever their key is.22:21
BrentHatI see my public key has been added at https://launchpad.net/~brent-hathaway/+editsshkeys22:21
BrentHatso how do I assoc. the private key with bazaar?22:21
lifelessBrentHat: I don't know windows well enough; sorry22:22
lifelessone of the folk that use windows should be around in about 40 minutes22:22
lifelessor it might be documented in the user guide22:22
BrentHatthere also aren't any .config files either tat I could find22:22
jmllifeless: it's semi-reasonable, it won't get done any time soon22:22
* jml on a call that's demanding concentration.22:23
BrentHatI'll try rtfm again then, lol.22:23
BrentHatok, since I have a bunch of "wrong" branches made at launchpad, is there a way to delete them at the site list?22:24
eyda|monis there anyway to get bzr to show me the relative paths of files when doing bzr st instead of the full path?22:25
lifelesseyda|mon: not yet22:26
lifelessBrentHat: go to the branch web page; there is a delete button there22:26
BrentHatlifeless: it says the branch hasn't been imported yet. I don't see any button, but no biggie.22:28
BrentHatlifeless: yay, found the conf files22:34
BrentHatlifeless: there is a file called: ssh_host_keys   do I replace that file with my private key, and rename it to that?22:35
lifelessBrentHat: no22:35
lifelessBrentHat: you should put your private key in that directory22:36
BrentHatlifeless: public, too?22:36
lifelessdoesn't matter22:36
BrentHatgrrr, no dice - same error22:38
lifelesswhat file name does your private key have?22:39
BrentHatprivatekey.ppk22:39
pooliehello lifeless, all22:40
BrentHathi poolie22:40
BrentHatlifeless - should I recreate another set of keys?22:41
lifelessBrentHat: no22:41
lifelessBrentHat: try renaming the file to 'id_dsa'22:41
lifelesshi poolie22:42
BrentHatk22:42
lifelesspoolie: BrentHat here has some issues with lp auth on windows; is jam there ?22:42
=== eyda|mon is now known as eydaimon
BrentHatlifeless: same22:43
BrentHatthanks for the help, btw22:43
eydaimonlifeless: plans for it though?22:43
eydaimonlifeless: I end up doing bzr st; bzr diff ... then the path is all wrong :/22:44
eydaimonlifeless: and I do that a lot22:44
lifelesseydaimon: yes, plans for it22:44
eydaimongood :)22:44
lifelesseydaimon: 'bzr root' may help22:44
eydaimonhmm, maybe. I'll keep that in mind. thanks22:44
BrentHatauthentication.conf:22:49
BrentHat[Launchpad]22:49
BrentHathost = .launchpad.net22:49
BrentHatscheme = ssh22:49
BrentHatuser = brent-hathaway22:49
jfroy|workis there a way to show a branch's public_url in Loggerhead?22:56
jfroy|workThere's no indication, as far as I can tell, to let people know from a loggerhead page how to branch the branch.22:57
jfroy|workhow to branch -> what URL to use to branch or checkout the branch22:57
beunojfroy|work, no, but if you file a bug, that can happen22:57
beunopatches are also welcome!22:57
jfroy|workSounds good22:58
poolieabentley: are you still around?22:59
pooliewant to talk about bug 28875122:59
ubottuLaunchpad bug 288751 in bzr "bzr push to stacked branch returns error Revision <x> not in <y>" [Critical,Triaged] https://launchpad.net/bugs/28875122:59
ja1BrentHat: do you have Pageant running?23:00
lifelessBrentHat: rename the id_dsa file back to what you had it called before23:00
=== ja1 is now known as jam
BrentHatno, running only Tortoise Bazaar....23:00
jamBrentHat: ok, you generated your .ppk file using putty, though right?23:01
jamwell, "puttygen"23:01
BrentHatok, renamed23:01
BrentHatyes, thru putty23:01
jamI'll give the quick rundown23:01
jamif you load your .ppk file into puttygen23:01
jamin the top box it has: "Public key for pasting into OpenSSH authorized_keys file"23:02
jamwhich has some text23:02
jamstarting with "ssh-rsa"23:02
poolielifeless: anyhow let's talk here23:02
jamyou want to select that string, and copy and paste that into launchpad23:02
pooliewas just going to say i had some progress towards 288751, i wondered if aaron would come back to it but i guess not23:02
jamBrentHat:  http://launchpad.net/+me/+editsshkeys23:02
pooliei think you read my incremental patches?23:03
jamhttps://edge.launchpad.net/people/+me/+editsshkeys23:03
jamsorry23:03
BrentHatjam: yup23:03
jamok, then once you have that uploaded23:03
jamyou need to either run Pageant and load the key manually23:03
jamStart/Programs/Putty/Pageant23:03
jamto start it23:04
jamand then right-click and say "add key"23:04
jambrowse for the .ppk23:04
jamadd it23:04
BrentHati did that b4 - uploaded the public23:04
jamUnfortunately, putty & pageant require you to add the keys manually on each boot23:04
jamYou'll probably also want to set Pageant up to start automatically23:04
jam(I just copy the shortcut to Start/Programs/Startup)23:04
jamBrentHat: feel free to ask me to clarify any of the steps23:05
BrentHatah, cool, 1 sec23:05
jamBrentHat: I think there is another way that you can do it, so that bzr & paramiko can find the key without you running pageant23:06
jamlet me poke around for a sec23:06
BrentHatok, in the meantime, I'll try the commit again.23:06
jamok, if you load your key back into PuttyGen23:07
BrentHater: I'll try the push again23:07
poolie[merge] NewPack constructor takes a PackCollection rather than a bunch of it's attributes <http://bundlebuggy.aaronbentley.com/project/bzr/request/%3C20081112091450.GA7227%40sourcefrog.net%3E>23:07
BrentHatWoo-hoo!!!! Auth successful!23:08
jamUnder "Conversions/Export OpenSSH key"23:08
jamyou can use that to create the "id_rsa" file23:08
jamand put it in $HOME23:08
jamwhich is typically23:08
jamDocuments and Settings/<username>23:08
jamor Users/<username> (on Vista)23:09
BrentHatnot seeing conversions/export23:09
jamBrentHat: In "PuTTYGen" ?23:09
BrentHatohhhh lol23:09
jamIn the menu, I have "File, Key, Conversions"23:09
BrentHatgot it! <g>23:10
BrentHatI saved it in the 2.0 dir - with the other key - correct?23:10
jamNot in the 2.0 dir23:11
jamin "C:\Documents and Settings\<username>\id_rsa"23:11
jamas the full path to the file23:11
BrentHatk23:11
BrentHatok, done - should I test, and if so....how? lol23:12
BrentHatyay, much happier now.23:12
BrentHatah geez, I just noticed there's till an error:23:15
arjenAUpoolie: morning - so you're in my town today?23:15
BrentHatC:\Documents and Settings\Brent\My Documents\windsortoastmasters.org\new>bzr pus23:16
BrentHath lp:~windsortoastmasters/windsortoastmasters/website --use-existing-dir23:16
BrentHatConnected (version 2.0, client Twisted)23:16
BrentHatAuthentication (publickey) successful!23:16
BrentHatSecsh channel 1 opened.23:16
BrentHatUsing default stacking branch /~windsortoastmasters/windsortoastmasters/main at23:16
BrentHatbzr+ssh://bazaar.launchpad.net/%7Ewindsortoastmasters/windsortoastmasters/23:16
BrentHatConnected (version 2.0, client Twisted)23:16
BrentHatAuthentication (publickey) successful!23:16
BrentHatSecsh channel 1 opened.23:16
BrentHatbzr: ERROR: Not a branch: "bzr+ssh://bazaar.launchpad.net/~windsortoastmasters/w23:16
BrentHatindsortoastmasters/main/".23:16
BrentHatfurther proof I am *newbie clueless*23:17
BrentHatok, so there is one bazaar branch listed as lp:~vcs-imports/windsortoastmasters/main and another listed as lp:~windsortoastmasters/windsortoastmasters/website23:20
BrentHatand a third with a series of lp:windsortoastmasters series: trunk23:21
BrentHatI'd like to do whatever is going to be the easiest, and I don't know which to delete from the site (although I do not see a delete button as lifeless had mentioned...drat)23:21
BrentHatthanks jam for the help so far!23:25
jamBrentHat: just a sec23:27
arjenAUpoolie: blip23:31
pooliehello arjenAU23:39
arjenAUpoolie: so, in my town today was that right?23:40
poolieyes, we are23:44
pooliewe're in the city23:44
pooliewould you like to meet, maybe for lunch?23:44
arjenAUpoolie: pm23:45
BrentHatwhich timezone is everyone in?23:49
arjenAUGMT+1023:51
BrentHatI'm GMT -523:53
BrentHatIt's cool that people from this project hang out IRL23:55

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