/srv/irclogs.ubuntu.com/2011/04/18/#bzr.txt

=== r0bby is now known as robbyoconnor
=== poolie_ changed the topic of #bzr to: Bazaar version control <http://bazaar.canonical.com> | try https://answers.launchpad.net/bzr for more help | http://irclogs.ubuntu.com/ | Patch pilot: jelmer
poolie_i'm going to finish a coupel of the pending ones though00:42
lifelesspoolie_: btw, the subtree detection stuff would mean that adding files in a subtree will require changes to status to support it.00:50
poolie_true00:52
lifeless(no opinion on desirability, just flagging the impact)00:52
poolie_i'm not going to do it now00:52
poolie_it will need some careful testing00:53
poolie_today after piloting some stalled bzr things i hope to work on the incoming mail feature flag for dkim configuration00:53
lifelesscool00:53
spivGood morning folks01:24
poolie_hi spiv01:29
bradmpoolie_: removing the hardy chroot on pqm slipped until today, removing it now unless I hear screaming otherwise. :)01:32
* poolie_ does not scream01:32
poolie_oh for interest, i submitted back-to-back merges the other day and the run time was pretty stable at 40m01:33
evantonI have a bzr repo retrieved by "bzr branch" command. How to I change the working directory to a certain revision? Doing bzr checkout -r x yields a file exists error for .bzr04:16
poolie__evanton: 'bzr update -r whatever'04:16
evantonoh, it's update in bzr04:16
evantonpoolie__: thanks, I'll read the help for update now04:16
poolie__checkout makes a new checkout04:17
poolie__update updates an existing working tree from the repositoyr04:17
evantonpoolie__: I'm just used to switch revisions using checkout in another DVCS04:17
=== poolie__ is now known as poolie
pooliei'm going to look at https://bugs.launchpad.net/bzr/+bug/76418804:29
ubot5Ubuntu bug 764188 in Bazaar "test_report_bug_legacy fails on trunk" [Critical,Confirmed]04:29
pooliehopefully shallow04:29
poolieok04:30
pooliedoctestmatchers really do kind of suck04:31
pooliei think it was broken by wordwrapping04:31
spivWow, that's a difficult error to parse04:32
pooliethat's another bad thing about it04:35
poolielaunchpad wrapping it again is not helping04:35
pooliehow are you?04:36
spivPretty good.  I've got a touch of the cold V had, but so far only a touch of it.04:40
spivI've got to the point of having some failing tests for the pack concurrent writes04:40
poolieoh, nice04:41
spivOh, and http://twistedmatrix.com/trac/ticket/5011 has gone through another round of review and improvements.04:41
pooliehopefully clean non-thread-based tests?04:41
spivYes :)04:41
pooliereview pls? https://code.launchpad.net/~mbp/bzr/754188-apport-test/+merge/5806404:51
spivReviewed (and approved)04:59
pooliealmost needs a tag +should-have-known-better04:59
=== 16WAAA4BV is now known as wallyworld1
pooliespiv i thought there was a function to raise knownfailure when a particular assertion fails06:26
pooliebut i can't find it06:26
poolieoh maybe in testtools06:26
poolieyes it is06:26
pooliehm so bellany running make check is about twice as slow as a buildd building the whole binary package (including make check and other stuff)09:35
pooliemaxb: i added some stuff to http://wiki.bazaar.canonical.com/DailyPpaStatus#preview and i think fixed the trunk builds09:36
jamhi poolie09:40
jampoolie: so the buildd is significantly faster than our pqm... interesting09:40
jamso we should be submitting it to buildd first09:40
jam:)09:40
poolie:)09:41
pooliethere is a drawback that you may wait quite a while to actually _get_ to build on the buildd09:41
poolieif you include that, it's probably slower09:41
poolieanyhow, it broke a little bit and i think now it's ok again09:43
pooliedid you ever touch the rules code?09:43
spivI've touched it very slightly.09:47
poolieit seems like we need a better api than an iterator of every relevant value09:57
pooliesurely you normally just want one?09:58
pooliei think i'll take a detour to do it09:58
=== nixness is now known as foocraft
rom1Hi all10:42
rom1Is there a way to ignore tabs and spaces conflicts while merging ?10:43
jamrom1: not that I know of. Though if there were conflicts, what would you put in the output?11:56
rom1jam: well, in fact, it is to avoid that it produces conflicts (for instance in java or c programs). I have noticed some reported conflicts with bzr-builder from spaces versus tab.11:57
rom1But i will have a look at the content-filters i guess11:58
jamrom1: sure, I understand the concern, but what do you actually put since they disagree on what the content would be11:58
jamrom1: using content filters you can help enforce the form stored in the repository. However, merging is done on the repository form, AIUI11:58
jamso existing content won't be helped11:58
rom1in my idea, i keep lines from OTHER11:59
jamrom1: I know you can create a custom merge function, too11:59
rom1thx jam, i gonna have a look at that12:00
=== mrevell is now known as mrevell-lunch
=== mrevell-lunch is now known as mrevell
=== Ursinha-afk is now known as Ursinha
cheaterhey guys14:35
cheaterhow can i check out only a specific subdir of a repo?14:35
rom1cheater : you cannot. You can only checkout the whole repository14:37
cheaterhmm14:38
rom1Revisions are revisions of repository and not revisions of files as in svn or cvs14:38
cheatergotcha14:38
fullermds/repository/branch/ to be precise.14:38
cheaterthat's fine with me, i just want the file system to only have just that subdir14:38
fullermdThere exist 'views', which are a primitive that could be used toward building such a thing.  But nobody's done it.14:38
cheateri wish bzr would keep the whole repository just in .bzr somewhere14:38
cheaterfullermd: aha14:39
briandealwisGreetings.  Does anybody know of a way to rename a pipeline?14:53
jelmerbriandealwis: pipes basically work by setting next_pipe / prev_pipe in branch.conf14:54
briandealwisah, thanks jelmer — I hadn't started poking14:54
jelmerbriandealwis: so if you rename the branch dir and update those settings in the previous and next pipe you /should/ be fine (I haven't tried)14:54
briandealwisjelmer: yup, that seemed to work.  Thanks!14:56
jelmerjam: having fun with trees and inventories too ?15:41
gypsymaurohi, how can I tell bzr to exclude some extensions?16:52
jelmergypsymauro: you can uninstall them or set the BZR_DISABLE_PLUGINS env variable16:54
jelmergypsymauro: why do you want to disable some plugins?16:54
gypsymauroI mean file extensions for example I qant to forgive .log or .ini files16:55
briandealwisgypsymauro: read up on the .bzrignore file17:00
gypsymaurotanx briandealwis :D17:14
=== deryck is now known as deryck[lunch]
=== tremolux_ is now known as tremolux
=== deryck[lunch] is now known as deryck
=== beuno is now known as beuno-lunch
=== beuno-lunch is now known as beuno
=== imback is now known as JasonO
ablmf333I'm using bzr to work with svn repository.  Today suddenly I found I can not correctly update it by "bzr update"22:16
jelmerablmf333: can you elaborate?22:17
ablmf333When I try to commit, I got " bzr: ERROR: Bound branch BzrBranch7(file:///home/peter/Work/repo/cms/) is out of date with master branch SvnBranch('svn+ssh://peter.cai@svn_repo/sites/svn/cms/site/branches/sprints/V000006').22:17
ablmf333But when I run "bzr update", I got "Tree is up to date at revision 296 of branch svn+ssh://peter.cai@svn_repo/sites/svn/cms/site/branches/sprints/V000006"22:18
ablmf333I found similar problem this afternoon, so I removed local repo and re-checked out the code.22:19
ablmf333But again, I met this problem.22:19
ablmf333svn works fine.22:19
jelmerablmf333: what version of bzr-svn are you using?22:19
jelmerablmf333: what does "bzr missing" report?22:19
ablmf333bzr missing says "bzr: ERROR: No peer location known or specified."22:19
jelmerablmf333: and with the master branch specified?22:20
ablmf333bzr-svn version : svn 1.0.5dev22:20
ablmf333   Support for Subversion branches22:20
ablmf333bzr missing .22:21
ablmf333Branches are up to date.22:21
jelmerablmf333: did you commit any merges recently?22:21
ablmf333Yeah, I pushed some changes.  Then I got found local repo could not correctly update.  So I re-checked out.22:22
ablmf333So my earlier commits messed up the repo on svn?22:22
jelmerablmf333: you did "bzr push" to push changes, rather than committing to the checkout?22:23
jelmerdid any of those involve merges?22:23
ablmf333Yeah, it used to work fine.22:23
ablmf333Yeah, I remembered I merged from trunk.22:23
ablmf333Did some revision on branch.22:24
ablmf333Push22:24
jelmerthat's probably what triggered it. Recent versions of bzr-svn should cope with this better.22:24
ablmf333Then I found local repo can't update anymore.22:24
jelmerIs there any reason you're using an snapshot rather than a release?22:24
ablmf333You mean bzr-svn?22:24
jelmerablmf333: yeah22:24
ablmf333Can't really remember.22:24
ablmf333I will try a release version then.22:25
jelmerI don't think a release will work better, the related fixes are only in newer snapshots22:25
ablmf333jelmer: So should I try a snapshot of bzr-svn?22:27
jelmerablmf333: you're already running a snapshot, but a fairly outdated one.22:27
jelmer("dev" in the version string indicates it's a snapshot rather than a release)22:28
ablmf333k, I will try to find a newer snapshot22:28
ablmf333jelmer: I checked out bzr-svn by "bzr co lp:bzr-svn"22:34
ablmf333Is that right?22:34
jelmerablmf333: yep22:35
=== Droid is now known as Guest66278
ablmf333then I coped it to "/home/peter/.bazaar/plugins/"22:36
ablmf333but "bzr plugins" still tell me it's 1.0.5dev22:36
jelmerit should say 1.1.0dev22:41
jelmerablmf333: you need to rename it 'svn' rather than 'bzr-svn'22:41
ablmf333jelmer: thanks. I got it, but new problem: cannot import name CommittedQueue22:41
ablmf333Unable to load plugin 'svn' from '/home/peter/.bazaar/plugins'22:41
jelmerablmf333: what version of subvertpy does ~/.bzr.log say you have?22:42
ablmf333let me check22:42
ablmf333In [2]: subvertpy.__version__22:44
ablmf333Out[2]: (0, 7, 5)22:44
jelmerablmf333: that's too old; the newer bzr-svn requires subvertpy 0.8.0. It should warn about this, I'll check why it doesn't.22:45
ablmf333jelmer:  0.8.0 of subvertpy reports "Unable to load subvertpy extensions: No module named client"22:51
ablmf333jelmer: Oh, I see, that's because I am still in subverpy source code dir22:52
jelmerablmf333: subvertpy has a C extensions that need to be built22:52
ablmf333jelmer: opos, svn plugin crashes : http://pastebin.com/TtG9MRyR22:55
jelmerablmf333: that's because your subvertpy is too old22:55
jelmerhi poolies :)22:56
pooliehi jelmer :)22:59
pooliehow are you?22:59
pooliethanks for the review22:59
pooliei'm going to try to finish off sergei's patch today22:59
pooliea full version with tests and docs will be a bit more than 5 lines or whatever it was23:00
jelmerpoolie: very well, thanks :)23:00
jelmerpoolie: is that his patch related to diff ?23:01
=== Ursinha is now known as Ursinha-afk
poolieyes, to showing the function name23:03
=== wizonesolutions2 is now known as wizonesolutions
poolieyou're pp this week btw23:08
pooliei should read vila's patches too...23:10
jelmerpoolie: Yep23:12
knighthawkI'm trying to break a lock but I seem to be doing something wrong. when I try to run bzr pull on a svn-import23:14
knighthawki'm getting23:14
jelmerablmf333: lp:bzr-svn should now warn properly on older versions of subvertpy23:14
ablmf333jelmer: Ah, now the problem seems to be bzr is too old23:15
jelmerablmf333: what error are you getting?23:15
knighthawkUnable to obtain lock file:23:16
ablmf333http://pastebin.com/C2mK7cBP23:16
jelmerablmf333: I've pushed a fix, can you try again?23:18
ablmf333jelmer: k23:18
knighthawkI think I may have figured it out.23:19
ablmf333jelmer: k, the plugin work.  But it doesn't solve my original problem - I can't commit23:22
ablmf333It asks me to update, but when I update, it says my repo is up to date.23:22
knighthawkI think I'm missing a step when working with a central svn server.23:23
sven_oostenbrinkQuestion.. Whenever I have 2 repos with a shared history, they are synced, and then I modify file "a" in repo "a" and file "b" in repo "b".. Now, when I want to pull repo "a" into "b", I have to perform a merge.. Since different files were modified, it basically could have been like file "a" and file "b" were modified in repo "b".. Isn't it possible to make push/pull like this that merge without problem just possible without having to merge? and only23:23
sven_oostenbrinkin case that there is a conflict, that a merge is required? it would shave off some of the needed work...23:23
jelmerablmf333: do you have any pending merges?23:25
fullermdsven_oostenbrink: No, because you don't merge files; you merge revisions.  And you have new revisions in both sides.23:25
ablmf333jelmer: Yes.23:25
jelmerablmf333: (the last few lines of "bzr status" should show you)23:25
ablmf333I have some pending merges23:25
ablmf333that's why I need to commit23:25
jelmerablmf333: is your current head the same as the head of the master branch, or is the pending merge the current master branch?23:26
knighthawkSo far I've been able to do a svn-import and create a branch. Next I was able to pull from the central svn repo into my local repo (where I don't have a working tree) next I guess I want to my branch with the repo ( my head isn't getting how to do that without a working tree). But where i'm *most* confused with is how do I push back up (assuming I did all my actual work in my branch wich points to the repo)23:26
ablmf333jelmer: thx, but I will use svn for this now.  It already wasted me too much time.23:27
jelmerknighthawk: you can either create a working tree in the branch that was created by "bzr svn-import", or you can create a clone of that branch with a working tree23:27
jelmerknighthawk: you can use "bzr push" to push your changes made in the local branch back to svn23:28
knighthawkjelmer when I ran bzr branch did it create a clone of the branch in the repo or do I need to use a different command to have my pushes go up?23:29
jelmerablmf333: It'd be great if we can narrow it down a bit so I can fix the bug in bzr-svn23:29
jelmerknighthawk: I'm not sure I follow, what sort of "bzr branch" command did you run?23:30
ablmf333jelmer: I've delete the repo folder.  But I still have another one that couldn't update correctly.23:30
ablmf333That one when I run update, it says it's up to date.23:30
ablmf333but it's different from what is on svn23:30
ablmf333jelmer: What do u want to know?23:31
jelmerablmf333: so "bzr up" doesn't update to the actual last revision in svn?23:31
ablmf333yes.23:32
jelmerablmf333: are there any merges involved?23:32
knighthawkjelmer so after I did the init bzr svn-import (I didn't really want a big working tree in that dir) I ran 'bzr branch ' into another dir. I've been calling that my working tree. I've been doing my work their. Then thought the workflow I needed was to update my "working tree" to what's in the svn repo to go into my local repo(created for svn-import) then run a pull there and merge that with my branch with my working tree23:32
ablmf333jelmer:  The story is : 1) i merged trunk to branch.  2) work on branch 3) push back to trunk.  4) trunk couldn't update anymore.23:32
jelmerknighthawk: you should be able to just run "bzr push <svn-url>" from wherever you've been working23:33
knighthawkah thanks jelmer23:33
ablmf333jelmer: That makes me can't not fetch some reversions on server.23:33
jelmerknighthawk: is the trunk you're trying to update a svn working copy or a bzr checkout?23:34
knighthawkI'm going to say a svn working copy.23:35
jelmerknighthawk: sorry, that was for ablmf33323:35
knighthawkah23:36
jelmerablmf333: is the trunk you're trying to update a svn working copy or a bzr checkout? (iow, does it have a .svn or a .bzr dir?)23:36
ablmf333jelmer: It's a bzr checkout.  I used 'bzr co svn_ssh://....."  to check out.23:36
jelmerablmf333: thanks23:37
jelmerablmf333: what do you mean with push back to trunk exactly? "bzr push svn+ssh://.../trunk" ?23:39
ablmf333jelmer: No, I created a branch by `bzr branch trunk_dir branch_dir`23:39
jelmerablmf333: you mentioned you push the work you did on the branch back to trunk; what did you do to do that exactly ?23:40
ablmf333in 'branch_dir' I run 'bzr push :parent'23:41
ablmf333Apparently, those changes I made on branch is committed to svn.23:41
ablmf333But the problem is, after that, the trunk is not able to synchronize to svn server anymore.23:42
jelmerablmf333: thanks, I think I've narrowed it down23:43
jelmerablmf333: so "bzr log" doesn't show the revision that was pushed?23:45
knighthawkIs this a fix everyone is going to need? (he asks just before pushing to his svn trunk)23:45
jelmerknighthawk: which fix?23:45
knighthawkwhat's going on with ablmf333, when you said you' narrowed it down it sounded like you were fixing something. but I see now that may not have been how you meant it.23:46
jelmerablmf333: sorry, "bzr log" in the trunk doesn't show the revision that was pushed?23:46
jelmerknighthawk: no, that's related to "bzr push" to a branch bound to a svn branch23:46
jelmerknighthawk: you're not using bound branches at all23:47
knighthawkk thanks23:47
ablmf333jelmer: bzr log show the are pushed.  But one single file is different to svn sever, even if bzr tells me the working copy has not changed.23:47
jelmerablmf333: different as in not yet updated?23:48
ablmf333jelmer:  Yeah.  I can't update that file to its newest version.23:49
ablmf333I can not see one svn reversion someone else made.23:49
jelmerablmf333: revisions that have happened on the svn trunk since the push of your revisions ?23:50
ablmf333jelmer: I can't really tell because I've removed the bzr repo.23:50
ablmf333jelmer: but let me check.23:51
ablmf333jelmer: maybe I can find it by svn23:51
ablmf333jelmer: It's a reversion before I pushed.23:54
ablmf333I should have merged it to my bzr branch this morning.23:54
ablmf333But somehow it was lost.23:54
ablmf333And I can never get it back anymore23:55
jelmerablmf333: thanks, that helps23:55
jelmerablmf333: I think I've also reproduced the commit issue23:55
ablmf333jelmer:  Great, at least my bad luck might help someone else.23:56
ablmf333jelmer: Is there anyway to avoid this problem?23:56
ablmf333jelmer:  Should I avoid using push on svn?23:56
jelmerablmf333: the commit issue is something I'm looking at fixing now23:57
sven_oostenbrinkfullermd: I know I merge revisions, not files.. But wouldn't it be nice if.. bzr could recognize that the revisions could be merged without problem? And then just pull, merge automatically, and commit... just with bzr pull?23:57
jelmerablmf333: the second one is already fixed (between 1.0.5dev and 1.1.0dev) and can be avoided by fetching into a clean bzr repository from svn23:57
ablmf333jelmer: k, I will try it tomorrow and let u know the result.23:58

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