/srv/irclogs.ubuntu.com/2009/07/02/#bzr.txt

mwhudsonjelmer: still here?00:39
jelmermwhudson, somewhat00:44
mwhudsonjelmer: python2.4, bzr 1.16.1 (1.17dev soon maybe), bzr-svn 0.6.3, subvertpy 0.6.800:45
mwhudsonjelmer: all should work together ok?00:45
jelmermwhudson, yes00:46
mwhudsonjelmer: subvertpy.tests.test_properties.TestProperties.test_time_from_cstring fails, should i worry?00:48
jelmernot really, I think that's still the same test00:48
mwhudsonok00:48
jfroyjelmer: new bug, never seen this before: https://bugs.launchpad.net/bzr-svn/+bug/39452700:55
ubottuUbuntu bug 394527 in bzr-svn "SubversionException - "At least one property change failed"" [Undecided,New]00:55
pooliehello garyvdm01:04
garyvdmHi poolie01:06
lifelesspoolie: I'm off for a bit as discussed01:08
jfroyjelmer: I'm not sure I understand your comment on the bug.01:17
jfroyBut does it basically mean I should make a smaller commit (a batch of commits)?01:17
mrooneyhey bzr friends, it looks like the Limitations section of http://bazaar-vcs.org/BzrForeignBranches/Subversion is out of date (some of the limitations are addressed which is great!)01:30
mrooneyjelmer: specifically I noticed the first and last subversion file properties, this is your domain, correct?01:31
mwhudsonthe bzr-svn tests still segfault :(01:46
* igc back01:48
garyvdmigc: I've just landed my tree widget into lp:qbzr02:04
igcgaryvdm: excellent! I'll take a look tonight02:05
garyvdmand I'm busy changing qcommit, qadd, and qrevert to use it.02:06
igcgaryvdm: cool. So that means I can add files in a directory yet to be added when that's done?02:07
garyvdmigc: Yes - I've got it showing the contents of a unversioned dir.02:07
igcgaryvdm: hooray!02:08
garyvdmBut getting it to decide how to pass the parameters to the subprocess is a bit of a challenge02:08
garyvdmIf you change the selection in a subdir, it needs to pass the subitems and say --no-recurse. And if you don't change any thing, it must not pass the sub items, and not pass --no-recurse.02:10
garyvdmAnd if you have mix????02:11
garyvdmigc ^^^02:11
igcgaryvdm: why is no-recurse needed when a subitem is selected? If that itself was a subdir, I'd expect it to recurse from there?02:12
garyvdmIf you have 1 sub items that is deselected, you need to pass no-recures, and pass all the other items that remained selected.02:13
garyvdmigc ^^^02:13
igcgaryvdm: ok, I'll give it a go tonight. Thanks for getting this going02:14
RenatoSilvahttps://bugs.eclipse.org/28222603:27
bob2is there a bzr.dev-as-2a branch somewhere?03:33
spivbob2: Probably only as throw-aways on a couple of devs laptops.03:36
spivI don't think we want to start inviting people to make rich-root revisions that they might submit back to us until bzr.dev itself is in a rich-root format.03:37
bob2ah, fair enough03:37
pooliejelmer: are you still here?03:40
=== timchen119 is now known as nasloc__
* igc lunch03:56
pooliespiv, hello! how's it going?04:50
spivpoolie: good, I have InterDifferingSerializer and streaming fetch sharing the same code for generating new roots.05:59
spivI got a bit alarmed at https://bugs.edge.launchpad.net/bzr/+bug/196080/comments/1 this morning06:02
ubottuUbuntu bug 196080 in bzr "`bzr info -v bzr://host/branch` hides actual branch/repo format" [Medium,Confirmed]06:02
poolieyeah, i saw your reply06:36
lifelessit would be nice if fixed bugs could not be touched except by team members06:36
poolienot reopened?06:42
lifelessnot touched, even comments on fixed tasks are noise - I'd much rather the user get directed to open a new bug06:44
pooliecos i just reopened a fixed bug in launchpad to point out it's actually not fixed06:45
spivWell, perhaps after say 3 months?06:45
lifelessspiv: something.06:45
pooliearguably i should have opened a new one but that's kind of noise too06:45
pooliesome kind of warning would be good06:45
lifelesspoolie: true, OTOH the lp dev could: dup it, reopen the original.06:45
spivCertainly I wouldn't immediately assume it's wrong for a user to reopen a bug within a week, but for sufficiently old bugs it's almost certainly better to open a new bug.06:45
lifelessI have a strong bias to 'always open new bugs'06:46
lifelessbecause dupping is easy06:46
spivYeah, I flied a bug about this today.  I think there should be a way to take a comment and automatically turn it into a new bug (and remove/hide the original comment).06:47
spivSo that splitting becomes easier, although still not as easy as marking a dupe.06:47
spivOh, interesting, read_inventory_from_string doesn't work with CHKSerializers.06:48
spivOr perhaps I'm feeding the wrong thing to it.06:48
spivNo, I don't think I am...06:49
lifelessspiv: it can't06:50
lifelessspiv: or rather, its used in places that want to do one IO to get an inventory and so we chose to make it error, IIRC.06:50
spivHmm, well, the code we had is feeding the wrong thing, rather than my code per se ;)06:50
stefanlsdgaryvdm: congrats on getting qbzr 0.11 into karmic :)06:57
garyvdmstefanlsd: Thanks for all the help.06:57
garyvdmstefanlsd: I guess I got to find some other packaging to do :-)06:58
stefanlsdgaryvdm: np! yeah!  lots of stuff to do!   :)07:00
lifelesspoolie: http://paste.ubuntu.com/207940/07:02
spivAh, I see, get_stream_for_missing_keys is producing fulltext inventories...07:02
poolietypo introducead07:04
vilahi all, I'll be barfu (back after reboot for update :)07:05
=== abentley1 is now known as abentley
lifelessgnight08:24
johnskulskiI have shelved some changes. then i made a change and committed. now when i try to unshelve I get an error about it not merging cleanly. How can I go forward?08:25
=== RAOF_ is now known as RAOF
=== ivan is now known as Guest40910
=== Guest40910 is now known as ivan
lifelessunshelve --force ?08:35
=== visik71 is now known as visik7
lifelesspoolie: you might enjoy  http://blog.crisp.se/henrikkniberg/2009/06/26/1246053060000.html09:10
vilapoolie: regarding bug #261770, it seems that both users really wanted 'bzr revert -rxxx' even if they tried 'bzr uncommit -r xxx' they both wanted to follow that by 'bzr revert'09:24
ubottuLaunchpad bug 261770 in bzr "cannot uncommit to a non-mainline revision" [Medium,Confirmed] https://launchpad.net/bugs/26177009:24
vilapoolie: so what fix do you think about here ? Giving a proper error message pointing to bzr revert ?09:24
vilapoolie: making uncommit -r accept non left-hand revisions seems wrong to me09:25
lifelessvila: why ?09:25
vilaif it's not in my left-hand ancestry I didn't commit it, how come I can uncommit it ?09:25
lifelesssomeone pushed to it pivoting your history09:26
lifelessso you may well have committed it09:26
lifelessalso, I don't see why not being the committer should have anything with the ability to uncommit09:26
vilabecause, to me, uncommit means: "Oh wait, that (these) commits were wrong, put me in a state where I can commit again (i.e. don't change a single bit in working tree, the state is fine, but put me in the ancestry graph at *that* point)09:28
lifelesssure09:28
lifelessI don't see why we should cripple its ability09:29
vilawhat the reporters want (in *both* cases) is: give me the working tree at that revision09:29
* igc dinner09:29
lifelessvila: well, I'd investigate why they thought uncommit would change the wt09:29
lifelessvila: but that seems orthogonal to me09:29
vilalifeless: full agreement, hence my question09:30
lifelessvila: let me put this another way09:30
lifelessvila: given that uncommit == 'bzr pull . -r <arg> --overwrite' minus the tree changes09:30
lifelessvila: why put additional constraints on it09:31
lifelesswell, its really EOD for me now.09:32
* lifeless puts the laptop away09:32
* vila tries the desktop09:32
vilalifeless: I see, have a good eveniing09:32
pooliehi vila10:09
vilahey poolie !10:10
vilajam: too early, go back to sleep !11:05
=== vk5foss is now known as Kamping_Kaiser
jamvila: definitely too early, just my machine losing and then gaining network access :)14:09
vilajam: :-D14:10
vilagood morning jam (should be better now :-)14:10
vilajam: It could have been your son waking you up and you not finding your sleep anymore :-)14:10
jamyeah14:11
jamthat certainly happens sometime14:11
jambut I usually don't have trouble finding my sleep14:11
jammy wife does, though14:11
=== Xhema is now known as XhemaN
=== XhemaN is now known as XhemaNeShtepi
mozmck_workis it possible/recommended to have multiple unrelated projects in one repository?15:33
ddaait is possible15:34
mozmck_workI have numbers of personal projects I am working on, and my thought is that it would be nice to have my whole projects directory in one repository so I can do a single commit or update to save work on them all at once.15:35
ddaathat's something different than putting different projects in one repository15:35
mozmck_workok, what would be the best way to do that?15:35
ddaathe short answer is: you can't15:36
ddaathe slightly longer is: you could look at the scmproj plugin which might do something close to what you want15:36
ddaathe longer is: "I'm not sure you are clear on what you want to do. Why do you want to do commits in unrelated projects at once?"15:37
ddaaWhat we call that in bzr land is "nested trees". And they are not supported yet, with no defined timeline.15:38
ddaaThe main use case for nested trees tracking is recording which revisions of multiple interdependent projects go toghether.15:39
ddaaUnless you have a specific need for something like that, I would just write myself some shell scripts.15:39
mozmck_workok, I have a projects directory with 10 or 20 different projects. PIC micro firmware, computer software etc.15:40
mozmck_worksometimes I may work on 3 or 4 or more of these in a day15:40
mozmck_workthey are currently not in version control at all, but I want to put them there for revision history, and because I work on them on 3 or so different computers from several locations.15:41
mozmck_workmy thought was if I could just put the whole projects directory as a repository I could commit everything under it at once.15:42
dashmozmck_work: are you changing everything at once? would they all hav ethe same commit message? :)15:42
mozmck_workhmmm, the commit message would be a problem I guess.15:43
dashi guess i'm not understanding why you'd want to commit to separate projects simultaneously15:43
mozmck_workI should probably just commit each one when I get done with it.15:43
dashprobably :)15:43
mozmck_workwell, to save time and having to remember which ones I even worked on!15:44
ddaaThe recommended style in bzr is actually: commit whenever you have a "good" state, or a state you want to share.15:44
dashmozmck_work: that sounds weird :)15:45
dashwhy wouldn't you commit after running your tests?15:45
mozmck_workyeah, but I'm working alone.15:45
ddaaIt's recommended to do multiple commits on a branch within a single session, as dash said, after runnig the tests.15:46
mozmck_workwell, some of these are for work, and I work on them at work and at home.15:46
dashok?15:46
mozmck_workso I use a thumb drive right now to bring stuff back and forth.15:46
dashsure15:46
mozmck_workand I forget at times which computer has the newest version of which program.15:47
mzzbzr can certainly be useful for that kind of sharing, but the recommended way to use it is to commit considerably more frequently than once a day when you're moving between systems15:47
mozmck_workthat's what I'll need to do.15:47
dashmozmck_work: why are you waiting so long to commit?15:47
mzz(I do use bzr to prevent getting confused and having multiple diverging versions of the code spread across systems)15:48
ddaamozmck_work: note, you will not NEED to commit more often. We say it's good practice, and doing so gives you the full benefit of the tool.15:48
mozmck_workI'm not yet because I don't use VCS.15:48
mozmck_workI need to or my code will be at work when I want it at home :)15:48
mzzyou most definitely *can* stick multiple projects into the same branch, which would let you commit all of them. But if you do that it's relatively hard to get a single project back out.15:48
mzzbzr isn't like svn in that15:49
mozmck_workmzz: that makes sense.15:49
mozmck_workit was kind of a wild idea I guess :)15:50
mzzassuming both systems are networked I'd use one bound branch per project and a shared repository somewhere reachable from both15:50
mzzthat just leaves figuring out how to deal with changes that aren't quite ready for a commit before you move between systems15:51
mozmck_workI can set up a server to network them.15:51
mozmck_workwhat is a bound branch?15:51
mzzif they're not networked you can put that shared repo on a thumb drive15:52
mzzI'm hoping bound branches are explained in the documentation, sec...15:52
mzzhttp://doc.bazaar-vcs.org/bzr.dev/en/user-guide/index.html#using-checkouts but that's not ideal. Can someone give me a better doc link?15:53
mzzor give mozmck_work a better doc link, really15:53
mozmck_workok, I can find it.  but only one shared repository per project right?15:53
mzzwell, depends15:54
mzzafaict you won't need more than one for what you're doing15:54
mzz<-- not a bzr expert though15:54
mozmck_workme neither (obviously!)15:55
mozmck_workI'll keep reading.  there's too many options...15:55
igcnight all16:04
awilkinsWowzer, sourceforge.net got all purrrty16:07
Xavuraimpossible!16:07
Xavuraoh wow16:07
ddaawhy do sf.net look like twitter all of a sudden?16:10
* awilkins registers sourcetwit.net16:11
Xavurathey're kinda late to hop onto the web 2.0 bandwagon but err16:11
ddaaApparently, their web20 script monkeys STILL have not heard of this innovation: margins16:12
Xavurarofl16:13
kfogelbzr pack16:13
kfogelbzr: ERROR: Pack '39d0c482e6e64ea0f509082e76b76e37' already exists in <bzrlib.repofmt.groupcompress_repo.GCRepositoryPackCollection object at 0x8ba604c>16:13
kfogelanyone know what that's about? ^^16:14
Xavuradoes look a bit croweded16:14
ddaathat's a bug in bzr-hg, bzr-git whatever your are trying to use.16:14
kfogelThat was from the final command in 'bzr reconcile && bzr upgrade --2a && bzr pack' with very latest bzr bleeding-edge.16:14
kfogelddaa: (were you responding to me?)16:14
dashalso they bought Ohloh16:15
ddaakfogel: yup, I guessed (apparently wrong) what you were trying to do.16:15
kfogelddaa: yeah, this was just a straight upgrade to the brisbane-core format16:15
mzzwell, http://sourceforge.net/ is currently giving me a *very* pretty 500 page16:15
mzzI'm not sure that's what you folks meant though16:15
ddaamzz: well, no. But I guess you can still see the improvement from where you stand :)16:16
jelmerkfogel, Afaik that happens if you try to pack while there is nothing to pack, and you end up generating a new pack file with the same contents (and hash)16:16
Peng_jelmer is correct. There could always be some other cause, of course, but it's probably that. Bug #382463.16:20
ubottuLaunchpad bug 382463 in bzr "'bzr pack' of an already packed dev6 or 2a repo fails with Pack exists" [Medium,Triaged] https://launchpad.net/bugs/38246316:20
kfogelPeng_: dang it.  I just was over in the bug tracker finding that bug.  I should have waited for you to say it!16:21
Peng_"bzr pack" on older formats just reorganizes data, so they short-circuit when there's only 1 pack file, but BBC recompresses too, so packing when there's only one pack may still lead to a different file.16:23
Peng_So it's a bit harder to decide what to do to fix it.16:23
kfogelPeng_: well, it could attempt to recompress and then if there's no advantage, just remove the attempt and say nothing.  (Or, if it wanted to be really fancy, it could store a flag the first time saying it has been compressed, and with what algorithm/compression-level, so it would know not to bother trying to do better unless there's been an upgrade).16:30
Peng_kfogel: Yeah, but then all of that CPU would have been wasted for nothing.16:33
kfogelPeng_: Not in the latter case.  But wasting CPU is better than an error message for a non-error in any case!16:33
kfogel:-)16:33
gioelehello16:44
Peng_kfogel: You could propose the flag thing in the bug. ;-D16:53
mozmck_workin .bzrignore, can I use dir/*.* to ignore everything in certain directories?16:54
gioeleI'm experimenting with bzr-svn. Is there a way to make sure that it does not commit anything to the remote svn repository?16:54
gioelemozmck_work: yes16:54
Peng_gioele: You could not run "commit".16:54
Peng_mozmck_work: What if the filenames don't have "." in them?16:54
jelmergioele, don't use the "checkout" or "push" commands16:54
Peng_mozmck_work: Just ignore dir/ or, if you want to version the directory for some reason, dir/*16:54
gioelejelmer: what about commits?16:55
jelmergioele, if you commit in a checkout, it'll be committed to the master branch as well16:56
jelmergioele, if you commit in a standalone branch that was created from a svn branch, it won't affect the branch it was cloned from16:56
gioelejelmer: perfect16:56
jelmergioele, if the svn repository has a read-only URL you could use that16:56
mozmck_workI tried dir/*.* and then ran "bzr ignored" and it didn't list any files from that dir as being ignored16:56
jelmerthat way you're always sure you won't do any writes16:56
gioelejelmer: sadly it has not it.16:57
Peng_mozmck_work: You do know that ignore rules do not apply to already-versioned files, right?16:57
mozmck_workyes, I'm setting up .bzrignore before I add any files16:57
mozmck_workdir/* didn't work, but dir/ did16:58
kfogelPeng_: it's too obvious; anyone looking seriously at this bug will see all the options.  I think the bottleneck is dev attention, not solutions.16:58
jelmerwe have a lot of these bugs related to simple unpolished bits of bzr16:58
Peng_kfogel: Well, I don't think anybody else proposed it.16:58
gioeleOK, next topic: how important is it to have svn 1.5 instead of svn 1.4 with regard to bzr-svn? Are there thinks that I can't do when only svn 1.4 is available on the remote repo?17:00
dashsvn 1.5 supports revision properties17:01
dashwhich bzr-svn will used to store metadata17:01
dashon 1.4 and earlier ti uses file properties, which are a little more intrusive17:01
awilkins1.4 svn repositories support revision properties, but you need to use bzr-svn against the 1.5 API to use them17:05
awilkinsgioele: So as long as your CLIENT uses 1.5 or above, you will gain the benefit17:06
dashoh!17:06
dashnews to me17:06
awilkinsSVN has supported revision properties for as long as I can remember, back to about v 0.3917:07
ddaaawilkins: I think the news is something like "unprivileged users can now set them at commit time"17:29
=== mario__ is now known as pygi
gioeleawilkins, dash: thank you17:51
gioelewow: subvertpy does not provide very useful exceptions: "bzr: ERROR: subvertpy.SubversionException: ("In directory 'svn/branches/src/...'", 155009)"18:20
Peng_ERR_WC_BAD_ADM_LOG, apparently.18:21
SamBgioele: what, you want it should convert the svn error number into human-readable form?18:28
jskulskihey all, I shelved some changes, and made some changes to my tree (moved functions to a new file) and now bzr unshelve says that it won't be clean. Is there a way I can point it at the new file or get a patch I can apply and delete it from the shelf?19:10
verterokbeuno_: ping19:43
beuno_verterok, hey19:43
verterokbeuno_: do you have a minute to chekc verterok.com.ar?19:43
beuno_verterok, sure19:43
=== beuno_ is now known as beuno
verterokbeuno_: it's returning 404's :/19:44
beunoargh19:44
beunoI must of screwed up migrating19:44
beunooh19:44
beuno*I* didn't19:44
beunosomeone else did19:44
verterokbeuno: oh, nice! it's always good to don't be the one who broked it ;)19:45
beunoverterok, DNS FAIL19:45
beunosorry  :(19:45
beunofixing it now19:45
beunobut it will take an hour or two to propagate19:45
verterokbeuno: ok, thanks!19:45
verterokbeuno: I noticed because of Bug #39484719:46
ubottuLaunchpad bug 394847 in bzr-eclipse "Update site 404s" [Undecided,New] https://launchpad.net/bugs/39484719:46
beunoverterok, I can mirror the account on a different server in the mean time if it's critical19:47
verterokbeuno: not critical, thanks!19:47
Pilkyanyone with any experience with GPL licensing technicalities? I want to know if I write an Obj-C API to hook into bzr, whether I can licence it as LGPL?19:48
fullermdBy the standard interpretation, no.19:49
Pilky:/19:50
* Pilky stabs GPL19:50
fullermdNow, theoretically Canonical owns all the copyrights, so you could potentitally negotiate other terms with them.19:53
Pilkywell the only reason is I want to use the API to write a GUI for bzr on OS X19:53
Pilkybut I want as much of the code as possible to be licensed as MIT19:54
dashdo like bzr-eclipse does and use bzr-xmloutput19:54
PilkyI considered that before but it seems a bit hackish19:55
Pilkyusing bzrlib I can take python objects and convert them to Obj-C quite easily19:56
Peng_You can negotiate other terms with Canonical. Well, the website says so; I dunno if anyone ever has.19:58
Pilkyyeah I'll probably look into that19:59
Pilkyif they allowed my API to be licensed LGPL or even MIT it could help provide a boost for bzr on OS X as a means of talking to other tools20:00
Peng_Since Canonical owns everything, relicensing would be pretty easy, if they decided to.20:01
Pilkyyeah, I mean I'm not looking into relicensing bzr itself20:01
beunowell, it's unlikely that Canonical will relicence bzr to MIT for distribution20:01
Pilkyjust whether I can create code that talks to bzr lib that doesn't have to be condemned to GPL status20:02
dashmore's the pity20:02
Peng_LGPL is possible... Mercurial is firmly non-LGPL, though, so Bazaar might make the same decision.20:02
LarstiQObj-C?20:03
LarstiQPilky: you're not at EuroPython by any chance?20:03
Pilkynope20:03
LarstiQah ok, pure coincidence then20:03
Pilkyhow so?20:03
LarstiQPilky: there has been at least one talk about python and objc and some interest on the mailing list20:04
Pilkyah cool20:04
LarstiQand then at least one bof iirc20:04
Pilkywell I'm going to be looking into PyObjC for building this bzr API20:04
LarstiQwhereas before that, I hadn't really seen much activity on it20:05
* LarstiQ nods at Pilky 20:05
Pilkyyeah, a lot of people see Obj-C as some scary weird language, when they get introduced to it and can see that you can talk to cocoa with Python and Ruby as well then they get more interested ;)20:05
monteldeonteCan someone help me with bzr?20:05
LarstiQPilky: I feel old now :)20:06
dashmonteldeonte: no, you're doomed20:06
LarstiQmonteldeonte: sure, what can we help you with?20:06
LarstiQdash: oi :P20:06
Pilkyheh20:06
dashmonteldeonte: (what is your problem? :)20:06
monteldeontelol20:06
monteldeonteIs there a way that i can sync a bzr branch with svn?20:06
Pilkyso yeah, who would be the best person at canonical to get in touch with about my licensing problem?20:06
dashmonteldeonte: probably. what's your situation?20:06
LarstiQmonteldeonte: in general, yes, with bzr-svn. There are some corner cases, so as dash said, could you elaborate on your situation?20:07
LarstiQPilky: Martin Pool20:07
Pilkyok cool, thanks!20:07
monteldeonteI need to import the SVN from a project, and upload it to a branch20:07
monteldeonteI also need to be able to sync it with the branch20:07
monteldeontei mean'20:08
SamBPilky: you can write code and license it under more liberal terms, but if you link it with canonical's code you'd need to provide the source anyway, as per the GPL...20:08
monteldeontesync the SVN every now and then20:08
dashmonteldeonte: sure. install bzr-svn and you can treat svn branches like bzr ones, mostly20:08
monteldeontedash: I know, i have. I just dont know how to use it20:08
PilkySamB: well it will remain open source, but I don't want to licence it as GPL as that will limit uptake IMO20:08
dashmonteldeonte: 'bzr branch svn://yoursvnurl/.../'20:09
LarstiQmonteldeonte: `bzr branch http://host/svn/repo/path/in/repo/to/branch`20:09
SamBand if this is all Python code we're talking about I frankly don't think it makes a difference20:09
monteldeonteLarstiQ: then how to i update the SVN?20:09
dashmonteldeonte: 'bzr push <svn url>'20:10
LarstiQmonteldeonte: if you have commits in your bzr branch you want to get into svn, what dash said20:10
LarstiQmonteldeonte: basically, you can treat svn branches as any other bzr branch20:10
SamBmonteldeonte: you just run "bzr pull" in your local copy of the SVN branch20:10
fullermdY'know, I was just thinking, it's been so boring here lately, let's have a license discussion   :p20:10
monteldeonteI mean, when there is a new revision on the SVN, how do i sync it with the branch?20:11
SamBmonteldeonte: (it's a good idea to keep a pristine copy of the SVN branch, since SVN makes such a terribly slow DVCS)20:11
dashmonteldeonte: 'bzr merge'20:11
SamBthen you run "bzr merge ../code-from-svn"20:11
SamBwhere ../code-from-svn is the pristine bzr copy of the branch SVN branch that you just pulled into20:12
monteldeonteI am sorry,20:12
monteldeonteI dont get it20:12
monteldeonteLarstiQ: Ok, what is the first thing i do20:14
LarstiQmonteldeonte: first, branch from svn.20:14
monteldeontek, h.o20:15
SamBmonteldeonte: basically, bzr-svn just allows Bzr to treat SVN branches as Bzr branches20:15
SamBreally, really *slow* Bzr branches20:15
LarstiQmonteldeonte: (you mgith be more comfortable with a checkout style, but we'll come to that later)20:15
SamBand you really don't want to do a bzr checkout directly from SVN20:16
SamBwell, maybe a heavyweight one ...20:16
LarstiQSamB: that, and if you're sitting next to the server...20:16
SamB... but I've had those fail in mostly-incomprehensible ways20:16
SamBLarstiQ: does that actually help much?20:16
SamBI suppose if it has a 10th or less the round-trip-time as usual ...20:17
LarstiQSamB: very small latency, lots of bandwidth20:17
SamBLarstiQ: the bandwidth doesn't seem to be much of an issue usually20:17
LarstiQSamB: talking a gigabit office connection20:17
LarstiQSamB: are you using tdb or sqlite?20:17
SamBwhat? I don't actually run any of the SVN repositories I pull from ... or are you talking about bzr-svn's cache?20:18
monteldeonteLarstiQ: OK, now what20:19
monteldeonteSay there is a change in the SVN, how do i get it?20:20
SamBLarstiQ: using tdb or sqlite *where*?20:20
monteldeonteDo i have to do that over again?20:20
SamBmonteldeonte: I would suggest keeping that directory just for the stuff from SVN20:20
SamBand use a different one to hold your local branch20:21
SamBwhich you would create by "bzr branch copy-of-svn my-branch"20:21
SamBmonteldeonte: then, when you want to update from svn, you can just go in the one you branched from SVN and run "bzr pull"20:21
LarstiQSamB: bzr-svn's cache20:21
SamBand you go back to yours and run "bzr merge"20:22
monteldeontehah! you guys rock!20:22
LarstiQmonteldeonte: SamB's advice is sensible.20:22
monteldeonteI think i got it good now.20:22
monteldeonteLarstiQ: OK, i already have a bzr branch, the one i was updating manually. How do i remove the stuff from that, and put this one into there?20:28
monteldeonteshould i just remove it and make a new one?20:28
monteldeonteSamB: ?20:29
LarstiQmonteldeonte: if you intend to use it to interact with svn but didn't produce it with bzr-svn, I'd ditch it if you can20:29
monteldeontek kool20:29
monteldeonteLarstiQ: the old address for the branch was lp:noxbot now it is lp:~m.deonte/noxbot/main, how do i get that back?20:34
LarstiQmonteldeonte: lp:noxbot is a shorthand, lp:~m.deonte/noxbot/main looks like the expansion for that20:35
LarstiQmonteldeonte: if they no longer match, you can do `bzr pull --remember lp:noxbot`20:35
monteldeontewoo hoo!20:38
monteldeonteLarstiQ: So, when there is a change in the SVN, all i do is bzr pull and then bzr push?20:40
LarstiQmonteldeonte: as long as svn and local don't diverge, yes20:40
LarstiQmonteldeonte: if they do, you need `bzr merge`20:41
monteldeonteLarstiQ: Diverge?20:41
LarstiQmonteldeonte: SamB outlined a workflow for that20:41
LarstiQmonteldeonte: say if you commit something locally, and someone commits something in svn20:41
LarstiQmonteldeonte: neither is then anymore a strict superset/subset of the other20:41
monteldeonteWait, so if this guy commits on SVN,20:42
monteldeonteWhat do i do?20:42
LarstiQmonteldeonte: first, `bzr pull`20:42
monteldeontethen20:42
LarstiQmonteldeonte: then, if it says you need to use `bzr merge`, that20:43
monteldeonteOh, it will tell me?20:43
LarstiQmonteldeonte: as SamB said, I'd advise to keep one local mirror you only pull into, and only commit just before you synchronise with svn20:43
LarstiQmonteldeonte: yes20:43
LarstiQmonteldeonte: and use a local branch of that mirror to do actual work20:43
monteldeonteLarstiQ: OK, so when someone gets this branch, how do they update it?20:45
LarstiQmonteldeonte: just the usual pull/merge. Other than svn, are you familiar of how bzr works?20:47
LarstiQs/of/with/20:47
monteldeontenot really.20:48
LarstiQok20:49
monteldeonteLarstiQ: Wait, so will that other person have to have brz-svn installed?20:49
LarstiQmonteldeonte: if they interact only with your bzr branch? No.20:49
SamBmonteldeonte: only if they also want to pull from SVN20:49
SamBwell, merge is more like it20:49
LarstiQmonteldeonte: if they want to communicate directly with svn, then yes20:49
monteldeonteOK, so say someone downloads my branch. When i push to bzr, what do they do to get it?20:51
LarstiQmonteldeonte: bzr pull20:52
monteldeonteWill that pull from the SVN?20:52
LarstiQmonteldeonte: no, from the same location they got your branch20:53
monteldeonteshweet20:53
LarstiQmonteldeonte: In case you hadn't seen it yet, http://doc.bazaar-vcs.org/latest/en/user-guide/index.html20:53
LarstiQmonteldeonte: I have to go now unfortunately (well, drinking beer)20:54
LarstiQmonteldeonte: so good luck and I'll check in when I get back20:54
monteldeonteOk, thank you for your help20:54
monteldeonteI think i get it now20:54
monteldeonteOk, thansk20:54
LarstiQgood20:54
gioeleI cannot understand the wording of section 8.2.3: it first gives an example using 'svn-import', then says 'Here's the recipe from above updated to use a central Bazaar mirror:' adn then gives and example where svn-import is not mentioned21:18
gioelesection 8.2.3 == http://doc.bazaar-vcs.org/latest/en/user-guide/index.html#bzr-svn21:19
Peng_gioele: Well, use "bzr svn-import" to import all the branches from a repo. Use "bzr branch" for one branch.21:19
Peng_gioele: The end result is equivalent; svn-import just makes it easier to import multiple branches at once.21:20
gioelePeng_: from what I see the leading text should say "In addition to svn-import, also XXX can be used to create a central Bazaar mirror. Here is the recipe from above updated to use method XXX"21:24
Peng_Ehh. I don't have documentation paged into my brain.21:26
gioelePeng_: well, as I wrote, my comment was about the "wording" of that section21:27
Peng_I such at English.21:28
fbondHi.  I was just thinking -- there's been some talk of support for history editing on the ML.  Would it make sense at all to build this around shelve, instead of following the rebase model?21:46
fbondSome automation on top of shelve would get me just about everything I would want...21:46
mozmck_workI've used git just a little.  It looks like a git branch is about equivalent to a bzr tag - right?21:47
gioelein bzr help svn-layout there is an example of a custom repository layout. It uses a new section inside ~/.bazaar/subversion.conf. The example use "[203ae883-c723-44c9-aabd-cb56e4f81c9a]". How do I know which number should I put there for my repository?21:47
garyvdmmozmck_work: No - because a tag does not move forward when you commit.21:48
mozmck_workhmmm, what does that mean?21:48
dasha bzr tag is just a name for a revision21:49
mozmck_workI see.21:49
mozmck_workin git you can have say a release branch and the main dev branch "master"21:49
jocr!help21:49
ubottuHi! I'm #bzr's favorite infobot, you can search my brain yourself at http://ubottu.com/factoids.cgi - Usage info: http://wiki.ubuntu.com/UbuntuBots21:49
mozmck_workand change between them in the same working directory with a simple command21:50
dashmozmck_work: right. the normal bzr workflow is two separate dirs21:50
dashbut you can use 'bzr switch' if you really want to use the same working copy.21:50
mozmck_workthat was my next question!21:51
mozmck_workI don't know yet which I would prefer.21:51
mozmck_workif you have 2 branches I guess they can go in the same repository.21:52
dashthat's what repos are for21:52
mozmck_workthanks.  I'm slowly figuring it out - I think...21:54
jocrwhere can I find information about how bzr deals with merge conflicts. I haven't been able to find the right documentation yet.21:56
garyvdmjocr: what do you want to know?21:57
a_c_manyone know of any php libs or apps that can browse a bzr repro ?21:57
jocrI see a bunch of suffixes on files that had conflicts and I just wanted to know which file was what21:57
jocrsuffixes are like BASE or BASE.moved or OTHER21:58
Peng_a_c_m: This was discussed a bit on the mailing list recently.22:00
a_c_mPeng_: ahh cool any good conclusions, or is there somewhere online the mailing list is stored?22:00
Peng_a_c_m: The answer was "no", and yes, but I don't have a link handy. :P22:01
* Peng_ goes to eat.22:02
Peng_Sorry!22:02
a_c_mPeng_: shame :(22:02
fbondwindow goto (st22:02
fbondWhoops.22:02
jocr!BASE22:03
ubottuSorry, I don't know anything about BASE22:03
jocr!.BASE22:03
garyvdmjocr: sorry - I can find any docs - allthough I'm sure that there are.22:04
jocrthat's o.k. I'll keep looking22:04
garyvdm.THIS is the file from the branch that you merged into22:04
garyvdm.OTHER is the file from the branch that you merged from22:04
gioelejocr: bzr help conflicts22:04
gioele(in general bzr help topics is quite helpful)22:04
garyvdm.BASE is the version of the file that both branches have is common.22:05
jocrI see, I was starting to deduce all this but thanks for the help.22:07
jocrAnother question is if I get a version of the file that I want to keep, say the .BASE version do I delete the others and to bzr resolve to fix the conflict?22:07
garyvdmrm foo22:08
garyvdmmv foo.BASE foo22:08
garyvdmbzr resolve foo22:08
jocrI see thanks again. and thanks gioele, I'll read the help file here22:09
garyvdmAll though it's very unlikely that you want to keep the BASE22:09
garyvdmIf it's a binary file, you generally keep the THIS or the OTHER22:10
jocrno it's a source file with some different fixes in both versions22:10
jocrthat is the THIS and OTHER versions22:10
lifelessmoin22:30
RenatoSilvawhere can I see the source of builtins.tree_files(file_list)22:34
bob2bzrlib/builtins.py22:36
garyvdmbzrlib/builtins.py line 71?22:36
RenatoSilvabzrlib is at?22:37
garyvdmroot of bzr.dev22:38
RenatoSilvaI can't find it in bzr home22:38
RenatoSilvawhat is bzr.dev22:38
garyvdmTrunk of bzr22:39
garyvdmhttp://bazaar.launchpad.net/~bzr/bzr/trunk/annotate/head%3A/bzrlib/builtins.py#L7022:40
RenatoSilvawhat are the .pyd files?22:40
RenatoSilvagaryvdm: thanks22:40
RenatoSilvaI need to browse over the code22:41
RenatoSilvait's just bzr branch lp:bazaar/trunk, right?22:42
garyvdm bzr branch lp:bzr22:42
RenatoSilvaok22:44
RenatoSilvaDoes anyone suspect how can Programação become into Programa‡Æo?22:44
garyvdmThe text is bing decode in the wrong charset22:45
garyvdm*being22:45
RenatoSilvaIt's what comes from WorkingTree.id2abspath22:45
RenatoSilvaI'm trying stuff like  print u'Programação'.encode('latin-1').decode('cp850')22:46
RenatoSilvaWithout sucess, none of them lead to the above string22:46
dashtry removing the decode?22:46
dashit's probably just latin-122:46
lifelessRenatoSilva: python -c 'import bzrlib; print bzrlib.__path__' will tel you where bzrlib is being loaded from22:47
RenatoSilvadash: tried22:47
RenatoSilvadash: how can Programação become into Programa‡Æo?22:48
RenatoSilvadash: that's what I mean22:48
Peng_Is it a bad idea for multiple, completely unrelated projects to use the same file IDs?22:52
lifelessPeng_: it would be odd22:53
lifelessPeng_: not necessarily bad; why?22:53
RenatoSilvahum, what is this: http://bazaar.launchpad.net/%7Ebzr/bzr/trunk/annotate/head%3A/bzrlib/osutils.py#L112722:54
Peng_lifeless: bzr-git does it. I was just curious.22:55
RenatoSilvaHow can Bzr guess that the string is either unicode or utf-8 encoded?22:55
lifelessPeng_: it does?22:55
lifelessPeng_: what algorithm?22:55
RenatoSilvawhen it is str, it is not necessarily utf-8 encoded right?22:55
Peng_lifeless: It just uses the file's relative path.22:56
lifelessRenatoSilva: that function isn't guessing22:56
jelmerPeng_: Well, with some escaping22:56
Peng_jelmer: Oh.22:56
Peng_Hi jelmer. :D22:56
Peng_I guess you have to do that because Git doesn't have convenient repository UUIDs like svn?22:56
RenatoSilvalifeless: because the user should call it only for such cases?22:56
jelmerPeng_, right22:56
lifelessRenatoSilva: first it checks if it *is* unicode, and if its not unicode it expects to be given a utf8 str22:56
jelmerPeng_: And I could use the sha of the path or something like that22:57
lifelessRenatoSilva: yes, we use utf8 for our disk data structures22:57
jelmerPeng_, But that would just cause indirection because there wouldn't be a way to go from file id to path cheaply22:57
lifelessRenatoSilva: and we use that function when handling deserialisation from them22:57
RenatoSilvalifeless: so it *expects*, it should not be called for non-utf-822:57
lifelessRenatoSilva: thats right22:57
Peng_jelmer: Would it be possible to include the revision ID that introduced the file?22:58
Peng_bzr-svn does that, IIRC?22:58
jelmerPeng_: That would be possible, but expensive, and there's no point22:58
lifelessjelmer: does it prefix it with git: or something?22:58
lifelessjelmer: there is a point22:58
RenatoSilvalifeless: it seems the problem is in WorkingTree then22:58
Peng_lifeless: No prefix.22:58
lifelessjelmer: consider a repo with any projects; the per-file graph is often loaded in bulk by bzr (e.g. for annotate)22:58
RenatoSilvalifeless: http://bazaar.launchpad.net/%7Ebzr/bzr/trunk/annotate/head%3A/bzrlib/workingtree.py#L20422:59
lifelessjelmer: having the same fileid in many projects with do very odd things to the per-file graph size and index shape22:59
lifelesss/with/will/22:59
Peng_lifeless: Will it actually cause problems, though?22:59
Peng_lifeless: I mean, errors?22:59
RenatoSilvalifeless: it also expects utf-8 or unicode22:59
lifelessPeng_: it will cause slowness23:00
jelmerlifeless: if we have to include the revision sha in which a file was introduced it means different slowness23:00
jelmerlifeless, because we can't just fetch an arbitrary tree and know the file ids in it, we have to search history23:01
Peng_How does bzr-svn do it?23:01
jelmerPeng_: It searches history, and caches heavily23:01
Peng_jelmer: Why have bzr-svn and bzr-git do it differently?23:02
lifelessjelmer: tree-1 in the target will know, and it should be cheap to access23:02
lifelessjelmer: also, do you do rename heuristics at import?23:02
jelmerlifeless, we don't necessarily have tree-123:02
jelmerlifeless, we don't do rename heuristics yet23:02
jelmerlifeless, when we do, I agree it would make sense to start looking at this23:02
lifelessI suspect your file id allocation will mean you cannot do file rename heuristics :>23:02
jelmerlifeless, That's not a problem23:02
jelmerlifeless, We can't introduce rename heuristics without changing the mapping anyway23:03
jelmerlifeless: so if we have to change the mapping anyway, we might as well change the file id allocation23:03
lifelessok, good23:03
jelmerand introduce all of the infrastructure to deal with more complex file ids23:03
lifelessbecause, at the moment, bzr-git repos of all of ubuntu will behave terribly.23:04
jelmerPeng_: bzr-svn does roundtripping, bzr-git does not23:04
jelmerlifeless: right23:04
lifelessRenatoSilva: is WorkingTree.open() being called with a str, rather than a unicode ?23:05
lifelessbbs23:05
Peng_jelmer: Why doesn't bzr-git do roundtripping?23:05
jelmerPeng_: The effort hasn't been put in and there's no really good place to put the bzr metadata23:05
RenatoSilvalifeless: I'm trying to look at the right file, brb23:05
jelmerPeng_, The only real place is the git commit message, and that's a bit intrusive23:05
RenatoSilvalifeless: tree = WorkingTree.open_containing(default_branch)[0]23:06
lifelessdefault_branch should have been decoded by the command argument parser from your console encoding23:06
RenatoSilvalifeless: def tree_files(file_list, default_branch=u'.', canonicalize=True,23:07
RenatoSilvalifeless: tree, file_list = builtins.tree_files(file_list)23:08
Peng_jelmer: ok :)23:08
RenatoSilvalifeless: i.e. default_branch is '.' however the complete path is returned in output23:08
lifelessRenatoSilva: yes, that shuold all be fine; u'.' when passed to the file system means we get a filesystem encoding decoded cwd23:10
mathrickwho could give me some help with implementing rebase --interactive support?23:12
mathrickie. retroactive history shaping23:12
dashmathrick: evil23:12
mathrickdash: how else am I supposed to submit clean patches to projects?23:13
RenatoSilvalifeless: I think that the path comes from tree = WorkingTree.open_containing(osutils.realpath(file_list[0]))[0]23:13
dashmathrick: what's wrong with diff23:13
dashmathrick: i assume you mean non-bzr projects?23:13
mathrickdash: I mean bzr projects23:14
lifelessRenatoSilva: it could as well, yes.23:14
mathricknon-bzr ones of course get plain diffs23:14
dashmathrick: then why would it matter?23:14
dashmathrick: send a bundle23:14
lifelessRenatoSilva: are you on windows?23:14
mathrickdash: then I can't split them into featuresets and comment each one in a separate mail23:14
mathrickwhich is the preferred form for very many projects23:14
mathrickincluding, I believe, bzr :)23:15
dashmathrick: why'd you do multiple features in a single branch? :)23:15
lifelessmathrick: its nice to get clean featuresets; its more important to get patches though :)23:15
mathrickdash: no, it's for bigger patches implementing a single feature / set of related features23:15
dashI just finished breaking up a gigantic change into about 5 separate feature sets23:15
dashbut i used loom and it's for syncing one SVN repo to another23:16
RenatoSilvalifeless: yes23:16
RAOFYou could do that with bzr merge cherrypicking, assuming each commit contains a single feature.23:16
lifelessRenatoSilva: what bzr version do you have?23:16
pooliehello all23:16
dashmathrick: right, that sounds like a mistake to me23:16
mathrickdash: howso?23:16
RenatoSilvalifeless: I think that there may be a problem in http://bazaar.launchpad.net/~bzr/bzr/trunk/annotate/head%3A/bzrlib/osutils.py#L112723:16
lifelesshi poolie23:16
lifelessRenatoSilva: what bzr version are you using?23:17
dashmathrick: I don't see the problem with one branch and one merge per feature23:17
RenatoSilvalifeless: ignore the line please, I mean realpath method23:17
mathrickdash: the point is that a single feature should be multiple patches when it's big enough23:17
dashmathrick: yeah, i don't really believe that23:17
mathrickbut it happens23:18
mathrickcase in point, wine's DIB engine23:18
dashheh23:18
mathrickthey have specifically rejected patches which did that as a single "all-in-one" dump before23:18
RenatoSilvalifeless: 1.1523:18
lifelessmathrick: what dash is saying is that you should do each component in a separate branch23:18
RenatoSilvalifeless: in tree = WorkingTree.open_containing(osutils.realpath(file_list[0]))[0]23:18
lifelessRenatoSilva: please try bzr 1.1623:19
RenatoSilvalifeless: something is going wrong...23:19
lifelessbialix recently changed the command interpreter to decode all arguments to unicode23:19
lifelessfor problems like that23:19
mathricklifeless: but that's not how it happens. That's precisely the point, I can't know what I will end up implementing before I start23:19
RenatoSilvalifeless: is there a windows installer for 1.16?23:19
dashmathrick: waiting until all your changes are done seems like a poor time to break stuff up23:19
lifelessRenatoSilva: I don't know, have a look :)23:19
lifelessmathrick: I know, and I agree.23:19
dashmathrick: i'm not saying you have to know before you start23:20
lifelessmathrick: we want tools to do this; that doesn't actually imply rebase though it can be used if you haven't published your code.23:20
mathricklifeless: I only used the shorthand because that's where it is in git, which is well-known23:20
dashjust that once you know, put your unrelated changes into a different branch :)23:20
lifelessI wrote a manifesto about this a few weeks back23:20
mathrickI don't want to imply it should be inside bzr rebase23:20
mathricklifeless: link?23:21
mathrickand that's exactly what I want, to give tools23:21
RenatoSilvalifeless: downloading...23:21
lifelessmathrick: https://lists.ubuntu.com/archives/bazaar/2009q2/059263.html23:21
lifelessbreakfasting23:21
mathrickdash: the historical patch order is never the same as logical. Forgotten files and stupid typos happen. I want tools to be able to reshape that easily, instead of devolving to a bunch of dirs with branches and fighting with diff23:22
mathricklifeless: oh good, that seems interesting. I was actually wondering myself about being able to edit it without losing the actual patches as they happened23:23
dashmathrick: and my point is that the historical patch order is also important, and some people are altogether too eager to destroy that. :)23:23
mathrickdash: that's another problem that needs solving, not denying the problem #1 doesn't exist23:23
mathricks/doesn't//23:23
mathrickalso, it should help / interplay with how I wanted loom to work (as opposed to how it actually works today(23:24
dashmathrick: I just think the prevalence of that particular problem is overstated23:24
RenatoSilvainstalled but the same error: bzr xmlstatus > file is returning <?xml version="1.0" encoding="UTF-8"?><status workingtree_root="C:/Programa‡Æo/"></status>23:24
mathrickdash: I don't think so. If I want to present patches in a logical order, my VCS gives me absolutely no tools above diff. That's not the brave new world we were supposed to have with DVCS23:25
dashwho says? :)23:25
mathrickit's silly that it's distributed and facilitates the exchange easily except for when you want to send patches by email and discuss them23:26
mathrickdash: says what?23:26
dashmathrick: what we were supposed to have23:26
mathrickdunno. I see a problem the tool fails to solve23:26
RenatoSilvalifeless: maybe C:/Programa‡Æo comes from encoding as cp1252 when it's expected cp85023:26
mathrickcan we retroactively send brimstone upon the inventors of codepages?23:27
RenatoSilvalifeless: something in the chain guess that it should be cp1252, but it should not according to chcp command. If I run chcp 1252 before it, then the file chars are ok23:28
dashmathrick: if we could, it would have already happened23:28
mathrickdang23:28
RenatoSilva* is guessing23:28
=== omichael is now known as omichael_afk
RenatoSilvamaybe the problem is here http://bazaar.launchpad.net/%7Ebzr/bzr/trunk/annotate/head%3A/bzrlib/osutils.py#L105823:34
=== omichael_afk is now known as omichael
mathricklifeless: I don't understand the "Integration" section23:42
lifelessis the file on disk encoded in cp1252/23:47
lifeless?23:47
lifelessRenatoSilva: ^23:47
lifelessRenatoSilva: please file a bug about this; it could be a bug in bzr-eclipse, xmloutput or bzr, or even just a wrongly encoded filename on disk23:48
RenatoSilvalifeless: yeah, it could be a bug in many places hehe23:52
RenatoSilvalifeless: the file is created by > as latin-1, which is covered by cp1252 afaik23:53
RenatoSilvalifeless: there no workaround to do, unless there is a way to make an _actual_ encoding conversion23:56
RenatoSilva* there is23:56
RenatoSilvaWorkingTree.id2abspath is returning an unicode string from a non-utf-8 encoding23:56
RenatoSilvathe terminal expects to receive a cp850 output, and treats it as that, then put that in file23:58
RenatoSilvawell, actually it is cp85023:58

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