/srv/irclogs.ubuntu.com/2010/09/19/#bzr.txt

_habnabitIs there a way to have a directory in a bzr repo link to another repo, like svn can?01:18
nprasath002where can i download a netbeans plugin for bazaar??03:22
nprasath002does netbeans have a bzr plugin?03:24
SuperBrainHello14:30
SuperBrainI have just installed Bazaar on Windows (7) ad I have a question.14:31
SuperBrainThe "Configuration" button on the "Setup and personalize Bazaar" part of the Bazaar Explorer application is not working at all.14:31
SuperBrainHas anyone had the same problem and can anyone tell me what to do to "activate" this option?14:32
SuperBrainTo be more exact, nothing is happening when I press the mentioned button.14:34
GaryvdMSuperBrain: Yes - That is a known bug with bzr 2.214:35
GaryvdMSuperBrain: well to be exact, an incompatibilty with qbzr and bzr.14:35
SuperBrainIs there a solution or a workaround?14:36
GaryvdMSuperBrain: Fix 1: from console run bzr whoami "Name <email>"14:36
GaryvdMSuperBrain: Fix 2: Install qbzr 0.19.114:36
GaryvdMSuperBrain: http://launchpad.net/qbzr/0.19/0.19.1/+download/qbzr-setup-0.19.1.exe14:37
SuperBrainOk. Thanks a lot. I will try that.14:37
SuperBrainFix 1 solved the problem :)14:38
GaryvdMSuperBrain: It's Bug 622336 if you are interested.14:38
ubot5`Launchpad bug 622336 in QBzr 0.19 "qconfig: Can't open if whoami not set with bzr 2.2 (affected: 2, heat: 13)" [Critical,Fix released] https://launchpad.net/bugs/62233614:38
SuperBrainI have another question which may sound a bit strange.14:50
SuperBrainI would like to set up a Bazaar "server" on the Windows Server machine which will hold the central repositories.14:51
SuperBrainCan someone point me to a site where it is explained how to do something like this?14:52
GaryvdMSuperBrain: Bazaar is very flexable as to how one can share branches. You can just create a file share.14:52
GaryvdMSuperBrain: As to how to create a smart server, I'm not exactly sure.14:53
GaryvdMSuperBrain: I've never done this, so YMMV - set up openssh server and then use bzr+ssh url.14:54
rubbsSuperBrain: I have used Bzr's offical docs to set up our server, but I'm using Linux, I'm not sure the best way to do it with Windows.14:54
SuperBrainIs it possible to set it up using Apache for example (WEBDAV or something)?14:54
SuperBrainI would like to be able to access my repositories over the internet using http or https urls, not by using shared folders.14:55
GaryvdMSuperBrain: Yes - http (read only) or bzr+http (smart server) or webdav14:55
GaryvdMI think webdav needs a plugin14:55
SuperBrainIs smart server a separate component of Bazaar or is it integrated?14:56
rubbsintegrated basically14:56
GaryvdMI would recommend trying to setup the smart server14:56
rubbshttp://doc.bazaar.canonical.com/bzr.2.2/en/admin-guide/index.html14:56
rubbsThis link shows how to set up various bzr servers14:56
rubbsmost are for Linux, but somewill work with windows too IIRC14:56
GaryvdMSuperBrain: http://doc.bazaar.canonical.com/latest/en/user-guide/http_smart_server.html14:57
JoshBrown<JoshBrown> maxb: I think this is a qbzr issue since everything works fine using plain bzr18:04
JoshBrown<maxb> that seems rather odd. Possible, but odd18:04
JoshBrown<JoshBrown> maxb: Yeah, maybe it's something to do with canonicalization of links or something like that. Anyway I'm off for now, I'll check the differences between the commands I'm running and the ones qbzr is running tomorrow. Bye, and thanks for the help!18:04
JoshBrownmaxb: Turns out my Bash shell is expanding `~` to `/home/josh`, whereas qbzr doesn't. Is this a bug?18:05
=== BasicPRO is now known as BasicOSX
GaryvdMJoshBrown: Yes - I would call that a bug. Where in qbzr is this?18:23
=== Meths_ is now known as Meths
* jelmer waves19:12
jelmerGaryvdM: happy birthday :-)19:13
GaryvdMThanks jelmer.19:14
GaryvdMAny TDD experts here? How should one test that a piece of code dose something that is important for the performance of the code, but does not affect the output.19:34
GaryvdMe.g. qlog tries to load data from the local repos before it tries to load data from remote repos.19:35
GaryvdMShould the tests check that it is doing this?19:35
jelmerGaryvdM: ideally, yes19:36
jelmerGaryvdM: I guess you could create a wrapper repository object that recalls when it is accessed and then use that to check which one was accessed first?19:37
GaryvdMOk  - or tells you which revisions were loaded19:38
lifelessmoin20:06
lifelessjelmer's approach is what I'd do20:07
lifelesssomething like:20:07
lifelessLoggingRepository(output_list)20:07
lifelesssorry20:07
lifelessLoggingRepository(wrapped_repo, output_list)20:07
lifelessif you output tuples (wrapped_repo, method, params) -> output_list20:07
lifelessyou'll have a sequence of both repositories calls in a timeline and can see whats what20:08
lifelessalternatively, as you're working with a stable API, you could use a stub/mock instead for a lighter test, but I wouldn't actually both here20:08
GaryvdMlifeless: Thank20:40
lifelesss/both/bother/20:40
vilalifeless: and how would you use a matcher to check the results ? (say one where you could say things like this repo before this repo or this revision from this repo)20:40
lifelessso a mastch is 'repo A is requested rev X before repo B', or thereabouts.20:43
lifelessI think we're going to need 'getter' adapters for matchers to make them -really-really-reusable.20:43
lifelessanyhow, 'repo A requested rev X if (pos_repo_A_revX_request > -1 and pos_repo_A_revX_request < pos_repo_B_revX_request) or (pos_repo_B_revX_request == -1)20:45
GaryvdMI'm having a good time writing tests for qlog. I've written all this in the last while: http://bazaar.launchpad.net/~garyvdm/qbzr/log_refactor/annotate/head:/lib/tests/test_loggraphprovider.py20:45
lifelessso you could build a composite with LessThan and so on, but I'd just write a specific matcher20:45
GaryvdMonly 18 test so far, but for a wide variety of graph shapes :-)20:46
lifelessone that takes repo A, repo B and the api call to look for20:46
vilalifeless: I see20:47
GaryvdMlifeless: for this, I think it would be good enough to check that rev-x was not load from remote-repo.20:49
vilaGaryvdM: /me drooling on the test names and their easy-to-grasp associated graph representation20:49
GaryvdM:-)20:49
vilaGaryvdM: but you're still specifying too much IMHO :-P20:50
vilaIdeally the input of your assert should be the drawing you have in comment, with a revno/revid (whatever) for each line where a circle appears20:51
GaryvdMvila: Ye-20:51
GaryvdMvila: yes - but to parse that would be difficult.20:52
GaryvdMbtw - most of the numbers you see there are not revnos but column indexes20:52
vilaGaryvdM: you're kidding right ?20:52
vilaGaryvdM: and the column indexes defines where the dash and the circles are as well of their shape ?20:53
GaryvdMvila: An - no - no kidding20:53
GaryvdMvila: Yes20:53
GaryvdMs/An/Ah/20:54
GaryvdMAn some of the numbers indicate the color20:55
GaryvdMs/an/and/20:55
vilaGaryvdM: well, I see no color in your comments :-D :-P20:56
lifelessGaryvdM: sure, for that then Not(Contains(<repo B asked for X>)20:56
GaryvdMvila: Yes - I'm still working on that one...20:56
lifelessso I'd write a single new matcher 'Repo asked for rev'20:56
lifelessNot(Contains(AskedForRevision(B, X)))20:56
vilaGaryvdM: is print_lines purpose is to print the comment from the assertComputed input ?20:57
lifelessand if you want you can wrap that up in a factory object20:57
GaryvdMvila: Yes20:57
GaryvdMvila: Oh - no - format_graph_lines is what assertComputed uses20:58
GaryvdMprint_lines is just a debuging helper. It can come out...20:58
vilaGaryvdM: oh, right, the unicode parameter20:59
vilalifeless: great example, thanks20:59
knittlhm. did i read this right? bzr stores versions per line which are groupd together into a file?21:00
GaryvdMvila: I still need to code it to figure out if it is safe to output unicode.21:00
GaryvdMknittl: Not sure I understand your question correctly. Does it relate to the recent channel topic?21:01
vilaGaryvdM: yeah, right, that function is far too long to survive without associated tests ;)21:01
knittlGaryvdM: no, to my research ^^21:01
knittli wasn't reading along, sorry if i interrupt21:02
=== vila changed the topic of #bzr to: Bazaar version control | try https://answers.launchpad.net/bzr for more help | http://irclogs.ubuntu.com/ | Patch pilot: vila | Release Manager: vila | bzr 2.2.0 is officially out| bzr-2.0.6, 2.1.3 and 2.2.1 need installers, aTdHvAaNnKcSe ! | work on bzr: http://webapps.ubuntu.com/employment/canonical_BSE/
lifelessknittl: some context would be needed to answer that, I think.21:02
GaryvdMknittl: np21:02
lifelessknittl: if you are referring to the weave serialisation format, thats obsolete, kept for compat21:02
knittllifeless: i'm reading groupcompress (spiv told me yesterday)21:03
lifelessgroupcompress isn't lined based21:03
knittlit reads like, because of all the add_lines methods21:03
lifelessthe python implementation uses lines rather than bytes for performance reasons, but the C implementation (pyx) matches on bytes21:04
knittlpyx is c?21:04
lifelessknittl: thats the VersionedFile contract, you probably want to read it first21:04
lifelessknittl: pyx is pyrex, which compiles to C and then to a .so21:04
knittllifeless: i've read versionedfile, but i wasn't getting any smarter ^^21:05
vilaGaryvdM: can you add a comment in your source describing which is which in that input list ?21:05
vilaGaryvdM: or is there one I missed ?21:05
GaryvdMvila: Ok - I'll do that.21:07
knittlany thoughts on http://bazaar.launchpad.net/~knittl/bzr/cat-signature/revision/5434?21:07
GaryvdMvila: The computed_to_list will give you a hint21:07
vilaknittl: given the current discussion, the most obvious one is: where are the tests ?21:10
knittlvila: i thought a day about tests (still haven't read the current discussion), but a test would just do the same thing?21:11
knittli.e. get the signature21:11
vilaknittl: no, it will call the code that will get the signature and verify that the correct signature is indeed obtained21:11
knittlso the test stores the signature as plaintext and then compares it?21:12
vilaknittl: and will catch any regression if this code or the code it used is modified21:12
vilaknittl: yes, that's the point21:13
knittlok, i can do that21:13
vilaknittl: other tests will verify the behaviour with different arguments (aka branch, format, etc)21:14
knittlhow do i create a branch from the secondlast commit in bzr?21:14
vilaknittl: alos, if you make a merge proposal it will make it easier to view the overall patch you're proposing21:14
vilabzr branch -r-2 ../new_branch21:15
knittlbut that will copy the whole directory :-/21:15
vilabzr branch -r-2 ../new_branch --no-tree21:15
knittli simply want to ignore the last commit and work starting at the second last21:15
* GaryvdM discovers ghosts in the very early history of bzr.dev, e.g parent 897 - john@arbash-meinel.com-20050709180338-33e3b5a778df910421:16
vilaha, that would be: bzr uncommit ; bzr revert21:16
vilaGaryvdM: hehe, preciously kept as real-life test data ;-)21:16
GaryvdMha ha - And the next ghost is a fix for ghosts in log21:17
knittlnot a branch: ~/bzr/new-branch21:17
knittlbzr uncommit; bzr revert? will that work when i've already made new commits?21:17
GaryvdMshould be bzr branch . -r-2 ../new_branc21:17
knittlwtf? why is it copying 33k files?21:18
vilaknittl: you said you did only one additional commit (and good catch GaryvdM ;)21:18
lifelessknittl: why do you think its copying that many files?21:18
knittllifeless: because it says inserting stream xxx/33692321:19
knittl336k even …21:19
lifelessthats stored texts21:19
lifelessnot files21:19
lifelessobjects in the system21:19
knittlwhy is it copying? i simply wanted to create a new branch21:19
knittlit's taking forever21:19
GaryvdMknittl: you should use a shared repo.21:19
GaryvdM:-( ui fail21:20
knittli have a bzr clone21:20
knittlcreated a new dir? without files?21:21
knittlbut still 51m?21:21
knittlmumble mumble … oO21:21
knittli'll never understand bzr21:21
vilaknittl: it looks like you didn't create a shared repo. Since it's the default model in git and needs an explicit command for bzr, many people do this mistake which is why GaryvdM said UI fail.21:22
GaryvdMknittl: I think you ran branch with --no-tree. Not sure why vila mentioned that.21:22
GaryvdMknittl: To undo --no-tree, run bzr checkout21:23
GaryvdM(in branch)21:23
knittlwhy do i need to tell bzr all that?21:23
lifelessknittl: 51 minutes ?!21:23
knittlalso that will use twice the space on hd?21:23
lifelessknittl: eeven a full clone of bzr is only a minute or so21:23
vilalifeless: MO I suspect21:23
knittllifeless: megabytes21:23
vilaknittl: that's the whole history of the project21:24
knittli didn't want to clone, i wanted a branch21:25
vilathere are several kind of branches in bzr, you didn't specify which21:25
knittla normal branchy branch21:25
GaryvdMknittl: We call a git branch a colocated branch, which we don't do out of the box21:26
vilathe default one, when you first use bzr is a standalone branch which stores its revisions in its own repo21:26
knittlwhy isn't that default?21:26
GaryvdMknittl: what we call a branch is like a git clone21:26
knittlWHY?21:27
viladifferent point of views leads to different results, you've got all the bzr history available21:27
vilaWHY NOT ?21:27
knittlbecause it takes up too much space for my liking21:27
vilawhy's questions are not wise...21:27
viladon't do that then21:27
GaryvdMknittl: A shared repo allows the history data to be shared between the 2 branches.21:27
vilause a shared repo21:27
lifelesshey hey calm21:27
lifelessits like it is because thats how bzr grew21:27
GaryvdMor x branches21:28
lifelessand changing it - may - happen, but it needs to be done with care21:28
lifelessincluding having the colocated stuff /really/ polished first.21:28
lifelessIf you're going to break 6 years of doco you want to be prepared21:28
knittli don't see any advantage in creating clones and clones and clones21:28
knittlalso shared repo looks really complicated21:28
knittlcreating directories and copying stuff and …21:28
knittlon an unrelated note21:29
knittlhow can i test my code if the only way to get a signature is my code?21:29
knittlwhere should i put the test?21:31
GaryvdMknittl: Is it a gpg sig? can you not create it with gpg -a?21:31
knittlGaryvdM: so echo "Hash: SHA1" > file && bzr testament >> file #?21:32
GaryvdMknittl: But creating it from the code you are testing is not so bad. I dose not verify that it is currently correct, but guards against future regressions21:33
knittlis a revision able to have multiple signatures?21:48
knittland if so, what would be the output of repository.get_signature_text(rev_id)?21:57
knittland how can i add new tests? it says: 0 tests OK. but it should run a single test21:58
GaryvdMknittl: I think you need to add you test module to bzrlib/test/__init__.py - line 383022:00
knittlwhere inside that 5k line file?22:01
GaryvdMline 3830...22:01
knittlfound it22:01
knittlyeah ^^22:01
knittlis there an existing test which accesses bzr.bzr?22:03
GaryvdMknittl: Not sure about multiple sigs. I guess a person may have multiple keys that they want to sign with, but that would be unlikely. And the fact that the api name in not plural suggest that it is not possible.22:04
GaryvdMknittl: do you maybe mean bzr.dev?22:04
knittlmultiple people could sign the same revision22:04
knittli mean the bzr repo22:04
knittlbecause that's where the signature is stored22:04
GaryvdMknittl: But you would only be interested in the signature of the person that committed the rev.22:06
knittlwhy? can only the committer sign a revision?22:07
knittlbut i'm tired, i'm going to bed22:08
knittlgn822:09
GaryvdMknittl: For me the value in a signature is that I can verify that the revision was really committed by the committer, and that it is what they committed...22:09
knittlwell, considering bzr signatures do not sign history that is an argument22:09
knittla dev could decide to sign an older revision though, to claim he has verified its contents22:10
knittlanyway, going to bed22:10
GaryvdMok - good night.22:10
_habnabitSo I'm unclear on how you're supposed to configure change_editor.23:06
_habnabitWhen you shelve something, it passes you the old file and the new file, you edit the new file, and then it shelves the changes between the new file and what it was?23:07
=== jfroy_ is now known as jfroy

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