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

lifelessjelmer: what deltas does svn use?00:25
lifelessideally you can provide an adaptor to allow you to use insert_record_stream00:25
jelmerit's byte-based00:26
lifelessok00:26
lifelessso add_lines does get_lines(), applies delta, does a diff(), writes the text out00:26
jelmerbasically it's a list of instructions like "insert this sequence of bytes at offset X"00:27
lifelessso we're doing twice as many get_lines() as needed00:27
jelmerah, cool00:27
lifelessthis will be nontrivial for you00:27
lifelessbut look at insert_record_stream00:27
lifelessconceptually, you would define a new record type ('svn-delta')00:27
lifelessand then look at KnitVersionedFile.insert_record_stream to teach it how to coerce that to a more useful form00:28
lifelessthe key thing is that in that function you can e.g. emit a knit record directly (because you may know what lines were altered, or something similar)00:28
jelmerhmmok00:30
lifelesssome assembly will be required, but the goal of the interface is to permit this - as the first external user, you'll have to poke things to line up more00:30
jelmerI'll file a bug about this, it's something nice to look at in the future but I'd like to get 0.5 out at all first00:30
AfClifeless: batteries not included00:31
lifelessjelmer: yes, for sure00:35
=== mw is now known as mw|out
TheMusoc01:36
=== timchen1` is now known as nasloc__
ToksyuryelIs a feature like this planned for bzr? 'cause that would be pretty awesome http://tech.slashdot.org/tech/08/12/04/1625226.shtml03:26
RollyLooks interesting03:42
mneptokKERNEL 2.6.35 = AWESOME QUALITY!!!! 10/10!!! PLZ SEED! (p.s. doesn't play on my 286. i have VLC).03:46
lifelessToksyuryel: I don't know of anyone working directly on it; doing dissemination based networking is probably better down further down the stack so that mor ethings can benefit, but - if someone gets the bug and haks it up, the more the merrier04:39
* Toksyuryel nods04:41
=== sdboyer_ is now known as sdboyer
vilahi all07:12
lifelesshi vila07:33
lifelessbeuno: yo07:42
beunolifeless, hey hey07:43
lifelessso07:43
lifelessI want to show you a little about using the profiling middleware07:43
lifelesscause it just confused me :)07:43
lifelessare you crashing yet, or got a few ?07:43
beunoI have a few. IRC or RL?07:44
lifelessIRC is fune07:44
lifeless*fine*07:44
beunook, sjoot07:44
beunoer07:44
beunoshoot07:44
lifelessto start with, get a browser with lh running against something that is indexed07:44
lifelesssvn is best, but you probably haven't pulled all the branches etc yet07:44
lifelessso bzr.dev or lh itself or something, it sfine07:45
beunoI've got LH on LH indexed and running07:45
lifelesskay07:45
lifelesstype something into the search box without hitting enter07:45
lifelessjust to get completion results showing07:45
lifelessnow, stop lh07:45
lifelessand run it with --profile07:45
lifelessthen hit the down arrow key once in the browser, which will cause a single refresh of the completion results07:46
=== duzt_ is now known as duzt|sleep
lifelessstop lh07:46
lifelessand run kcachegrind 1-stats.callgrind07:46
beunohttp://paste.ubuntu.com/80740/07:46
beunotraceback!07:46
lifelessyou have an old bzr-search, I fixed that bug07:47
* beuno pulls07:47
lifelessTMI07:47
=== thekorn_ is now known as thekorn
beunohrm07:48
beunopulling didn't do it07:48
beunoof course, it helps if I pull the right thing...07:49
lifelesswhat did you pull?07:50
beuno  File "/var/lib/python-support/python2.5/paste/httpserver.py", line 166, in wsgi_start_response07:50
beuno    assert 0, "Attempt to set headers a second time w/o an exc_info"07:50
beunoAssertionError: Attempt to set headers a second time w/o an exc_info07:50
lifelessheh07:51
lifelesswell hit down again, until it works07:51
beunoI pulled bzr-search, but not the one that I'm using for bzr07:51
lifelessthen cachegrind the one that worked07:51
beunook, nothing seems to be working07:52
beunomaybe I should stop doing it on a checkout07:52
lifelessjust do bzr unbind07:52
lifelessyou canbzr bind later07:52
beunook, now07:53
beunolet's run it through kcachegrind...07:54
beunowhich I don't have, and will take 22 minutes to get with all it's deps.......07:55
lifelessheh07:55
lifelessget it, you needs it07:55
* beuno stares at apt while it downloads07:56
lifelessgive it tha ol evil eye07:56
lifelessok, so let it install, I show you tomorrow07:56
beunokei07:57
beunoit's really insisting on taking those full 22 minutes07:57
beunoso it's downloading07:57
beunoand I haave that callgrind file07:57
beunoso we can have fun on the bus tomorrow07:58
lifeless:>07:58
lifelessI have a question07:58
lifelesswhat are 'apps'07:58
beunothat's a question for mwhudson. He chose the name, and I just made it work in my head. To me, it's the paste stuff.07:59
lifelessok07:59
lifelesscause its the branch app that appears to be chewing up time08:00
beunothat's odd, it shouldn't really do much08:00
lifelessit calls get_history unconditionally AFAICT08:01
beunowhich should have a nice cache08:01
beunoboth internal and sqlite08:02
lifelessprofile -> trasnlogger -> httpexceptions ->apps.error ->apps.filesystem ->apps.filesystem->apps.branch->search08:02
lifelesswe call last_revision twice08:03
beunoah, hm08:03
lifelessit takes 56% of the time08:03
beunothat's bad08:03
lifelessciao!08:03
lifelesssee you on ze bus08:04
beuno:)08:04
beunohave a good night08:04
=== awilkins_away is now known as awilkins
nbjaymehello all. greetings from the philippines!  did launchpad change the port number of the bzr+ssh access? i keept on having a Connection timeout error on port 22. :(10:49
Peng_nbjayme: No, it didn't.10:52
Peng_nbjayme: You might find #launchpad more helpful.10:54
nbjaymethanks Peng_.10:54
nbjaymemy clumsiness.... bzr push sftp://bazaar.launchpad.net <---- is the right url.11:58
=== asac_ is now known as asac
=== fta_ is now known as fta
=== thunderstruck is now known as gnomefreak
jamvila: ping13:26
vilajam: pong13:27
jamgood morning13:29
jamAny chance you could try to review: http://bundlebuggy.aaronbentley.com/project/bzr/request/%3C493709CC.4090307%40arbash-meinel.com%3E13:29
jamI mentioned it to Aaron yesterday, but he hasn't commented.13:29
jamIt seems it is a fairly serious regression in stacked repositories13:29
jamso I'd like to land it before 1.1013:30
jamAlso, I wanted to chat with someone whether I should be releasing 1.10-final today, or doing rc2 instead ?13:30
jam(Given that bug)13:30
vilaRe-reading (but from last read you got at least a BB:I-like-the-topo-order-so-go-go-go :)13:32
vilaYou have one import pdb; pdb.set_trace()13:33
vilajam: My feeling there (having read the thread as it came in) is that sorting by topo order is the key.13:35
vilaYou know my feelings about it and here you say it makes things simpler (good) so it should make it more robust13:36
jamvila: thanks for catching the pdb, it sure stands out in BB :)13:37
vilaNow, as you describe it, this bug is nasty and hard to reproduce which testify that you have a good grasp on it. As such, you make reviewer life hard: either I give you an approve nased on trust or I need to work as hard as you :)13:38
jamSo... with just the topo-order fix, it will still create Fulltexts at merge revisions13:38
vilaOrderingVersionedFilesDecorator is just a test helper ?13:38
jamOVFD is a test helper, yes13:38
jamI split it out into another patch13:38
jamthough perhaps that got "superseded"13:38
vilaWow, so you really pinpoint the bug in the test13:38
jamyeah, it di: http://bundlebuggy.aaronbentley.com/project/bzr/request/%3C4936F5EF.2060208%40arbash-meinel.com%3E13:39
vilaHa, I thought I read that but wasn't finding it in the submission13:39
jamvila: yeah, the bug is really a cascade of about 3 different failures13:39
jamwhich made writing a test case.... interesting13:39
jamConsidering the fix was small, it took me all day to finish the test case.13:40
jambut at least I got a full handle on the bug13:40
vilaThat itself grants aBB:approve I think13:40
jamand feel confident about the fix13:40
vilaThe code modification is light, you ran the full test suite ?13:40
jamI did not, I'm on win32 where it doesn't pass anyway13:41
jamI ran bits I thought were appropriate13:41
jam(And trust that PQM will run the whole thing for me :)13:41
vilaOk13:42
vilajam: voted13:43
vilaNow, regarding inclusion in 1.10, I'm not the RM, but given the effort that went into stacked branches related bugs, I'll vote for inclusion13:44
vilaAre *you* the RM ?13:44
jamI'm the RM for 1.10-final(ish)13:47
jamyes13:47
jampoolie is away13:47
vilaSo, I didn't follow closely the bug history, were there some feedback that triggered your patch based on 1.10rc1 or is it just a work-in-progress that happens to be finished now ?13:53
vilaI don't have a strong preference for rc2 or final anyway as long a 1.11 serie is opened anyway  :-)13:54
jamvila: bug #304841 is on 1.10rc1 + martin's patch13:59
ubottuLaunchpad bug 304841 in bzr "bzr push raises RevisionNotPresent" [Critical,Fix committed] https://launchpad.net/bugs/30484113:59
jamhis patch was for bug #30385613:59
ubottuLaunchpad bug 303856 in bzr "caching writes to pack repository causes ShortReadvError on pushing stacked branch" [High,Fix committed] https://launchpad.net/bugs/30385613:59
vilaI mixed up the two, thanks14:01
vila303856 was targeted to 1.10final, that's a good hint to go with final14:01
vilaI mean, you already put more polish on it (and addressed a critical bug), release !14:03
=== thunderstruck is now known as gnomefreak
balorI accidently added a directory to my bzr repo.  I've not checked in the change.  Is there any way to undo adding the directory (and it's contents) before I check in?14:33
balorbzr remove14:35
balorjust works14:35
jambalor: "bzr rm --keep"14:35
balorjam: I did bzr rm --force14:35
balorjam: then recreated the dir.14:35
balorjam: thanks though.14:35
jamnp14:35
jamkeep would have meant not needing to recreate it14:36
LeoNerdI've just installed bzr-svn and I'm trying to  bzr push svn+ssh://server/path  from my existing bzr native branch. I get an instant assert error, which doesnt' seem to give much detail. Anything I can try to debug this?14:51
LeoNerdThe particular line that fails is   File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/remote.py", line 52, in __init__14:54
LeoNerd    assert svn_url.startswith(self.svn_root_url)14:54
lifelessbalor: or bzr revert <dir> would have kept it too15:02
LeoNerdOoh... OK.. bug perhaps?15:03
LeoNerdsvn+ssh://server//root/path/here   dies,   svn+ssh://server/root/path/here   works fine15:03
jelmerLeoNerd, any chance you can file a bug?15:04
LeoNerddebian reportbug be OK?15:05
jelmeryeah, sure15:05
LeoNerddone15:07
lifelesshi jelmer15:08
=== duzt|sleep is now known as duzt
jelmer'morning lifeless15:09
lifelessjelmer: did you see the bzr-svn branch I tossed up?15:15
jelmerlifeless, yeah, thanks for that15:15
jelmerlifeless, I'm about to rebase it on 0.515:16
lifelessjelmer: ok15:16
jelmerlifeless, merged into 0.515:18
lifelessjelmer: thanks. bzr-search needs get_transaction on repository (not direcyly, but  for Repository.iter_file_bytes15:19
jelmerfwiw, bzr-svn doesn't do Repository.iter_file_bytes()15:20
lifeless  File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/repository.py", line 1399, in iter_files_bytes15:20
lifeless    transaction = self.get_transaction()15:20
lifelessit inherits it15:20
lifeless  File "/home/robertc/.bazaar/plugins/svn/repository.py", line 175, in get_transaction15:20
lifeless    raise NotImplementedError(self.get_transaction)15:20
LeoNerdMm.. So this "determining changes" it's running on a new repo.. What's that for, and how long is it going to take?15:21
LeoNerdIt's been chewing away for about 10 minutes now..15:21
lifelessjelmer: nvm, it canbe fixed in bzrlib.15:22
lifelessjelmer: this is a bit odd15:22
lifeless$ bzr search radix15:23
lifelessstacking support in bzr-svn is experimental.15:23
lifelessnevowlore.py in ...15:23
lifelessLeoNerd: it is calculating the shape of the repository in bzr terms15:33
lifelessLeoNerd: branches, per file graph and the like15:33
LeoNerdRight. It suddenly finished without warning :) I think the progress meter is broken15:34
lifelessLeoNerd: following that it will be able to start pulling15:34
LeoNerdIt was claiming 0/204005 for aaages15:34
LeoNerdHrm.. it doesn't preserve timestamps. No big issue, but it just upsets the stats a bit :P15:37
lifelesshow do you mean?15:39
LeoNerdI've pushed a bzr branch into the svn repo, and according to our "trac" view of svn, it was all modified a few minutes ago, rather than last week15:41
jelmerLeoNerd, see the FAQ15:41
jelmeryou can make bzr-svn modify the svn:date property, but it requires changing the settings in your svn repository15:42
LeoNerdAhhright15:42
lifeless jelmer so - whats that stacknig warning about, that svn branch isn't stacked15:43
jelmerlifeless, it happens whenever versionedfiles are involved15:43
lifeless:( I know this is a repeating theme, but how can I turn that warning off?15:44
jelmerthere's no way to disable it at the moment15:46
jelmerI'd rather not allow turning that off, at least not in any released versions of bzr-svn, as the versionedfiles stuff is pretty much untested15:46
jelmerand it allows people to do b0rked imports15:46
jamlifeless: BB:approve on the iter_file_bytes fix, though if you could wait to submit it until after I've gotten 1.10 out the door, I would appreciate it15:46
lifelessjam: that was fast :P15:47
lifelessjam: tell me when to land it15:47
lifelessjelmer: how do you mean [borked imports]15:47
jamlifeless: I saw it on the bazaar-commits list while going through some other stuff :)15:47
jamI'll let you know when PQM is free15:48
jelmerlifeless, if you use "bzr branch --stacked" it uses versionedfiles and that can broken15:48
jelmerif there's some easy way to only warn when doing a stacking clone, I'm happy15:48
jamlifeless: for your InterDifferingSerializer change (where you buffer 100 revs at-a-time, and use apply_inventory_delta). What tests should I be looking at bringing across?15:48
jamI found a couple small issues for it15:48
jamand would like to get it merged into bzr.dev15:49
jamso we can have the improved version in-play and under-regular-testing15:49
lifelessjam: I had hit commit 2 seconds earlier :)15:49
lifelessjelmer: what goes wrong with the imports if they do this?15:50
lifelessjam: well first, add_inventory_delta, which poolie had some review feedback on15:50
jamlifeless: I don't see your "apply_inventory_delta" fix in BB15:51
jamah, this one? http://bundlebuggy.aaronbentley.com/project/bzr/request/%3Ce01316480811102304s60b1df9cnf62aec9748a61346%40mail.gmail.com%3E15:51
jelmerlifeless, inconsistent text parents, text contents15:51
lifelessjelmer: !15:51
lifelessjam: no15:51
jelmerlifeless: this is why there is a warning :-)15:52
jamyeah, looking closer I realized that15:52
jamstill looking15:52
lifelessjelmer: your warning is not accurate :P its not experimental its known broke15:52
jelmerlifeless, I'm not aware of any cases where that has happened, but the code is not very well tested15:52
jelmerand that's the sort of thing that *would* happen15:52
lifelessjelmer: oh15:53
lifelessjam: http://bundlebuggy.aaronbentley.com/project/bzr/request/%3C1223873271.9015.266.camel%40lifeless-64%3E15:53
jamlifeless: what do you think about calling it "add_inventory_by_delta" ?15:54
jamAnd was Martin's main complaint that it was against an arbitrary rev? Rather than only the basis?15:55
jamI guess you already agreed to _by_delta15:56
lifelessI'm fine with add_inventory_by_delta, it is more clear15:57
jamI guess I'm a bit confused by his comment: "I still think it's dangerous to have something that looks like a delta  but is not,"15:57
lifelessthats the basis_delta list15:57
jamIf you haven't said "recording_deletes = True" it is not an accurate delta?15:58
lifelesssee the list for a convesation - bb deleted his initial comments when he commented again15:58
lifelessjam: yes15:58
lifelessjam: so I proposed to him that we make basis_delta be get_basis_delta()15:58
jamand we need to not have a delete for the current functionality?15:58
lifelessand if you haven't called recording_deletes, then get_basis_delta() errors15:58
jamthat sounds ok, but I don't quite have a grasp on when/why you need to *not* record the deletes in the basis_delta15:59
jamIt seems like you would need it to update the WT as well15:59
lifelessthe existing commit driver generates it's own basis delta object16:00
lifelessthat is16:00
lifelessin bzr.dev, and anything like plugins that is using CommitBuilder directly, code makes its own delta by using the return value from record_entry and adding deletes by hand16:00
lifelesswith the patch, commit.py is fixed, but other clients wouldn't be - they would end up with a CommitBuilder object with what 'looks' like a good delta, but still wouldn't have deletes in it16:01
Takare there existing bzr icons somewhere for things like branch, pull, merge, ...?16:01
lifelessTak: bzr-gtk might have some16:01
lifelessjam: breakfast time16:01
jamlifeless: eat hardy. I think I have a feeling now16:02
jamso basically, you want get_basis_delta() to fail if you aren't aware of the new API16:02
Takit appears to be using stock gnome icons atm16:02
lifelessjam: yah; simply if !self._recording_deletes: raise AssertionError("you can't use this until you've updated your apip usage per ...")16:02
jamlifeless: So... to set this variable True... we could do a Constructor variable, or bikeshed a bit on the proposed name (will_record_deletes()?). I prefer the constructor approach, except you have to pass it through Repository.get_commit_builder() which is a bit ugly16:11
jamI suppose we have a slightly smaller api compatibility issue if we just have a function on CommitBuilder16:11
jamas SVNCB can just inherit that function16:12
jam(though if it doesn't respect it... we have a problem anyway, so probably better to have it fail)16:12
jamwho are all these people that have bzr-dbus installed?16:13
jamIs it a Recommends somewhere?16:13
lifelessjam: for compatibility I avoided constructor16:36
jamyeah, I went that route too16:36
lifelessjam: a client that does not use the function will work fine16:36
lifelessjam: because they won't try to get the delta, and the finish_inventory method knows to only use the delta if it is going to be valid16:36
lifelessjam: probably16:37
lifeless(re bzr-dbus)16:37
jam?16:40
lifeless03:11 < jam> who are all these people that have bzr-dbus installed?16:40
lifeless03:11 < jam> Is it a Recommends somewhere?16:40
jamAh probably a Recommends16:41
jamsure16:41
jamI thought that was the last line of the previous statement. :)16:41
jamlifeless: for the default implementation of "add_inventory_by_delta". Should we be adding "create_by_apply_delta" to Inventory and using it instead?16:43
jamIt means requiring an Inventory.copy() which is a bit slow16:43
jambut is necessary for CHK inventories.16:43
jamWe happen to know the lifetime of the inventory in add_inventory_by_delta is safe16:43
jambut apply_delta is not always a safe function otherwise.16:43
lifelessjam: I don't think so16:50
jelmerjam, bzr-gtk recommends bzr-dbus16:51
lifelessjam: create_by_apply_delta doesn't make sense to me on th ein memory invetory, not in the same way16:57
lifelessjam: the key ting here is that *repository* is the interface for adding inventories to16:57
lifelessjam: heading over to MV now, lets chat in about 2 hours ater the opening17:04
jamnp17:05
jamenjoy the show :)17:05
jamlifeless: you can go ahead and submit your iter_files_bytes fix.17:28
jkakarI've just added 11MB of crap to a branch and committed it... and then realized that will bloat subsequent branches after merging this one to trunk.17:37
jamjkakar: bzr uncommit17:37
jkakarjam: That won't work, as I did the commit several revisions ago.17:37
jamjkakar: it would still work, you just have to do more to get things back17:37
jkakarjam: I've realized I can trim down that 11MB to 300k and now want to remove the history of that 11MB entirely...17:37
jamhowever, you can install the bzr-rebase plugin17:37
jamand have it help you recreate the extra revs17:38
jkakarbzr-rebase has never worked for me.  I probably don't understand how to use it.17:38
jamjkakar: I *think* you want bzr uncommit -rBEFORE_I_WAS_FOOLISH17:38
jambzr revert17:38
jambzr replay -r AFTER_I_WAS_FOOLISH..-117:39
jamwell, you probably need to keep 1 branch around to replay from17:39
jkakarWoah.  I'll try that, thanks.17:39
jammake sure to check "bzr help replay" just in case I have some syntax wrong17:39
jkakarjam: It worked!   Thanks a lot. :)17:58
jamnp17:58
=== jam changed the topic of #bzr to: Bazaar version control system | http://bazaar-vcs.org | 1.10 is released! (5 Dec) | http://irclogs.ubuntu.com/ | http://planet.bazaar-vcs.org/
lzhangis there an easy way to see files that have been bzr rm'd in the file?18:45
lzhangin the current directory*18:46
lzhangbzr rm'd and committed in the past18:46
etankI have bzr installed on an ubuntu box and the windows bzr installer on a XP box. how can i do a checkout/branch/clone of my repo to on the Windows box?18:53
etankthe initial bzr init, etc was done on the ubuntu box18:54
jamjelmer: ping, you just announced bzr-svn 0.4.16, but it doesn't seem to be tagged in http://bzr.debian.org/pkg-bazaar/bzr-svn/experimental/18:55
jelmerbleh, I suck at this18:55
jelmerjam, Sorry, that's at least the third time you have to remind me :-(18:55
etanki get the following when i try to do a branch18:56
etankC:\Documents and Settings\user\Desktop>bzr branch ssh://user@ipaddr:~/Code myCode18:56
etankbzr: ERROR: Unsupported protocol for url "ssh://user@157.184.82.74:~/Code"18:56
jelmeretank, you probably want sftp:// or bzr+ssh://18:56
jelmerjam, should be tagged now18:57
jamjelmer: so you are now tagging it as "debian-0.4.16" right?18:58
jamrather than bzr-svn-0.4.1618:58
jambtw, 0.4.15 also is not tagged18:58
etankjelmer: with either of those i get this now "bzr: ERROR: Invalid url supplied to transport: "invalid port number ~ in url:"18:58
jelmeretank, please use a / rather than a :18:59
jametank: the URL you want is probably: sftp://user@host/~/Code18:59
jamif you want to use bzr+ssh then it would be18:59
etankok18:59
jambzr+ssh://user@host/home/user/Code18:59
jelmerjam, yeah, debian-0.4.16-118:59
jambzr+ssh doesn't support ~ yet18:59
=== evarlast is now known as jmcw
jamjelmer: that really messes up the bzr-builddeb I have18:59
jamas in... it always wants bzr-svn-0.4.1618:59
jelmerjam, I'm still tagging the upstream release as bzr-svn-0.4.1619:00
jamAh, I guess I just need to edit .bzr-builddeb/defaults.conf19:00
jelmerjam, just the debian packaging as debian-0.4.16-119:00
jelmerjam, so you want to merge in debian-0.4.16-1 but have it build against bzr-svn-0.4.1619:00
jamk, I should mention the bzr-svn-0.4.16 isn't there *either*19:01
jamand neither is 0.4.1519:01
jamnor debian-0.4.1519:01
jelmerah, that's actually a bzr-builddeb bug that I think has been fixed19:01
* etank is wondering if using the python sources would be better19:01
jamanyway, if I go back and "bzr merge lp:bzr-svn && bzr revert && bzr merge lp:bzr-svn/0.4" I seem to have all the tags19:02
jelmerjam, now pushed with the original upstream tags19:02
etankbzr: ERROR: Connection closed: please check connectivity and permissions (and try -Dhpss if further diagnosis is require19:02
jamI'm not sure why they aren't in your packaging branches19:02
etankd)19:02
etankHPSS calls: 1 <bzrlib.smart.medium.SmartSSHClientMedium object at 0x01714810>19:02
jelmerjam, bzr-builddeb's "bzr merge-upstream" command used to not pull in tags19:02
etankthats what i got with  bzr+ssh19:02
jelmerI think James fixed that recently19:02
jametank: if you are getting that, it means the ssh connection closed19:03
jamWhat version of the bzr client are you using ?19:03
etankim not sure why though19:03
etankone sec19:03
jam"bzr --version" should tell you19:03
etankbzr-setup-1.9.exe19:03
etankBazaar (bzr) 1.919:03
jamk, that one should be fine19:03
etanki can ssh to the box with no problems using putty19:04
jametank: are you using custom keys or anything like that?19:04
jamor just username & password?19:04
etanknope. password loging19:04
etanklogin i mean19:04
jamand when you do "bzr branch bzr+ssh://..." it doesn't prompt you for a password?19:05
etankjam: nope19:05
etankC:\Documents and Settings\elake\Desktop>bzr branch bzr+ssh://elake@157.184.82.74/Code myCode19:06
etankbzr: ERROR: Connection closed: please check connectivity and permissions (and try -Dhpss if further diagnosis is require19:06
etankd)19:06
etankthat is the exact ouput19:06
etanki wonder if it is something in the sshd_config that needs to be changed19:06
=== jmcw is now known as evarlast
jametank: ah, I have an idea19:08
jamtry doing19:08
jamset BZR_SSH=paramiko19:09
jamon the command line19:09
jamand then running bzr branch19:09
jamand if that fails19:09
jamtry19:09
jamset BZR_SSH=plink19:09
jamplink should fail because it doesn't support passwords as a sub-process19:09
jambut it may fail in a *different* way19:09
jametank: did you rename "plink" to "ssh" btw?19:10
jamas that would probably confuse us19:10
etanknope19:10
etankneither of those worked19:10
etankpscp elake@elake-ibex:/home/elake/Code/mailer.py ./  <-- that command would work though19:10
jametank: you might try looking at "My Documents\.bzr.log" to see if there is any more info there19:11
etankSocketConnectionError: Unable to connect to SSH host 157.184.82.74; EOF during negotiation19:11
jamjelmer: Why would "dch" keep trying to add a new record with your name instead of mine?19:11
jelmerI'm listed as maintainer19:12
jelmerdebia/control19:12
jamjelmer: yeah, I was accidentally using "-m" thinking I needed it as the update message19:13
jamrather than realizing it set the "use the ID of a maintainer" flag19:13
jelmerI've done that a couple of times as well19:14
jelmerbzr commit ruined dch for me19:14
jametank: does it say anything about failing to import paramiko, etc?19:14
etankjam: no but here is the output of the last two tests http://dpaste.com/96468/19:18
etankmaybe the .ssh/know_hosts part is the issue19:18
jametank: can you try using "sftp://" just to see if that gives different results?19:19
jam(I don't expect it to, but we can try it)19:19
etankjam: same thing19:20
* etank wonders where putty puts is known_host info19:20
jametank: with bzr-1.9 we shouldn't actually be using putty19:21
jamwe should be using paramiko to connect19:21
jamas plink doesn't allow us to ask the user for a username and/or password19:21
jam(so it works only if you are using ssh keys)19:21
etanki was going to look at puttys file and place it where bzr wants to find it19:21
jamI don't *think* it is a known_hosts issue19:22
jamsomething weird is going on, though if both "BZR_SSH=paramiko" and "plink" are failing19:23
etankbzr: ERROR: Unable to connect to SSH host elake-ibex; (10061, 'Connection refused')19:23
jamwhat shell are you using?19:23
etankwindows command shell19:23
jamand you don't have something like a non-standard ssh port, right?19:23
etankcmd.exe19:23
etanknope19:23
etank22. default install on the ubuntu side19:23
etankback in a few19:27
jametank: ... for the .bzr.log you gave, I can imagine that if BZR_SSH is plink it will fail because we cannot ask for a password19:32
jamfor the "set BZR_SSH=paramiko" I don't see why it would be failing19:32
jamfor the other one, it is definitely *using* paramiko19:33
jamas the exception traceback is coming from that code19:33
lifelessjam: so19:42
lifelessjam: I don't mind if you want to write a create_by_apply_delta for Inventory, but I don't think its going to be any faster or anything; and its another method to support19:42
lifelesscreate_by_apply_delta on CHKInventory was/is semi private19:43
jamI agree that it isn't going to be faster19:44
jamit is more about consistent apis between different Inventory implementations19:44
jamconsidering that "apply_delta" is public19:45
jamand certainly a more dangerous function than "create_by_apply_delta"19:45
lifelessapply_delta isn't on CHKInventory at all19:46
LarstiQjelmer: how about a bzr-dch plugin? ;)20:04
jamlifeless: I seem to be getting build failures for bzr-svn because it can't find the bzr packages20:05
jamand the bzr-svn ones require >1.1020:05
jamdo you know if this is just transient?20:05
jam(I also happened to upload bzr-svn *before* I uploaded bzr, as I was trying to make sure I got all the packages built before I updated the ppa)20:05
jam(but I already did one "retry" and it still is unhappy)20:06
lifelessjam <-> jelmer20:10
lifelessjam: You'll need to up load bzr, upload bzrtools, upload bzr-svn, then update the ppa20:10
lifelessthis requires a separate ppa and package copying20:10
jelmerjam, you may get away with a build-dependency on 1.920:11
jamSo the specific error seems to be this line:20:12
jamAfter installing, the following source dependencies are still unsatisfied: bzr(inst 1.9-1~bazaar1~hardy1 ! >= wanted 1.10~)20:12
jamAnd I'm concerned about whether the 1.10-1~bazaar1~hardy120:12
jamis evaluating versus 1.10~ correctly20:12
jamwell, *will* evaluate20:13
jamobviously it is only finding the old 1.9-1 so far20:13
jamhmm.. bzrtools built fine20:19
jamah, but Jelmer didn't update the control file for bzrtools20:19
jamit still says 1.9~20:19
jelmerjam, I didn't update the build dependency20:21
LarstiQ1.9~ for what, the version of bzrtools, or the dependency on bzr?20:21
jelmerjam, that's still at >=1.9~, but shouldn't matter20:21
jelmerjam, the runtime dependency I did update20:21
jamLarstiQ: the bzrtools 1.10 package only depends on bzr 1.920:22
jamfor some reason, the bzr-svn ppa is failing to build the 0.4.16 package because it depends on bzr >= 1.10~20:22
jamI don't know if it was because my upload ordering was reverseed20:22
jamor if it is just having a problem finding the packages now that they are present in the ppa20:22
jamI would guess that my upload order confused the initial attempt20:23
jelmerjam, what makes you say bzrtools depends on bzr 1.9..?20:23
rockyjelmer: hey, is there a bzr-svn release for bzr 1.10 yet?20:23
jambut I would have thought it fixed when I did "retry"20:23
jamrocky: bzr-svn 0.4.1620:23
jamjelmer: Build-Depends-Indep: bzr (>= 1.9~), rsync20:23
jamthough I also see:20:23
rockyawesome, thanks20:23
jamAfter installing, the following source dependencies are still unsatisfied: bzr(inst 1.9-1~bazaar1~hardy1 ! >= wanted 1.10~)20:24
jamsorry20:24
jelmerjam, That's just saying building the package should work with 1.9 and 1.1020:24
jamDepends: ${python:Depends}, bzr (>= 1.10~), bzr (<< 1.11~), patch20:24
jelmerjam, seems fine to me20:25
jamWell, bzr-svn does have "bzr >= 1.10~" in its "Build-Depends"20:25
jamwhich bzrtools doesn't have20:25
LarstiQI don't think bzrtools needs it?20:26
jamto build? probably not20:26
jamI would have assumed bzr-svn wouldn't need it to *build* either20:27
jamThe discussion may not matter in a bit20:27
jamas it seems the ppa *might* be figuring out that it really does have access to bzr >= 1.10 now20:27
jamat least, the link to the "lpia" build went away20:27
jamwhich I'm hoping means it successfully built20:28
jamIn the future, I just need to make sure to upload bzr before any plugins20:28
jamIt certainly has to be able to grab packages from the ppa itself, otherwise it wouldn't have been able to install bzr-1.9 either20:29
jamsince that only exists in a ppa, IIRC20:29
jamI didn't think 1.9 has made it into any release20:29
BratscherBenis there a possibility to use Hooks as in subversion? As far as I see, hooks in bzr are registered in ~/.bazaar/plugins which affects all usage of bzr. In my concrete example I want to run a bzr export in a remote repository after push, but not in all my repositorys.20:41
etankjam: yeah i did the set for paramiko and it is still a no go20:42
LarstiQBratscherBen: hooks can check which branch they're operating on, and have programmatice access to it's branch.conf20:42
LarstiQ(and to ~/.bazaar/ config as well if needed)20:43
BratscherBenyes, but I want that this command is run not only when I check something in, but also when others do20:43
BratscherBenso is the post_push hook called on the remote server, when somebody pushes or only on the machine that pushes?20:45
BratscherBenthe docu says “runs on client”20:46
jamBratscherBen: there is a hook that is run on the server side (post-branch-tip-changed, IIRC)20:47
BratscherBenyes, just found it20:47
jamApparently it may be getting a semi-bogus URL at the moment (because when run on the server things are run in a chroot)20:47
etankim not getting the bzr on windows thing :/20:48
BratscherBenso I assume I have to install a plugin in /usr/share/pyshared/bzrlib/plugins for which I also need root access and have to check there, from which repository I am called20:49
lifelessBratscherBen: you should set the hook on the server, it will run for all branches on the server; you can then filter that down by checking its a branch you want to take the action on20:49
jametank: unfortunately, it "just works" here... which makes it all the more difficult20:49
jamalso, when we use an all-in-one installer we lose some of the ability to debug20:49
jamif it was installed into a regular python install20:50
BratscherBensounds like a solution, but not a nice one20:50
etanki can do a regular python install20:50
jamthen you can drop down into a python shell, and try various things20:50
etankjam: will it work with py2.6?20:50
etankthe site said 2.4 and 2.5 so that is why i went with the all in one installer20:50
jamvila has been working on 2.6 compatibility. I believe it currently works20:50
jamThey did some odd backwards-incompatible changes in 2.620:51
LarstiQbut there might not be a 2.6 installer20:51
BratscherBenthe solution in other vcs are nicer, why bzr has not such an option to just run a shellscript in .bzr/hooks/post-tip-change ...20:51
jamLarstiQ: I would guarantee there isn't :)20:51
jamBratscherBen: in a distributed setup, you don't always have control over ".bzr/hooks/*" and that tends to lead to running $RANDOM other person's code20:52
jamwhich is a good way to have a security problem20:52
jamThat said, there is a "shell-scripts" plugin that adds support for shell hooks20:52
BratscherBenthe person who owns the repository has control over this20:52
jamI don't remember the exact name20:52
lifelessBratscherBen: there is a plugin that can do what you want; but you can as a user in your own account setup plugins too22:09
=== duzt|sleep is now known as duzt
BratscherBenI managed it now with this shell-scripts plugin. Problem here is a bit, that the post_change_branch_tip_hook is executed while a still is in progress and so the lock is not free. I made a workaround like {sleep 3; bzr export foo.zip} around to avoid this, but it of course is not really nice22:23
BratscherBenbut it works, thanks for the answers…22:24
luigihi22:43
luigiis python 2.6 supported?22:43
LarstiQluigi: it should be22:47
luigiok22:47
NfNitLoop3.0?  ;p22:49
luigiyeah22:49
NfNitLoop... really?22:50
luigidont know22:50
LarstiQNfNitLoop: no22:50
NfNitLoopI didn't figure so. :)23:07

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