/srv/irclogs.ubuntu.com/2008/04/07/#bzr.txt

lifelessnick125: there is an 'integrating with bzr' wiki page btw00:14
beunonick125, http://bazaar-vcs.org/Integrating_with_Bazaar00:15
* nick125 is reading00:15
nick125Does bazaar have some way to push via HTTP with something like a CGI script?00:43
nick125That's one of the main things that I liked about mercurial (one of the things I didn't like about mercurial was the random data corruption that would occur when you would use two different mercurial versions)00:46
mwhudson_nick125: there is some support for smart behaviour over http, yes00:47
mwhudson_i'm not sure how useful it is yet00:47
lifelessnick125: bzr+http00:48
nick125*looks*00:49
nick125lifeless: Do you happen to have a link?00:49
lifelessits in the docs00:52
lifelesson an http url bzr 1.4 will autodetect bzr+http if its available00:53
* nick125 looks at the big "THIS IS EXPERIMENTAL AND INSECURE" notice00:57
nick125hmm00:57
spivThat notice is gone in bzr.dev.00:57
lifelessspiv: call ?00:58
mwhudson_spiv: i hope that means its secure now :)00:58
lifelesspoolie is organising office stuff; I have offered to be the teddy bear de jour00:58
spivlifeless: sure00:59
nick125What other ways exist to push with bzr without SSH?00:59
lifelessbzr+http00:59
lifelessftp00:59
lifelesswedbav01:00
lifelessany vfs01:00
bob2ssh/sftp seem to be the most mature and simplest, tho01:01
lifelessoh yeah, sftp too :P01:06
lifelessbut sftp kinda needs ssh :)01:06
* nick125 is kind of leary about giving random people SSH access to his server01:06
LeoNerdYou can create sftp-only accounts01:07
LeoNerdYou set the shell to something special. sftp doesn't actually use a shell anyway, it's a different subsystem of ssh01:07
nick125LeoNerd: So I can set the shell to /bin/false (or something like that), and sftp would still work?01:08
LeoNerdUm.. possibly. I don't know the details, I just know it's possible01:08
jdongnick125: I think that's roughly correct. OpenSSH's sftp subsystem in recent versions can even set up a chroot to restrict where they may navigate to01:09
jdongnick125: on my secured shells recently, I've been utilizing Apparmor profiles to provide restricted access. this can also be an acceptable option01:09
lifelessnick125: you can even use a virtual SFTP server e.g. the conch one or I think paramiko has one too01:09
nick125hmmm01:10
* nick125 sets up bazaar and paramiko03:01
pooliehello03:02
pooliewelcome nick12503:02
nick125hiya poolie03:02
nick125So, paramiko is a sftp server that doesn't require users to have shell access?03:06
nick125blah03:18
nick125I'm trying to figure out how to get a centralized repository that people will push and pull from...I don't think I want to do a shared repository, since I have a bunch of devs that want to work offline.03:19
Odd_Blokenick125: A shared repository is just a performance and storage enhancement, it doesn't affect your workflow.03:21
nick125Unless I'm misunderstanding the concept of shared repositories (it sounds to me that a shared repository keeps the history on the server)03:21
lifelessnick125: shared repositories simply allow multiple branches to use a single shared history db03:21
lifelessnick125: does not affect offline/branches/etc03:21
nick125Ahh.03:22
nick125The documentation makes it sound like that it stores the entire history on the server and only leaves a local copy.03:22
lifelesswhich docs in particular ?03:23
nick125the centralized workflow one03:23
nick125I probably misread it.03:23
lifeless(what you describe is what lightweight checkouts do)03:23
lifelessan orthogonal feature03:23
* nick125 hates having to come up with names for projects03:27
ubotuNew bug: #213172 in bzr ""bzr status" output problems" [Undecided,New] https://launchpad.net/bugs/21317203:40
ubotuNew bug: #213182 in bzr "TestLockDir.test_35_wait_lock_changing is timing-dependent" [Undecided,New] https://launchpad.net/bugs/21318204:16
ubotuNew bug: #213184 in bzr "'conflicting tags' could be more helpful" [Undecided,New] https://launchpad.net/bugs/21318404:26
ubotuNew bug: #213185 in bzr "tag conflicts do not change exit code" [Undecided,New] https://launchpad.net/bugs/21318504:26
ubotuNew bug: #213186 in bzr-gtk "gannotate broken with bzr.dev" [Undecided,New] https://launchpad.net/bugs/21318604:30
=== mwhudson_ is now known as mwhudson
* mwhudson wtfs04:33
mwhudsonreality check please:04:33
mwhudsonam i right that it's pretty strange that "cd a; bzr merge ../b" gives conflicts in different files to "cd b; bzr merge ../a" ?04:34
mwhudson(with --lca)04:35
mwhudsonthough the conflicts are different with merge3 too04:36
mwhudson(some of the conflicts look totally bogus too)04:37
Odd_BlokeLCA has an edge case which it doesn't deal with, but I can't remember what it is...04:38
pooliemwhudson: unless there are working tree changes it does sound strange04:46
mwhudsoni guess i'll just send abentley a mail, given that this is an issue with two launchpad branches04:46
pooliei don't think it's guaranteed that they're symmetrical04:46
lifelesspoolie: it should be; we walk back to a single lca04:47
mwhudsoni guess i'll send the mail to the internal list then :)04:47
abentleyOdd_Bloke: The edge case is that it fails to detect a conflict when one side deletes lines and the other side changes them to something else.04:48
abentleymwhudson: Please do.04:49
bitmonkhi, so like, i installed bzr and bzr-svn packages in ubuntu, but am having trouble branching an svn repo. the documentation is rather light in the bzr-svn wiki, any pointers?04:50
abentleyI can tell you, it's been frustrating over the years to get reports of strange merge behavior with Launchpad branches, and not be able to do anything about it.04:50
mwhudson(there is some criss-cross merging around)04:50
mwhudsonabentley: i'm sure04:50
bob2bitmonk: "bzr branch svn_url blah" - do you get an error?04:51
bitmonkbzr: ERROR: Not a branch: svn+https://svn.plone.org/svn/archetypes/Archetypes/trunk04:51
bitmonksame for https://04:51
mwhudsonhm04:51
bitmonkindeed.. i haven't had it working for a while, but got it working from source a couple times on my mac or something..04:51
bitmonki have had it working, so i have a rough memory of what works..04:51
lifelessabentley: just think, now you can dig all those reports up and analyse them :)04:52
* mwhudson finds himself wondering if there is a way of restricting 'bzr viz' to revisions touching a particular file04:52
abentleylifeless: yay!04:52
abentleylifeless: Have you had seen bug 212908 ?04:53
ubotuLaunchpad bug 212908 in bzr "fetch all from a repo with identical contents fails with pack repos" [High,Triaged] https://launchpad.net/bugs/21290804:53
spivmwhudson: that would be lovely feature04:54
spivmwhudson: I don't think it exists yet, sadly.04:54
=== jamesh_ is now known as jamesh
abentleySince VersionedFiles can provide a Graph, it shouldn't be hard now.04:55
abentleyBecause viz is now using Graphs.04:55
lifelessabentley: are your two statements to me related?04:57
abentleylifeless: No.04:58
lifelessabentley: I've seen that bug, I presume you had a plugin or something to trigger it?04:58
bob2bitmonk: does 'bzr plugins' show svn listed?04:58
abentleyReconfigure triggers it.04:58
lifelessoh, ok.04:58
abentleyAt least in my new patch, it does.04:58
abentleyBut we have also occasionally seen reports of the same error in the wild.04:59
lifelessI can guess at the cause; its really a LBYL avoidance optimisation04:59
abentleySo this may be the cause of them.04:59
mwhudsonoh, i think the different merge results with --merge3 were because of unknown files or something04:59
bitmonkbob2: yessir04:59
lifelessabentley: rather than checking keys exist in packs, we copy them when we are asked too. By design multiple packs can have the same key.04:59
abentleyThis isn't a key-level problem-- it's a file-level problem.05:00
bob2bitmonk: hm, dunno then - try asking on the mailing list, I guess05:00
abentleyIt comes from trying to create a file in a pack that already has a file with the same name.05:00
lifelessabentley: thats a key level problem05:00
lifelessabentley: the name is the checksum of the .pack05:00
bitmonkbob2: will do, no hurry i s'pose05:00
* mwhudson sends a mail05:01
lifelessabentley: it means we've copied the exact same data in twice.05:01
abentleyAre you saying the filename of a pack is its key?05:01
lifeless(or got a md5 collision)05:01
mwhudsonfortunately, it's not actually a real problem for me, the bogus seeming conflicts are trivial05:01
abentleyNo, I think you're forgetting that fetch with no argument ids doesn't copy contents, it copies files.05:02
abentleySo if the source file has foo.pack, the target file has foo.pack, regardless of the keys inside it.05:02
abentleyI mean source repo, target repo.05:03
lifelessabentley: one sec, talking with poolie05:03
abentleySo it's all about what the names of files in a repo are, not what their contents are.05:04
abentley(Now of course, we would *hope* that the repository is not corrupt, but that's not actually relevant...)05:05
lifelessInterPackRepos.fetch does not copy files05:06
lifelesswhen revision_id is None, it does self.source.all_revision_ids()05:06
lifelesswhy are you saying we copy files ?05:07
lifelessline 2726 of repository.py in bzr.dev05:07
bob2bitmonk: does http:// work?05:09
bitmonkgood question, trying05:10
abentleyI have line 275805:12
abentleyubotu: paste05:13
ubotupastebin is a service to post multiple-lined texts so you don't flood the channel. The Ubuntu pastebin is at http://paste.ubuntu-nl.org (make sure you give us the URL for your paste - see also the channel topic)05:13
abentleyhttp://paste.ubuntu-nl.org/62385/05:13
abentleylifeless: ^^05:14
lifelessabentley: that is consistent with my analysis05:14
lifelessabentley: packers copy contents not files05:14
lifelessabentley: when revision_id is None, revision_ids becomes the source's all_revision_ids() set05:15
lifelessabentley: but like I said, we don't try to eliminate duplicate revisions because that is costly and unneeded.05:16
abentleyMy apologies if I misunderstood.05:16
lifelessabentley: this is simply an expected md5 collision: we are copying the same content to a repository that has that content laid out the same way in a .pack. The right thing to do is to complete bug #05:16
abentleyIt looked as though it was copying the source's all_packs(), not their contents.05:16
abentleyBug # ?05:17
AfCThere is no bug number. That's part of the bug :)05:18
lifelessI can see the confusion :)05:18
lifelessI'm looking it up05:18
lifelesslp is slow05:18
lifelesshttps://bugs.edge.launchpad.net/bzr/+bug/16529305:19
ubotuLaunchpad bug 165293 in bzr "collisions through uploading same-named .pack files not handled correctly" [High,Confirmed]05:19
lifelessfetch with no revision_id parameter should be extremely rare - limited to upgrade in fact05:20
lifelesswhy does reconfigure use it ?05:20
abentleylifeless: It is deleting a repository.05:21
abentleySo it fetches all the contents into a new repository.05:21
lifelessright05:22
lifelessas a backup ?05:22
lifelessand is it doing it twice for some reason ?05:23
lifeless(we can't filter on all_revision_ids() here, because if you need _all_ data you need signatures for absent revisions, inventories with no revisions etc.)05:23
abentleyBecause the new repository is going to be used for the branch from now on-- e.g. a heavyweight checkout being converted into a lightweight one, or a standalone tree being converted into a sharing tree.05:24
lifelessso when you say new repository, do you mean 'existing other repository' ?05:25
abentleyyes.05:25
lifelessok05:25
abentleySo the test cases set up two repositories with identical content.05:26
abentleyAnd then reconfigure itself does the fetch()05:26
lifelessfixing the md5 collision handling to not error on collisions with identical content will fix this bug05:26
lifelessbut reconfigure in this case will be overly slow05:26
abentleyIf you fix it or in general?05:26
lifelessthe cause  of the error is a situation we expect to encounter, but rarely05:27
lifelessand is not an error when it happens, we just currently group it with actual errors.05:27
lifelesshowever, copying a *lot* of data that we do have will be slow05:27
lifelesspack repos allow keys to be duplicated in different .pack files because that allows better concurrency when two people write to a repository at the same time05:28
lifelesstesting a workaround for you05:32
lifelessabentley: try this: http://paste.ubuntu-nl.org/62387/05:35
abentleylifeless: that fixes my test case.05:38
abentleyReconfigure tests pass too, with my workaround removed.05:40
lifelessabentley: cool05:45
lifelessOperationalError: ('(OperationalError) database is locked', <bound method Root.index of <bundlebuggy.controllers.Root object at 0x8ed078c>>) u'SELECT mergerequest.id AS mergerequest_id, mergerequest.date AS mergerequest_date, mergerequest.summary AS mergerequest_summary, mergerequest.branch_location AS mergerequest_branch_location, mergerequest.head_revision AS mergerequest_head_revision, mergerequest.text_type AS mergerequest_text_type, 05:55
lifeless*sorry*05:55
lifelessI had no idea it was that long; I imagine IRC truncated it but still05:55
poolie /kick lifeless :)05:56
lifelessspiv: whats up with  http://bundlebuggy.aaronbentley.com/request/%3C20080228144229.GF3192@steerpike.home.puzzling.org%3E?05:57
lifelesspoolie: http://bundlebuggy.aaronbentley.com/request/%3C1207267732.5960.150.camel@lifeless-64%3E05:57
bitmonkbob2: still no love with http:// :/06:07
lifelessspiv: u have a review06:09
spivlifeless: thanks06:09
spivlifeless: so you just think s/list/tuple/ in that?06:10
lifelessIf that passes tests yes.06:11
* spiv nods06:11
lifelessyou'll need to change the code obviously as you can't mutate the tuple once you make it06:11
lifelessso list(thing)06:11
lifeless...06:11
lifelessnew = tuple(correct_options006:11
lifelessspiv: calling it orig_options is confusing too; so perhaps options = list(self....)06:12
spivOk, makes sense.06:12
* spiv finds out if tests pass06:12
pooliespiv it looks like you should merge http://bundlebuggy.aaronbentley.com/request/%3C20080228144229.GF3192@steerpike.home.puzzling.org%3E06:49
spivpoolie: yeah, it's on my radar.  lifeless just pinged me about that earlier :)06:50
jameshhi fog09:26
foghi james09:27
=== AfC is now known as AfC|makingDinner
=== `6og is now known as Kamping_Kaiser
=== doko__ is now known as doko
=== weigon_ is now known as weigon
=== AfC|makingDinner is now known as AfC
luisbghow do I unlock a branch?11:50
spiv"bzr break-lock"11:50
luisbgit seams to be in the host11:51
luisbgUnable to obtain lock lp--1228238676:///lock11:51
luisbgheld by luisbg@bazaar.launchpad.net on host vostok [process #25367]11:51
luisbg:(11:51
james_wluisbg: hi11:54
luisbghey james_w11:54
james_wyou want to run "bzr break-lock sftp://whatever"11:54
luisbgok11:54
luisbglet me see11:54
james_wunfortunately with launchpad you may need to run this a few times.11:54
luisbga lot11:56
luisbgstill stuff locking it11:56
luisbgdone and pushed after like 10 runs11:57
luisbg:)11:57
luisbgthanks!!11:57
james_wno problem.11:57
=== mrevell is now known as mrevell-lunch
datowhat was the command providing --custom revision format?12:18
datothe thingie that is recommended instead of $Expansion$12:18
ignashow do i get a branch for some specific revision using bzrlib?13:06
ignaswithout making a checkout preferably13:06
ignasi want to pass the result as "other" to branch.missing_revisions13:07
pickscrapeHi, I've encountered a bug in bzr+svn that I think I can fix myself. Could anyone point me at any docs on bzr+svn hacking?13:15
pickscrape(i.e. which tree to work against, where/how to email a merge request/patch etc)13:15
bob2the bzr svn page on the wiki at least has some of that information13:17
pickscrapeIt links to three branches (trunk, 0.4 and 0.3), doesn't say which to use to hack on, shows how to run the unit tests, and where to raise bugs13:18
ignasemm, why is revision_tree method of a tree13:22
ignas"not implemented" but not marked as such in the docs13:22
ignasit always raises an error (at least that's what code says)13:23
ignasbut has an elaborate docstring13:23
ignasthat leads one to think that the method does somethingh13:23
* ignas had this idea that using bzrlib would make listing of all the new changes since some revision easier than using bzr from the command line...13:25
=== mrevell-lunch is now known as mrevell
spivignas: there will be a subclass that implements th\at13:30
spivignas: although most classes don't tend to be constructed directly, you usually get them by calling methods on repository/branch/etc.13:30
ignasyeah, that's what i tried doing13:31
ignastree.revision_tree("revision-I-want")13:32
bartzitzhello, i have a central repository (remote server), and i need to run a hook (shell script) on that server after each commit. how do i do this?13:33
ignasso - how do I list all the changes in a branch since some revision?13:34
* ignas looked at show_log and it is a little bit complicated13:34
bartzitzignas: bzr log -r<revno>..13:34
bartzitzignas: -v will show modified files as well13:35
ignasi need it not including the revno13:35
ignaswhich is why i tried using bzrlib to do that13:35
bartzitzignas: maybe i haven't got what are you trying to do?13:35
ignasi need a list of all the changes since some tag (only new revisions) listed on a web page13:36
ignasat the moment i am using popen to run "bzr missing"13:36
ignasbut that requires making a checkout from the tag13:37
ignaswhich makes the operation kind of slow13:37
bartzitzignas: bzr log -r tag:<your tag>..13:38
ignasincludes the revision that was tagged as well13:38
bartzitzignas: hmm, no ideas for now13:40
bartzitzignas: do you know how to set up a hook on a remote shared repo?13:40
ignasnope13:41
ignaswhy would i want to do that?13:41
bartzitzignas: i need it :)13:41
ignasoh ;)13:41
bartzitzignas: just asking13:41
=== mw|out is now known as mw
ignasis there an easy way to perform actions on bzr log messages using bzrlib?14:00
ignasi want all the log messages since some revision14:01
ignasin some data structure14:01
ignasand the only thing i could find that does something like that was show_log function, but it's way too complicated for what I want14:01
ignasand outputs stuff into stdout from what I can see, instead of giving me a list14:01
datoignas: I think revision objects have a .message attribute14:02
ignasok, how do i get all the revision messages since some revision?14:03
ignasor does revision_history() return them ordered ?14:04
james_wignas: yes, revision_history is ordered14:04
ignasand how do i get a revision object from a revision_id?14:06
pickscrapeIs there a way to resume a bzr checkout operation that has died?14:08
spivignas: repo.get_revision14:09
spivignas: where 'repo' is a Repository, e.g. from Repository.open('path/to/repo'), or from branch.repository.14:09
=== kiko is now known as kiko-afk
pickscrapeAnyone know how to resume a failed checkout operation?15:33
james_wpickscrape: "bzr pull" may be able to do it, I think it depends when it failed.15:36
pickscrapeBingo. :) I had to specify the URL of the svn repository again, but it appears to be working fine.15:38
pickscrapeThanks for that.15:38
pickscrapeMy bzr-svn fix appears to have worked too. Anyone know where I should email the bundle containing the fix to?15:38
jelmerpickscrape: please send it to me (jelmer@samba.org)15:39
pickscrapeWill do.15:39
pickscrapejelmer: should the patch be against 0.4 or trunk?15:40
jelmerpickscrape: 0.4 please15:40
jelmerpickscrape: just "bzr send" should Do The Right Thing[tm] if you have bzr >= 1.315:40
pickscrapeI guessed right then :)15:41
pickscrapeJust making sure my name etc is configured right for the commit.15:41
ignaswhere can I find example of how to change 1 file and commit it to a branch using bzrlib without having a checkout15:41
ignasif that's possible15:42
ignasoh and tagging, yes, tagging15:42
james_wI don't think you can do it without a checkout15:43
james_wat least not easily.15:43
ignaswhere can i read about the hard way?15:43
james_wI doubt you can I'm afraid15:43
ignasbecause i am already doing it with bzr co + shell script15:43
james_wI'd have no real idea how to do it, I'd just know that you probably have to write a CommitBuilder, or perhaps somesort of Tree.15:44
ignasi can see the CommitBuilder object15:44
ignasbut where do i find the information on how to use it15:45
james_wI don't know I'm afraid.15:45
ignasall my attempts at googling for this stuff end up in unrelated mailing list posts or bug reports ...15:45
jelmerignas: It should be possible by obtaining a CommitBuilder from the branch you would like to commit to15:46
jelmerignas: and then calling the methods on the object that is returned to you15:46
ignasyeah, have that15:46
ignasthe methods are not very obvious15:46
ignasi think "cb.new_inventory" is what i need15:46
ignasbut i am not really sure15:47
jelmerignas: Basically the idea is you call record_entry_contents() for each entry in the inventory15:47
jelmerignas: (even the unchanged ones)15:47
jelmerignas: then, call modified_file_text() / modified_link() / modified_directory() for each entry that was modified15:48
jelmerignas: then commit(message)15:48
ignasmodified_file_text is a method of what?15:49
jelmercommitbuilder15:49
ignashmm, can't see it15:49
=== abadger1991 is now known as abadger1999
ignaspython prompt is giving me attribute not found on it15:50
jelmerignas: Ah, looks like that's been removed15:50
ignasi see15:51
ignasis there some place i can read about it? or did no one ever tried doing that before?15:52
ignashow do you do such things in tests? or do you just modify the tree that you have checked out?15:52
jelmerignas: Please ignore me, it looks like modified_*() has been removed15:53
jelmerignas: Ah, you have to pass in a tree to record_entry that commitbuilder will get the text from15:53
jelmerignas: or something that has a get_file_text() method15:53
jelmerignas: lifeless and I wrote CommitBuilder a couple of years back, afaik there is no documentation (yet)15:54
ignas:D15:55
ignasnot like you had time ;)15:55
jelmer(-:15:56
=== kiko-afk is now known as kiko
ignasso i should get a basis_tree, use some bzr magic to modify versions.txt.in in there, iterate through it's inventory and pass all the entries to CommitBuilder.record_entry_contents, passing that new tree as the tree parameter?16:00
jelmerignas: yep16:01
pickscrapejelmer: Patch sent.16:01
ignasjelmer: thanks, i'll try ;)16:02
jelmerpickscrape: Any chance you can also add an entry to NEWS and a test in tests/test_svk.py ?16:06
pickscrapeOh, sure.16:07
pickscrape<bzr-newbie>Should I uncommit my change then, do the additional changes and then recommit?</bzr-newbie>16:07
jelmerpickscrape: no, you should be able to just commit on top of your current commit16:08
pickscrapeOK. Figured you might prefer a 'cleaner' history, but I can do that.16:08
pickscrapeWas the method used appropriate or are there cleaner ways of doing it?16:09
jelmerpickscrape: I mainly care about the cleanless of the mainline history. No matter how many revisions you commit, there will only be one merge commit on mainline for your changes.16:10
pickscrapeAh, I get you.16:11
jelmerpickscrape: In other words, "bzr log" will show one merge commit and your commits indented below that16:11
jelmerpickscrape: The change itself looked fine16:12
=== mrevell is now known as mrevell-afk
=== mrevell-afk is now known as mrevell
pickscrapejelmer: I'm having trouble with the test. it's written, but when I try to run it I get "NameError: global name 'parse_svk_features' is not defined"16:55
pickscrapejelmer: Muppet alert (ignore me).16:56
ignasjelmer: i have managed to retrieve the content of the file, but how do I change it?17:03
ignasi have the branch, the tree, and the entry17:03
ignasor must I create a new entry instead?17:04
jelmerignas: When you call record_entry_contents set ie.revision to None17:10
jelmer(see the docstring of record_entry_contents())17:10
ignashmm, still not sure about it, i mean - it seems that record_entry_contents takes the new content using tree.get_file(ie.file_id)17:15
ignasmy question is - how do I put the new content into the tree17:15
ubotuNew bug: #213425 in bzr "push over sftp crashed" [Undecided,New] https://launchpad.net/bugs/21342517:18
pickscrapejelmer: Further patch with NEWS entry and unit test added.17:19
jelmerignas: You have to override get_file() somehow17:22
ignasoh17:22
PengThe bug from that bug is running as root? :X17:24
jelmerpickscrape: Thanks, merged :-)17:24
pickscrapeSweet. :)17:26
ignasjelmer: hmm if I try record_entry_contents on the entry i get a "file already under version control" error17:33
ignasbecause the file path is the same17:33
ignasand it tries to add the entry to the new_inventory17:33
ignasi kind of assumed that when you record the root entry all the sub entries get added recursivelly, but it seems that the assumption was wrong too17:35
=== kiko is now known as kiko-fud
Pengbzrlib/osutils.py is lazy-importing functions. Isn't that a no-no?17:36
abentleyPeng: no, that's usually okay.17:38
abentleyFunctions are usually called, not used like variables.17:39
abentleyThe first time you call a lazily-loaded function, the real function is substituted.17:40
abentleyIf you happened to pass the function as an argument, that would be more of an issue.17:40
lamalexHey, if I've got a working tree with changes that aren't in the main branch, will bzr pull overwrite what I've got?17:43
jelmerignas: and you're adding it with the same file id?17:46
ignasno, i god an error about the id being in the inventory already17:46
ignasso  i tried changing the id17:46
asabillamalex: no, if there are any conflicts they will be reported17:54
Pengjelmer: I've got another bzr-svn traceback for you. :) http://paste.pocoo.org/show/38420/17:54
Pengjelmer: Latest bzr-svn 0.4 and bzr.dev as of 5 minutes ago.17:55
jelmerPeng: the 0.4 branch is b0rked at the moment17:55
Pengjelmer: "bzr svn-import http://svn.pyyaml.org/". Trying to branch an individual, err, branch also fails around the same place.17:55
Pengjelmer: Heh, ok.17:55
Pengjelmer: Was it borked on the 1st?17:55
jelmerPeng: yep, has been broken for a couple of days17:55
Pengjelmer: Nice. Ok.17:56
jelmerPeng: I added a warning message a couple of hours ok17:56
jelmers/ok/ago/17:56
PengThe "experimental" warning?17:56
jelmeryep17:56
PengBut that's always been there. :P17:56
jelmerI occasionally add or remove it17:57
PengSo, should I downgrade? What to?17:57
jelmerPeng: for stability, use a release17:58
PengBah, what's the fun of that.17:59
PengCan I at least use the bzr branches of the releases? :)17:59
jelmerbzr pull --overwrite tag:bzr-svn-0.4.9 :-)18:00
jelmers/tag/-rtag18:02
Pengs/pull --overwrite/revert/18:03
Peng:)18:03
PengWay boring though.18:03
PengHmmm.18:03
=== kiko-fud is now known as kiko
PengLightweight checkout++.18:06
=== mrevell is now known as mrevell-dinner
=== hexmode` is now known as hexmode
panoslHello. Trying to push a branch to a ssh repository: `bzr push bzr+ssh://myuser@myserver:6114/path/to/repo` returns an error: bzr: ERROR: Generic bzr smart protocol error: bad protocol marker "error\x01Generic bzr smart protocol error: bad request u'bzr request 2'\n"18:30
panoslgoogling doesn't bring anything up18:31
james_wpanosl: what's the version of bzr on the remote end?18:32
ligemegetHi all, when I try 'bzr merge' in the relevant folder (to update from the main branch) I get an error which says: bzr: ERROR: Cannot lock LockDir(http://bazaar.launchpad.net/%7Eubuntu-core-doc/ubuntu-doc/ubuntu-hardy/.bzr/repository/lock): Transport operation not possible: http does not support mkdir()18:33
ligemegetWhat does that mean?18:33
panosl0.11 (ubuntu server), and my end is 1.2 (leopard)18:33
james_wligemeget: you are using a checkout of a branch over http, which you are not allowed to write to.18:34
jelmerpanosl: This is the bug that's fixed by bzr 1.3.118:34
james_wligemeget: do you know if you did a lightweight checkout?18:34
ligemegetjames_w: Yes I did18:34
ligemegetto save time - I didn't need any history18:35
james_wjelmer: is it? I thought that was over http.18:35
panoslOnly updating my end?18:35
panoslI can't update the server software18:35
james_wligemeget: ok, you probably want the switch command18:35
ligemegetjames_w: 'bzr switch'?18:35
jelmerjames_w: Oh, ok. I thought it was meant to fix errors like this as well18:35
jelmerpanosl: Looks like I'm wrong18:36
james_wligemeget: bzr switch bzr+ssh://ligemeget@bazaar.launchpad.net/~ubuntu-core-doc/ubuntu-doc/ubuntu-hardy/18:36
james_w(assuming your lp username matches your IRC nick)18:36
james_wjelmer: it looks like the remote end doesn't understand the request.18:36
james_wpanosl: I think you need to upgrade the version on the remote end, I'm not positive though.18:37
ligemegetWarning: Permanently added 'bazaar.launchpad.net,91.189.94.254' (RSA) to the list of known hosts.18:37
ligemegetPermission denied (publickey).18:37
ligemegetbzr: ERROR: Connection closed: please check connectivity and permissions (and try -Dhpss if further diagnosis is required)18:37
james_wligemeget: have you given launchpad your ssh public key?18:38
ligemegetjames_w, ehh... I'm not sure..18:38
ligemegetyes, my profile https://launchpad.net/~lhademmor lists an SSH key18:39
james_wah, did you replace your username in the command I gave you?18:39
gioelehi18:39
ligemegetyes18:39
james_wligemeget: ok, does "ssh lhademmor@bazaar.launchpad.net" work?18:40
james_whi gioele18:40
ligemegetjames_w: no. Permission denied (publickey).18:41
gioelehow short is the bzr release cycle? launchpad shows a 1.5 branch and a 1.4rc release18:41
james_wligemeget: ok, is your ssh key at ~/.ssh/id_rsa or ~/.ssh/id_dsa or something else?18:42
james_wgioele: one month18:42
james_w1.4rc isn't released yet, I think it's just someone planning ahead.18:42
ligemegetapparently none of those two. I have no idea where it is18:43
james_wligemeget: it's probably named something else in ~/.ssh18:46
james_wif you can find it I can tell you how to make ssh use it automatically.18:46
gioeleligemeget: ~/.ssh/identity?18:46
datoligemeget: what happens if you run ssh-add?18:47
ligemegetdato: nothing18:47
ligemegetThere is only ~/.ssh/known_hosts in there18:48
datoligemeget: and how did you obtain the fingerprint you placed in your launchpad page?18:49
ligemegetdato, I can't remember actually - it must be a long time ago18:50
datowell, how about generating a new key then?18:50
gioeleis there a way to rebuild the bzr documentation? the online docs are scarce and outdated18:51
ligemegetdato, fine. How do I do that?18:52
datogioele: they... are? I thought they were rebuilt nightly or something (http://doc.bazaar-vcs.org)18:52
james_wligemeget: ssh-keygen18:52
datoligemeget: /win 2418:53
datoer, no :)18:53
ligemegetjames_w: "Enter file in which to save the key (/home/mp/.ssh/id_rsa):" - what do I enter?18:53
james_wjust hit Enter, if you use the default everything will fall in to place.18:53
ligemegetpassphrase?18:54
ligemeget(should I enter one or not)18:54
james_wyes, you should really.18:54
gioeledato: I mean the API: http://starship.python.net/crew/mwh/bzrlibapi/18:55
ligemegetjames_w, okay I've generated a key. What do I do now?18:55
gioeleMy week of hacking has been a pain, so few functions are documented18:56
datogioele: ah, sorry. dunno who's responsible for that, sorry.18:57
gioeleand the few documented functions do not document the type of the input parameters and of the return values18:57
james_wgioele: I think it's mwhudson_ who created those.19:00
james_wligemeget: you need to tell launchpad about it.19:00
james_wligemeget: https://launchpad.net/~lhademmor/+editsshkeys19:01
=== mw is now known as mw|food
=== thekorn_ is now known as thekorn
ligemegetjames_w, done19:30
ligemegetStill can't merge though..19:35
james_wligemeget: you did the switch?19:39
ligemegetyep19:39
ligemegetit said something about switching to branch ssh+bzr or something19:39
james_wbzr+ssh:// hopefully.19:40
james_wcan you "bzr update"?19:40
james_wligemeget: ah, hang on, which branch are you trying to merge?19:41
james_wthis may be a bug, if the URL in the error message is the branch that you are merging from then it is a bug.19:41
james_wif not then it is the problem that I thought.19:41
ligemegetjames_w, well I was trying to update ubuntu-doc (the Ubuntu Documentation) as a whole (hardy branch I think)19:43
james_wligemeget: what was the command you ran originally?19:43
ligemegetjames_w, 'bzr merge'19:45
ligemeget(from the relevant directory of course)19:45
james_wok, can you tell me what the branches listed at the bottom of "bzr info" are?19:46
james_wor, what saved branch it told you it was using.19:46
ligemegetbzr info gives 'Location:19:48
ligemeget  light checkout root: .19:48
ligemeget   checkout of branch: bzr+ssh://lhademmor@bazaar.launchpad.net/%7Eubuntu-core-doc/ubuntu-doc/ubuntu-hardy/'19:48
ligemegetThe same as in the errormessage except that ~ has become %7E19:48
james_wok, what was the branch you were a checkout of before, do you know?19:49
james_wI fear I may have lead you up the garden path as I didn't think through what was causing the error.19:49
ligemeget...I'm not sure I understand that last question19:49
james_wwhat was the URL you used originally when you ran "bzr checkout"?19:53
ligemegetI never ran bzr checkout19:58
ligemegetor what19:58
ligemegetwait19:58
ligemegethttps://code.launchpad.net/ubuntu-doc <-- the hardy one listed on this page20:00
lamonthrm... what was the magic test to see if bzrtools is non-b0rked?20:19
=== mw|food is now known as mw
james_wlamont: you mean upgrades on hardy?20:38
lamontI mean on the dapper/edgy backports I just built20:39
* lamont found 'bzr shelve' :)20:39
james_wah, ok20:43
james_w"bzr selftest bzrtools" is pretty good too.20:44
phanaticjelmer: ping23:10
jelmerphanatic: pong23:10
phanaticjelmer: may i pm you?23:11
jelmerphanatic: sure, always :-)23:11
phanaticjelmer: did you get my lines?23:19
jelmersorry was busy with some other stuff23:39

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