/srv/irclogs.ubuntu.com/2010/01/15/#bzr.txt

pooliespiv, igc, lifeless, do you think https://code.edge.launchpad.net/~mbp/bzr/456077-cross-format-fetch/+merge/17354 is worth merging to 2.0?00:44
poolieit is a bug, and a mysql bug, but00:44
pooliethere's some risk of regressions00:44
poolieand i think not a high-impact bug00:45
poolieso i have doubts00:45
lifelesspoolie: no strong opinion01:43
thumperlifeless: a fix for your most annoying code bug is playing in ec201:45
lifelessthumper: \o/01:54
lifelessthank you01:54
jkprghi. how could I list all branches of centralized repository?01:57
CardinalFangjkakar, there's a plugin that will download all tips.02:13
jkakarCardinalFang: Tips for what? :)02:13
pooliejkprg: 'bzr branches' (may be in bzrtools)02:14
jkprgpoolie: thx. I have some problem with this command. it generates error of pycrypto (http://nopaste.info/b5e646b452.html)02:17
poolieit's not an error, it's a bug in another python library02:19
pooliei think recent bzrs suppress it?02:19
jkprgpoolie: may be i'm too fresh. i have bzr 2.1.0b402:20
pooliecan you file a bug please?02:22
pooliehttps://bugs.edge.launchpad.net/bzr/+bugs02:22
pooliei thought there was one but this may be a different issue02:22
jkprgpoolie: sure02:23
=== jkprg_ is now known as jkprg
jmlpoolie, sorry, you asked earlier about where to talk about testtools.04:00
jmlpoolie, I'm sorry but I don't have a clear answer -- hip-deep in sprint, and not satisfied by the current channels for communication.04:01
poolienp, not at all urgent04:01
pooliei shall blather on subunit-dev i think04:01
pooliehi spiv, still around?04:39
spivpoolie: yeah04:50
DaffyDuck_`Let's say I want to ignore everything under src/, except src/sys/dev/cgd.c and src/sys/kern/kern_main.c. Is there a way to accomplish this using .bzrignore?06:58
lifelessbzr ignore ./src06:59
lifelessbzr add src/sys/dev/cgd.c src/sys/kern/kern_main.c06:59
lifeless(adds take precedence over ignores)06:59
DaffyDuck_`Oh, I thought "ignore"06:59
DaffyDuck_`... ah. :)06:59
DaffyDuck_`Many thanks.06:59
DaffyDuck_`Makes sense, now that I think about it.06:59
lifelessnp07:04
vilahi all07:09
* fullermd waves at vila.07:11
lifelesshi vila07:12
* vila feels welcome :)07:14
DaffyDuck_`lifeless: There's an interesting side effect when adding ./src to .bzrignore, and adding explicit files. Once I added the explicit files, it adds the paths up until the files, which means it finds lots of "unknowns". I guess I could set an explicit "ignore everything under ./src" rule? But how?07:21
lifelessDaffyDuck_`: hmm, let me check07:22
DaffyDuck_`I tried something like RE:./src/.*07:22
DaffyDuck_`Aha. "RE:src/.*" seems to have done it.07:24
lifelessbzr ignore './src/**/*'07:25
lifelessif you want to use an re thats fine - but be sure to anchor it to root07:25
DaffyDuck_`Even better. Thanks again.07:25
lifelessas you don't want to ignore *any* dir called src, only ones at the top.07:25
DaffyDuck_`Yeah, that's what I was worried about.07:25
lifelesscontrast with (for instance) 'bzr ignore Makefile.in' where any Makefile.in should be ignored.07:26
lifelesspoolie: ping07:38
pooliehi07:38
lifelesssomething is calling stopTest without calling any outcome, for a number of tests07:39
poolie... to cause that behaviour i complained about?07:39
lifelessto cause the stderr output07:39
lifelessits because the test before the first one shown hasn't 'finished' in the stream.07:40
pooliesomething in bzr?07:40
lifelessyeah - bzr/testtools07:40
lifelessif you run subunit-stats < subunit.out | head07:40
poolie:{07:40
lifelessyou'll see the start of a subunit stream07:40
lifelesslook in subunit.out with vim, find the test: line that was at the top of head07:41
lifelessand look up07:41
pooliemm07:41
lifelessyou'll see a test that is misbehaving07:41
lifelessits probably my fault :)07:41
pooliemm07:42
poolietest_info_locking07:42
pooliethere is a test line but no other mention of it07:42
lifelessright07:42
poolieare you allowed to have multiple tests in flight at once?07:42
lifelessthat means that startTest was called, but not addSuccess/addSkip/addExpectedFailure/addError/addFailure/addUnexpectedSuccess07:42
lifelesspoolie: in a single stream, no. the parser will emit an error for that test after the stream ends at the moment.07:43
pooliei kind of want a --strict that will flag these07:44
poolieor a subunit-lint07:44
lifelesspoolie: It may be a good idea to warn on any token seen out of state; I don't at the moment to be as transparent as possible.07:45
lifelessif you do subunit2pyunit < subunit.out07:46
lifelessyou get07:46
lifelessERROR: bzrlib.tests.per_tree.test_path_content_summary.TestPathContentSummary.test_file_content_summary_not_versioned(PreviewTree)07:46
lifeless----------------------------------------------------------------------07:46
lifeless_StringException: lost connection during test 'bzrlib.tests.per_tree.test_path_content_summary.TestPathContentSummary.test_file_content_summary_not_versioned(PreviewTree)'07:46
pooliemm07:47
poolieit may be better but it's not exactly clear07:47
lifelessI agree.07:47
pooliesorry if that sounds grumpy07:47
lifelessWe can definitely have a specific linter07:47
lifelessI'm hesitant to make the main parser more aggressive though.07:47
poolieyes that makes sense not to07:48
lifelessyou don't sound grumpy07:48
lifelessthis is with bzr.dev yes?07:48
pooliei think i'd like it to try to catch up and keep going07:48
poolieapproximately07:48
poolieso07:48
pooliei'm going to stop for today07:48
lifelesswhat combination of bzr branch + testtools version did you use to generate the subunit.out ?07:49
lifelesspoolie: ^07:52
lifelessvila: ping07:56
vilalifeless: pong07:57
lifelessbug 507804 - is it possible that you have the same sort of damage to the subunit stream you're testing subunit2gtk with ?07:57
ubottuLaunchpad bug 507804 in subunit "subunit-filter doesn't seem to actually filter" [Undecided,New] https://launchpad.net/bugs/50780407:57
poolielifeless: it's within a few revs of bzr head08:01
pooliewell, ~mbp/bzr/progress if you want to be specific08:02
poolieand08:02
poolie>>> testtools.__version__08:02
poolie(0, 9, 2, 'final', 0)08:02
lifelesspoolie: could you try running just ./bzr selftest --subunit bzrlib.tests.blackbox.test_info.TestInfo.test_info_locking | subunit-stats before you sign off08:02
vilalifeless: I don't think so but I notice that:08:02
poolieTotal tests:       208:03
pooliePassed tests:      208:03
poolieFailed tests:      008:03
poolieSkipped tests:     008:03
vila./bzr selftest -s bt.test_log --subunit | ~/src/subunit/trunk/filters/subunit2gtk is broken08:03
lifelesspoolie: ok, so whatever damaged the stream either needs a full test run, or was post-output from bzr08:03
vilawhile redirect the output and then using the file works (selftest > file ; filter < file)08:03
pooliethe whole module works08:04
lifelessvila: just tried it - it worked for me08:04
vilalifeless: so not bug #507804, but something specific to subunit2gtk08:04
ubottuLaunchpad bug 507804 in subunit "subunit-filter doesn't seem to actually filter" [Undecided,New] https://launchpad.net/bugs/50780408:04
lifelessvila: thanks08:04
pooliebut now i have to go08:04
lifelesspoolie: thanks08:04
pooliedinner and extremely strange movies at the Chauvel08:04
lifelessenjoy!08:04
lifelessDid you do any post processing of the stream?08:05
vilalifeless: what worked ? selftest | filter ?08:05
lifelessvila: ./bzr selftest -s bt.test_log --subunit | ~/source/unittest/subunit/working/filters/subunit2gtk08:05
lifeless67 ok, 0 not ok.08:05
vilalifeless: try subunit-stats as the filter08:06
vilaoh damn, my version says 67 ok when stats says 70, whereas trunk says 67 ok 1 nok when stats says 70 >-/08:08
vilalifeless: right, got that fixed too, hup is trigger-happy so we should process all pending reads first08:11
lifelessvisik7: welcome back08:13
vilalifeless: right, got that fixed too, hup is trigger-happy so we should process all pending reads first08:13
lifelessvila: I don't like the approach08:13
vilalifeless: pushed to lp~vila/subunit/gtk-filter-fixes08:13
vilalifeless: fine with me, as long as you fix the bugs :)08:14
lifelessvila: busy reading in 'idle' is not nice08:14
lifelessvila: in particular, running two or three of these in the same process is going to end badly  (think multiple ec2 machines)08:15
vilainstalling/uninstalling io watch have race conditions, you can miss events08:15
lifelessvila: ! its not level triggered ?08:16
vilaI didn't change *when* we read, you said the UI is starving, fine, let's process the events08:16
vilalevel triggered means ?08:16
lifelessedge vs level08:16
vilaECANTPARSE08:17
lifelesshttp://en.wikipedia.org/wiki/Interrupt#Level-triggered08:17
lifelessIf there is data to read, adding a watch should trigger a read08:17
lifelessotherwisee a trivial 'cat foo' program that supplies 'test: foo\nsuccessful: foo\n' would not cause anything to be seen08:18
mneptokmmmmm .... cat food.08:18
vilaright, but how is that relevant to the fact that the hup signal is handled while in signals are pending ?08:19
lifelessvila: your branch has conflicts btw08:19
lifelesscurrently the merge is nonsensical08:20
vilalifeless: weird08:22
vilaOh, right, got it, the conflict is genuine, I deleted the lostConnection call08:24
lifelessvila: I've done something similar08:24
lifelesssee if that fixes it for you08:24
vilalifeless: yup, fixed08:26
lifelessthank you for catching this issue08:29
vilalifeless: hmm, but now the UI is starving again when fed with a bug file...08:35
vilas/bug/big/08:35
lifelessvila: via cat ?08:36
vilalifeless: filter <big_file08:36
lifelessbah08:39
lifelessI meant to write all=False08:39
fullermdall=False == none=True?08:39
lifelessidnar: pshed08:39
lifelessbah08:39
lifelessidnar: sorry08:39
lifelessvila: PSHed08:39
vilawhich is expected since all defaults to True08:39
vilaperhaps you meant it to default to False instead08:39
vilayup seems to do the trick08:39
vilaNow you can compare both versions and see decide which behaviour you prefer08:39
lifelessScheduling a read later is better for now IMO08:40
lifelessreentering into the event loop is nasty08:40
lifelessimagine you had three streams08:40
vilaio_watch events are not the same as othe events (IIRC) I did it that way in a gtk app with admiteddly a single data source, but never encounter problems in years08:41
vilalifeless: in fact, since the  loop is while event: process_event and the script can exit this loop *while there are still pending reads* I'm pretty sure it's safe :0D08:49
lifelessvila: if you're playing with subunit08:50
lifelessbe sure to checkout testrepository08:50
vilalifeless: sure, I came to subunit filters when toying with testrepository as you pinged me about it yesterday or the day before :)08:52
=== Toksyury1l is now known as Toksyuryel
grettkeHi. I had done a bzr unbind to work disconnected, and bound back to the remote branch. I want to blow away those changes now. Would you say, unbind and revert them, or, is there a simpler way?11:29
LeoNerdpull --overwrite  ?11:30
grettkeI'll try it... just realizing that I ought to study up a bit more on the nature of doing the SVN model with BZR ;).11:32
lifelessgrettke: if you want to blow them away11:33
lifelessgrettke: then do 'bzr update; bzr revert'11:33
lifelessgrettke: when you're using a checkout, it works like a checkout :)11:33
grettkelifeless: doh! :), pull in the changes and then blow them away, I see11:33
lifelessgrettke: updating makes your local offline work into a pending merge and sets the master as your tip11:33
lifelessgrettke: then revert discards the pending merge11:33
grettkelifeless: thank you11:36
=== mrevell is now known as mrevell-lunch
vilalifeless: how do I get a subunit stream *out* of testr ?13:02
bialixheya bzr13:07
vilahi bialix13:07
bialixhi vila!13:07
ruki am geting this error: http://pastebin.com/m4b2e27313:27
=== mrevell-lunch is now known as mrevell
vilaruk: what is en_IN ?13:29
vilaruk: python doesn't know about it, that's the problem, try en_US.UTF-8 instead13:29
rukvila: how can i change it?13:30
vilaas in export LANG=en_US.UTF-813:30
vilaruk:  but it's strange you ended up with such a $LANG, any idea how you ended with that ?13:31
rukvila: no. i am using ssh login for first time and then i did $bzr13:31
vilaok, so ask the remote admin about it13:32
rukbtw i m stiil getting same error: http://pastebin.com/m790fa6e513:32
rukvila: ok13:32
vilaruk: oooh, that's english(India) does that ring a bell ?13:32
rukvila: yeah13:33
vilaruk:  so you may try en_IN.UTF-8 instead, no need to force US on India :)13:33
rukvila: same error only lang is changin!13:37
viladoes it work with en_US.UTF-8 ?13:38
rukvila: i think i can ignore it!13:42
rukvila: but while trying to get branch i get "Permission denied (publickey). bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist. "13:43
vilaruk: it's hard to tell if you don't tell me what works and what doesn't work13:43
vilathe later error is probably because you didn't 1) log to launchpad 2) didn't install your private ssh key on the host you're running bzr from13:44
rukok13:45
rukvila: so i have to login separtely for launchpad from ssh also ?13:45
vilaruk: that's the way ssh works, each host is seen as different unless you share keys, launchpad allows you to register which keys you will use, ssh allows you to specify which key you use when connecting to a given host13:47
vilafinally launchpad *requires*  ssh keys13:47
vilaso if you don't have keys you can't connect to launchpad13:47
rukvila: do i have to save on remote machin (ssh) the ssh key file?13:54
vilaruk: that or create a new key pair and upload the public one on lp13:54
rukvila: i did ssh-keygen on ssh but i think it generated a new rsa key and overwrote on my preevious key.13:55
vilawhat do you call shh ? The remote host ?13:56
rukvila: :)13:57
rukvila: ssh for connecting tto remote host.13:59
ruksecurely13:59
vilaruk: I can't parse "i did ssh-keygen on ssh" where did you run that ?14:00
rukvila: i logged in using sssh . after loggin i did ssh-keygen14:01
vilaso you ran it on the remote host, then you didn't overwrote your local key, have a look into $HOME/.ssh on both your local and remote host to check14:02
rukvila: i see only three file. rsa, rsa_pub and known hosts14:04
vilalocally and remotely ? Same sizes ? Same dates ? Same content ?14:05
rukvila: how do i check remotley?14:05
vilaruk: you know how to use ssh right ?14:05
rukvila: i m a total n00b with both ssh and bzr! :(14:06
vilaruk: What are you trying to do exactly ?14:06
ruksomehow i managed to keep my branch updated! ;)14:06
rukvila: i have been assigned a web adres for uploading my app. i was given an ssh acess too! i have my branch on Launchpad which i would like to push on the web adress assigned.14:09
vilaso assuming that web address is an url starting with either sftp: or bzr+ssh: and that your rsa_pub is part of their authorized_keys then just do bzr push URL14:11
vilaif that's not the case, you need to contact the admin for that URL and set things up with him14:12
rukok14:12
=== salgado is now known as salgado-lunch
rukis thr a GUI way of uploading branch on launchpad?15:40
ruk:)15:40
beunoruk, maybe using bzr-gtk?15:46
bialixruk: bzr-explorer15:52
=== salgado-lunch is now known as salgado
davidstraussIs it possible to "revert" the contents of the working tree to the tree contents of a revision on a remote branch?16:28
bialixrevert -r xxx ?16:33
jamdavidstrauss: bzr revert -r -1:$REMOTE_BRANCH16:42
davidstraussah16:43
jamor bzr revert -r branch:$REMOTE_BRANCH16:43
davidstraussjam: thanks16:43
davidstraussjam: I kept trying -r revno:-1@$REMOTE_BRANCH16:43
jam@ => : would have worked16:43
bialixnice16:46
bialixnever know it's possible16:46
bialixhello jam16:46
jamhi bialix16:47
bialixdoes it works only for revno?16:48
maxbWhether a revision specifier accepts a branch parameter is part of the revision specifier16:52
ruki am getting internal server error when i open some folder in my branch .however i can open files!17:04
=== khmarbaise_ is now known as khmarbaise
Pengruk: Go on. Is this using Loggerhead or something? What does the server's error log say? Use index files or something?17:08
rukPeng: i am checking it through my web browser on launchpad17:09
=== tchan1 is now known as tchan
=== beuno is now known as beuno-lunch
lifelessvila: testr failing --subunit17:40
vilalifeless: hmm, testr help failing looks promising :-) What I had in mind I asked was the ability get a stream for any run though, which I since realized is just there in the .tesr dir17:46
vilas.mind.mind when/17:46
lifelessvila: Feel free to add a command to show an arbitrary run, with a --subunit option to it ;)17:58
lifelessvila: I'd like access to the files in .testrepository to be arbitrated17:58
=== beuno-lunch is now known as beuno
PengGreat, ruk's gone... :|18:01
PengWell, if it comes to it, someone could check LP's logs./18:01
=== deryck is now known as deryck[lunch]
lifeless'codebounce down'. ;P18:01
lifeless-> plan18:01
lifeless-> plane18:01
* vila nods @ lifeless (about arbitrated access)18:02
beunooooh...  and that's with the new patch I think18:02
beunolifeless, you've been a lot on planes lately18:02
vilawow, now that's a nasty trap: read a test, think , right, so that's how we implement it.... hours pass.... realize that the test is against a deprecated function :-( Worse, the deprecation is only a comment in the function >-(18:08
* vila search for a chicken to eviscerate just because18:08
Flare183When I use bzr register-branch it gives me this error: bzr: ERROR: xmlrpc protocol error connecting to https://xmlrpc.edge.launchpad.net/bazaar/: 401 Unauthorized18:18
Flare183How can I fix it?18:18
Flare183Or what should I do?18:18
znikwhen i do bzr merge lp:/... Is the online branch merged or the local one?18:19
maxblp: is an alias for bzr+ssh://bazaar.launchpad.net/ or http://bazaar.launchpad.net depending on whether you've registered your launchpad login - either way, it's remote18:20
Flare183ok18:20
=== deryck[lunch] is now known as deryck
=== pgalbraith is now known as CaptTofu
=== salgado is now known as salgado-afk
lifelessbeuno: not really20:05
lifelessvila: what code?20:06
lifelessmaxb: flare probably needed to log in20:06
vilalifeless: log.calculate_view_revisions20:08
=== salgado is now known as salgado-afk
=== gnomefreak76 is now known as gnomefreak
Adysis there a way to completely delete files from a repo? I got like 50mb of static content I branched off that's being downloaded every time I branch my website repo22:34
maxbAdys: Unfortunately no, or at least, not without rebuilding a new branch which bzr will not consider to be related to the old one (so no merging between them)22:41
maxbIf this is potentially acceptable to you, install bzr-fastimport and read bzr help fast-import-filter22:41
Adysmmh ill stay lazy22:41
PengAdys: Yes, but not easily.22:42
PengAdys: Um, mostly people use bzr-fastimport for it.22:42
PengEeek.22:42
PengWhat was that?22:43
mneptokPeng: netsplit22:54
quotemstrClearly, the network should go on one humongous server.22:54
Pengmneptok: Well yes, but this one was combined with some nice lag. That's unusual.22:54
Peng"[Lag: 14.13]" :D22:54
Peng"[Lag: 70.63]" -- even better! (Sorry, I'll stop now.)22:55
PengAww, 5.06 now. *Now* I'll stop. :P22:55
PengWhat about a mainframe? :D22:57
mneptoka netbook with multiple OC-192s is better for IRC than a mainframe with a single 300kbps modem :)22:58
Pengmneptok: You just have to get a bunch of keyboards and monitors and make the users sit right there.23:00
=== mnepton is now known as mneptok
=== Adys_ is now known as Adys
=== Supertan1er is now known as Supertanker
=== sdboyer_ is now known as sdboyer

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