/srv/irclogs.ubuntu.com/2008/09/14/#bzr.txt

libwilliamIs there a command that will show when a branch was first initialized?02:19
jmllifeless: also, I looked at testresources sorting last night... dijkstra's isn't at all what we want, I think.02:19
jmllibwilliam: interesting question02:20
lifelessjml: simulated annealing perhaps?02:20
jmllifeless: well, I think we really want TSP02:20
* jml looks up that other thing 02:21
lifelessTSP, expand pls02:21
jmllifeless: Travelling Salesman Problem.02:21
lifelessoh right02:21
jmlof course, we don't have to solve it for the tests, just the set of resource combinations.02:21
lifelesssimulated annealing is one of a class of polynomial approximations for NPC02:22
jmllibwilliam: 'bzr log -r 1' is close, but it's not the same thing.02:22
lifelesswe don't attach a datestamp to 'init'02:23
jmllifeless: well, I think there's a lot of room for flexibility in the algorithm02:24
jmllifeless: since the numbers are small and the same solution will often apply across multiple test runs.02:24
lifelesssure02:24
libwilliamjml: it is the closest possible thing I think. The only reason I was wanting the branch init date was when using a calendar I want the user to be able to select the range of when to show the status... and since status allows a revision range of revision=.. I don't know where to limit the user if they didnt commit revno 1 until the a different day.02:25
libwilliamI'll figure out a workaround.02:26
jmllifeless: but a probabilistic solution to the TSP is probably a good default.02:26
jmlspiv suggested a modified Dijkstra's where the end node only 'appears' on the graph when all the others have been traversed02:27
jmlbut neither of us have bother to look at the algorithmic complexity of that.02:28
lifelessjml: uhm03:18
lifelessjust have a start node with no resources, and an end node with cost infinity03:19
jmllifeless: I don't think that would work.03:19
jmlbecause the path would still be (start_node, end_node)03:20
lifelessright, but the cost of that transition is oo03:20
jmlunless they weren't connected, in which case, (start_node, cheapest_test, end_node)03:20
jmllifeless: yeah, but the cost of any other path from start to end will also be ∞03:22
lifelessright03:22
jmllifeless: ok in that case I don't know what your point is.03:22
lifelesssurely that gives us what we want03:24
jmlWell, experiment is the ultimate arbiter here, but I don't think so.03:26
jmlDijkstra's gives us the cheapest path from A to B, without necessarily traversing any nodes in between.03:26
lifelessthats right03:26
lifelessif A is no resources03:26
lifelessand B is infinitely many resources (a sentinel)03:26
lifelessthen any resource-set might have a cheaper path from current pos to B03:27
lifelessso all resource sets get inspected03:27
lifelessthe by product of the search was what was interested when I looked at this last03:28
lifelessanyhow, I'm interested in overall improvements, not the exact algorithm used03:28
* jml too03:28
jmlbut I also want to re-enable the disabled test.03:29
lifelessok03:30
jmllifeless: do you have a pre-written 'bigger than everything' object lying around?03:30
lifelessso my concept was03:30
lifeless[no]03:30
jml[[maybe it was one of the twisted guys]]03:30
lifelessoh yes I do03:31
lifelessits in bzrlib03:31
jmllifeless: :)03:31
jmlyay memory03:31
lifelessso my idea was that even though djikstra snaps to the shortest path after inspecting everythin03:33
lifelessh03:33
lifelessg03:33
lifelessyou know it has inspected it, and there is a by product in the implementation, I don't recall quite what it was03:34
lifelessalternatively03:34
lifelessif the cost to the final sentinel is not constant, but less by the current cost of the path, it won't snap and you'd get a full traversal, which was cheapest at each individual step03:35
lifelesswhich suffers local-minima problem, but thats frankly not a huge deal in this case, I think03:35
* jml neither03:35
jmleither way, the trick is to force it to actually do a full traversal.03:37
jmlalso, you want to take the final teardown costs into account.03:37
=== komputes|eee is now known as komputes
=== mzungu_ is now known as mzungu
paolettopnHi guys....10:39
paolettopnthere is anyone that can help me?10:39
mwhudsondoh10:43
=== bac` is now known as bac
lifelessmwhudson: "no"10:52
=== gnomefreak is now known as thunderstruck
=== thunderstruck is now known as gnomefreak
fmis there a way to checkout a bzr repo from launchpad without having bzr. My bzr does not work as I am using python 2.6, but how do i get https://code.launchpad.net/~vila/bzr/py26bzr ??11:35
vilafm: https://code.launchpad.net/~vila/bzr/py26bzr is useless for now with python-2.6, you need to find a python-2.511:36
kiorkyjelmer: ping11:37
fmi am afraid suse will not downgrade python for bzr. most other packages are working beta1 is due next week vila...11:37
kiorkyjelmer: seems that i cant branch over a svnrepo which is on the same filesystem11:37
vilafm: I'm afraid bzr will not support python-2.6 next week :)11:38
kiorkyjelmer: http://rafb.net/p/El3FTn47.html11:38
vilaIt's quite custom for distributions to support multiple versions of python though, I'd very surprised that bzr is the only package not yet ready for python-2.611:39
fmas 11.1 will be the base for the enterprise products, this will probably mean no bzr on them too.11:39
fmyou may look at https://bugzilla.novell.com/show_bug.cgi?id=42564411:40
ubottubugzilla.novell.com bug 425644 in Development "bzr init fails: failed to load bzrlib.repofmt.pack_repo.RepositoryFormatKnitPack1: cannot import name U32" [Normal,New]11:40
fmi will ask11:40
vilaI've seen that report before updating bug #26953511:41
ubottuLaunchpad bug 269535 in bzr "bzr does not work with python2.6" [Medium,In progress] https://launchpad.net/bugs/26953511:41
fmok ;)11:42
vilaNext step will be to analyze how many root causes for the failures=33, errors=35, some may be less important than others11:42
vilabut the __init__ behavior change is not trivial11:43
Odd_BlokeOn a slightly related note, does PQM check if we've had any regressions on 2.4 _and_ 2.5, or does it just use one or the other?11:44
fmsadly I do not now python vila. I just wanted to try bzr for an assignment I am currenty working on. as it sounded really cool ... But certainly I am willing to test everything ;)11:46
spivOdd_Bloke: IIRC, it just checks with 2.4 atm.11:47
vilaI don't use opensuse myself so I can't say how to install a python-2.5, but I'd be very surprised if no way exists to do that11:47
vilaspiv: are you really there or just passing around ?11:48
spivvila: I'm sort here.11:48
spivs/sort/sort of/11:48
vilaanyway, I'd really appreciate your advice about bug #269535 regarding __init__ behavior11:49
ubottuLaunchpad bug 269535 in bzr "bzr does not work with python2.6" [Medium,In progress] https://launchpad.net/bugs/26953511:49
vilaI'm not 100% sure of my diagnosis, but the code path failing is related to RemoteTranport inheriting from Transport and SmartMedium11:49
vilas/Transport/ConnectedTransport/11:50
mwhudsonoh what11:51
fmvila: what is the timeframe to expect python 2.6 support, certainly the next ubuntu version will ship it ... or not?11:51
spivvila: FWIW, I don't see any mention of the __init__ change in http://docs.python.org/dev/whatsnew/2.6.html11:52
vilaspiv: I can't find back the reference but roughly __init__ now complains when receiving arguments11:53
spivvila: in general, using super() when you don't know that all the bases will have a compatible signature is a bad idea I think11:54
vilaspiv: I think so too, try bzr gannotate bzrlib/transport/__init__.py on Transport.__init__ :D11:54
vilaobject.__init__ doesn't seem to line base=base starting with python-2.6, that's the problem11:55
vilabzr: ERROR: exceptions.TypeError: object.__init__() takes no parameters11:56
fmvila: spiv http://bugs.python.org/file2323/new_init_strict.patch thats the patch i guess11:58
vilafm: Thanks, that's the reference I was searching ! I read that yesterday but I can't find anymore how I went there....11:59
spivfm: yeah, I thought it probably was intentional.11:59
=== Spaz is now known as Kittens
lifelessyay12:04
spivIt's not clear from the discussion at http://bugs.python.org/issue1683368 if they thought it would cause people's code to break.12:05
lifelessclearly, super() is broken by design and this just proves it :)12:05
jmlspiv: without looking at the bug, I'm pretty sure that it wasn't a priority for them.12:08
mwhudsonspiv: given that it broke the standard library in three places...12:10
vilaIt seems to me that the intent was to apply the patch to 3k but it leaked into 2.6...12:12
* LarstiQ reads it that way as well12:12
vilahi LarstiQ ! Thanks for the support :D12:12
LarstiQvila: np :)12:12
vilaAnyway, we'd better fix bzr12:13
spivvila: probably the best fix is to remove the multiple inheritance from RemoteTransport entirely... I'm not sure that it really needs to inherit from SmartClientMedium.12:22
vilaspiv: That was my intuition and the reason I wanted to ask you :)12:24
kiorkyuhm12:25
kiorkywith bundlebuggy12:25
kiorkyis there a page with all patches for all projects ?12:25
spivvila: the smart client medium is really the underlying connection, so it really ought to be using the ConnectedTransport stuff for managing that, rather than mucking about with multiple inheritance I think.12:27
vilaso ConnectedTransport as a SmartMedium attribute ?12:28
spivHuh?12:29
spivI mean, ConnectedTransport already has code to manage _shared_connection and the like.12:29
spivFor RemoteTransport, that _shared_connection should be the smart medium.12:29
spivFor HttpTransportBase, a smart client medium may as well be constructed on the fly as they are needed.12:30
vilaSome typos are worse than othres s/as/has/ :)12:31
spivAh, ok.12:32
jmlvila: typo? I bet you wouldn't even pronounce the 'h' :P12:32
vilaDamn, uncovered, now everybody knows I use speech recognition while chatting12:33
jml:)12:33
* jml is very tired.12:33
johanis it possible to edit commit messages?13:26
johanafter the commit is done of course13:27
lifelessno13:27
lifelessyou can create a new commit object with a different message13:28
johantoo bad, I remember that svn allowed me to do that13:28
spivIf it's just the most recent commit, then "bzr uncommit && bzr commit" works well.13:30
johanright, but it isn't the last13:31
* spiv nods13:31
=== BasicPRO is now known as BasicOSX
justizinagh i know i have asked about this before, but forget the name of the feature, i keep hearing there is a comparative feature to svn:externals in dev, or maybe in 1.6, but can't find it in docs or anything.  any word?18:36
justizini don't care about compat with svn:externals in bzr-svn, am moving our deployment from svn to bzr and, though i was able to pull the externals with a bash one-liner, it was not as much fun to write as drinking beer :)18:37
vilabzr/python-2.6 down to 10 failures, 1 error :D19:20
vilaSee you tomorrow all.19:20
fmvila: thanks for working on it!19:44
gutworthdoes bazar support a bisect-like command?20:05
Odd_Blokegutworth: There is a bisect plugin.20:11
gutworthI should have known :020:11
unangzhallo masters20:48
unangzhow to checkout from windows repository to linux???20:48
unangzcan all of you help me???20:49
gutworthhave you tried?20:50
unangzyes i have20:50
unangzi use ftp protocol20:50
unangzbut i get problem when i commit20:50
gutworthoh?20:50
unangzbecause bzr not support for smb protocol20:51
gutworthftp is not a very good protocol anyway20:53
unangzwhat can i do to solve my problem?20:53
gutworthcan you use ssh or http?20:54
gutworthsftp?20:54
unangzif i checkout use http, it's clearly can not for commit back20:54
unangzhttp not support for make directories or files20:55
unangzhow to installing ssh server on windows20:55
gutworthbzr serve20:56
unangzu have any tools or applocations ssh servers for windows?20:56
nekohayouh oh21:17
nekohayowhat happens if someone merges a branches, and makes changes before committing the merge?21:18
nekohayoseems one of my devs did just that, and it scares me21:18
gutworththe changes are just crammed in with the merge21:18
nekohayogutworth: will bazaar know how to differentiate the two?21:19
nekohayoor will it basically screw up interactions with other branches afterwards?21:19
gutworthwhat do you mean?21:19
gutworthall that will happen is that you won't be able to separate the commits21:20
gutworthnothing horrible21:20
nekohayooh ok21:23
nekohayogutworth: I guess bazaar is smarter than I expect it :)21:23
AmanicAdoes anybod know how to convert chroot--1211347476:///bazaartest/trunk/  to file:///bzrroot/bazaartest/trunk/  ?21:52
AmanicAso far I've been able to derive the transport from the url, but that only gives file:///bzrroot/21:53
lifelessAmanicA: to do an unlock?21:56
=== mario_ is now known as pygi
AmanicAto get the local file while in hook, to pass to other script21:57
lifelessAmanicA: external to bzr?21:58
AmanicAI mean to convert the branch.base given to hook, into a branch url which I can pass back to bzr log21:58
lifelessyou can pass chroot--1211347476:///bazaartest/trunk/ straight to bzr log in the same process21:58
AmanicAmm the hook fires a php script which then trigers `bzr log -r ...` to obtain other info21:59
lifelessright, so external to bzr ;)22:00
AmanicAthen bzr log complains: errors.UnsupportedProtocol22:00
lifelesstransport.local_abspath('.') may work22:00
lifelessthe chroot-* syntax is a special in-process syntax only22:00
AmanicAI think I tried that22:00
AmanicAI can try again quickly22:01
AmanicASmartMessageHandlerError: The message handler raised an exception: chroot--1211093524:///bazaartest/trunk is not a local path.22:02
AmanicAok so I obtain the transport with : `tr = transport.get_transport(result.branch.base)`22:03
AmanicAwhich seems correct: `tr: <bzrlib.transport.chroot.ChrootTransport url=chroot--1211093524:///bazaartest/trunk/>`22:03
AmanicAthen `tr.external_url()` gives `file:///var/lib/gforge/bzrroot/` which is the closest to what I want22:04
AmanicAexcept its only the url to the base of the transport, I need file:///bzrroot/bazaartest/trunk/22:05
AmanicAI mean file:///var/lib/gforge/bzrroot/bazaartest/trunk/22:06
lifelessuhm22:08
lifelessI didn't say external_url :)22:08
lifelessI said local_abspath22:08
lifelessoh right, and you get an error on that22:08
AmanicAI tried that and it gave ` SmartMessageHandlerError: The message handler raised an exception: chroot--1211093524:///bazaartest/trunk is not a local path.`22:08
lifelessI think you should file a bug; it is reasonable to want to run an external script on a branch being pushed to by the smart server22:09
AmanicAwhere do you think the problem/solution would be?22:09
lifelesswe need to look at the security implications22:10
AmanicAoh you mean that method should be implemented?!22:10
AmanicAoh, so no easy fix :(22:10
lifelessand then likely both fix local_abspath to support the chroot transport type22:10
lifelessand possibly provide a public method to get the backing location22:11
AmanicAok I will quickly log a bug mentioning youe sugestions.22:12
AmanicAin the meanwhile I might manually translate the url to get my stuff working. I can look into fixing the bug a little later if someone which better knowledge about these things doesn't beat me to it22:13
=== mario__ is now known as pygi
lifelessok, thanks22:13
AmanicAthank YOU!22:14
AmanicAthanks lifeless, my monkey patch is 2 lines, and works beautifully. I've been trying to figure this out since saturday :( .23:24
AmanicAwhat are we not willing to do in the quest to do things right the fist time..23:25
lifeless:>23:36
pooliespiv, lifeless, call in 2m23:58
* jml kills the music23:59

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