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

igc1morning all01:11
pooliehello igc101:13
poolieigc1, maybe we could do a blog post together about news in explorer some time?01:14
=== igc1 is now known as igc
igchi poolie01:15
igcpoolie: that would be good. I'm pretty close to calling it 1.0beta fwiw01:16
poolieigc: re the 'evaluation' thread, how about if i make init warn you when it's making a standalone repository?01:18
poolieor maybe even fail, would that be too harsh?01:18
pooliei guess init and branch would need to do this01:18
lifelessI believe init-repo reports the format of what it made today.01:19
lifelessmaking init do the same wouldn't be horrible; and you could fold that in reasonably tastefully I suspect01:19
igcpoolie: I'm yet to see that email sorry. Ask me again later today :-)01:20
poolienp01:42
lifelesspoolie: another example of the project-priority != dev priority mismatch: for doc folk, sorting some doc bugs to high and low may be very useful, even if for the project all doc bugs are low.02:04
lifelesspoolie: I'm starting to think personal[inc teams]-annotation of bugs would be a really useful feature.02:04
pooliemm02:04
poolieyes02:04
lifelesse.g. the launchpad-bazaar folk could annotate the bugs they care about as critical etc; bzr devs could choose to see that, or ignore it.02:05
poolieyes i see02:05
lifelessit would give you the 'I care about this bug' thing you like to do too. mmm could perhaps trial by having the doc team tag with doc-high, doc-low etc02:06
* igc lunch02:57
lifelesstime to pickup my passport03:14
Kamping_Kaiser:)03:15
distaticaIs the diff utility that is called by qdiff specific to bzr? It's an excellent tool, and I'd love to use it elsewhere besides bzr repos.03:50
spivdistatica: to be precise, it's part of the qbzr plugin for bzr.03:52
distaticaYeah, that's what I'm thinking.. is there any way to run it on it's own?03:52
spivdistatica: I haven't looked closely at the source, but it's probably not too hard to take that part and make a standalone program of it.03:53
distaticaWhat language is that stuff written in? do you know?03:53
spivdistatica: although for non-bzr diffing I'd probably use an existing graphical diff tool like meld.03:53
distaticaThe part i would probably be working with.03:53
spivdistatica: Python03:53
distaticaoh, then I have a hope in hell. :)03:53
distaticanever tried meld, will check it out. So far the best tool I have used is the qbzr one.03:54
spivdistatica: basically all of bzr and its plugins are Python.  (There are some optional C and Pyrex extensions for speed, but you wouldn't need to touch those for this.)03:54
distaticaI had heard that it was python, but wasn't sure. I'm glad for that, Python is a good language.03:55
distaticameld looks pretty good too, thanks03:55
spmspiv: Ooo. Ta! meld is *nice*. been using kompare myself, meld looks that little bit better. ta x 2.03:58
spivspm: heh :)03:59
spmthe big win was the in each line highlight of the differences. some of our changes in configs can have (not pointing fingers at PQM, much) horrible regexs. and picking up the diff can be... hard. :-)04:00
distaticaPretty decent, I don't know if it's quite up to the qbzr version, but it's good anyways.04:00
shakaranHi, how I can count the added/removed lines between 2 commits?04:29
RAOF“bzr diff -r$OLD..$NEW | diffstat” would work.04:30
shakaranRAOF: thanks, works perfect!04:33
pooliespiv, igc, lifeless, hi05:16
poolie(and anyone else) can you please test installation of bzr from karmic-proposed05:16
poolieif it works ok, please comment on https://bugs.edge.launchpad.net/ubuntu/+source/bzr/+bug/43762605:16
ubottuLaunchpad bug 437626 in bzr "[sru] exceptions.AssertionError: second push failed to complete a fetch set" [Undecided,Fix committed]05:17
spivpoolie: done05:28
pooliethanks05:36
pooliespiv, excuse my bad memory, but did you do something generic about hiding exceptions during cleanup05:58
poolieand if so what?05:58
pooliei'd like to use it in bug 42301505:58
ubottuLaunchpad bug 423015 in bzr-svn "svn-import raises KeyError on large repository" [Undecided,New] https://launchpad.net/bugs/42301505:58
spivpoolie: see the bzrlib.cleanup module05:58
pooliethanks05:59
spivpoolie: also either one of my unreviewed merge proposals ;)05:59
poolie:)05:59
* spiv -> afk for 10 minutes05:59
ChrisMorganI created my branches in a shared repository, but now I'm into another problem; I have branches for [company].[module] and [company].clients.[whatever], but I really need a basic one for just [company] so I can put my __init__.py file in there - can I do that without causing trouble determining which branch things belong to?06:46
lifelessChrisMorgan: sure06:51
ChrisMorganHow about if I create a new file in one of the subdirectories which has its own branch - will it show up as 'unknown' in the parent branch?06:52
ChrisMorganIt's saying 'unknown' for the sub-branches... ignore?06:53
lifelessigc: I really wish you could explain how heavyweight checkouts != bound branches - it confuses the hell out of me when you say that07:03
lifelessChrisMorgan: up to you07:03
ChrisMorganOr can I do something with join/split stuff?07:03
ChrisMorganI'm confused :-)07:04
lifelessChrisMorgan: what are you trying to do07:04
ChrisMorganI have a parent directory squiggle.  There is a repository in it.  There are lots of branches in subdirectories, squiggle/foo, squiggle/bar, etc.  There would be no need to have a branch in squiggle, except for the fact that Python requires a file __init__.py... so I need another branch in squiggle.07:05
ChrisMorganHowever, bzr status squiggle then goes not knowning about foo and bar07:05
ChrisMorganUpps, got to go now, I'll stay in the room though if you can help me? :-)07:06
lifelessif foo and bar are branches bzr st shouldn't mention them.07:06
lifelessare you sure they are branches?07:06
lifelessyou might try pastebinnning the command + output.07:06
igclifeless: well I did try to explain the differences in https://lists.ubuntu.com/archives/bazaar/2010q1/065891.html07:08
pooliespiv: big one approved07:12
spivpoolie: thanks!07:12
igcpoolie, lifeless, vila: wrt my disable plugin patch, should I remove support for an explicit path and just support 'disable' (or '') for disabling them?07:13
lifelessigc: I would be happiest if you just did disable for now07:13
lifelessvila and I can try to get what poolie is concerned about in strasbourg07:14
poolie(phone)07:14
igclifeless: so the feature you and vila are working on will miss 2.1?07:15
lifelessigc: I'm a) sick, and b) working on dx-team stuff, and then lca and then strassbourg07:15
igclifeless: I really don't need the path stuff but my patch might be a stop gap until your stuff lands?07:16
igclifeless: but I personally only care about disabled vs otherwise07:16
lifelessigc: I know that your path stuff won't help any of the use cases I've seen for automated stuff in this area07:16
lifelessigc: so I'm not sure who it would be stop-gapping for07:16
igclifeless: only someone with a plugin both system installed and locally installed - picking the former over the latter07:17
* vila needs to bring his car to the garage and will be afk for ~1 hour07:20
vilaigc: but regarding plugin stuff, as said in my mail, 1) using config vars is not a good idea, 2) using PZR_PLUGIN_PATH to disable is not trivial and I'm not working on it right now07:22
poolieigc, i don't have any strong objection to being able to set the path there07:26
pooliei'll look at the patch again07:26
pooliespiv, how about just always logging cleanup failures?07:27
poolieoh07:27
poolienm, i misread it07:27
lifelesspoolie: vila and I have concerns though. Can we land igcs disable-only version of the patch ?07:28
pooliedoes that exist now?07:30
pooliei think vila's final comments in https://code.edge.launchpad.net/~ian-clatworthy/bzr/411413-plugin-disable/+merge/16719 are reasonable07:30
pooliehowever incremental improvements are also good07:30
lifelessigc has implied that it did in the past or is at least trivial to get to.07:30
igcpoolie, lifeless: I don't have a version yet that does disable only. It's a one line code change I suspect.07:32
igcpoolie, lifeless: tweaks the doc changes in my patch is the larger part if that's the direction to go07:33
igctweaking07:33
lifelesspoolie: quick call?07:34
igcpoolie, lifeless: the broader Q was a conceptual one: should I 'remove' functionality from the patch given there's no alternative likely soon?07:34
igcwrt specifying an explicit plugin when multiple are installed07:35
ChrisMorganlifeless: yep, they're branches alright, but with no commits yet - should I commit to them?07:35
poolielifeless: sure07:37
ChrisMorganlifeless: bzr init-repo foo, bzr init foo/bar, bzr init foo, bzr st foo: unknown: bar/07:38
ChrisMorganCommit an unchanged revision to foo/bar and st foo still shows unknown bar07:39
ChrisMorganI also tried the split / join --reference stuff as at http://wiki.bazaar.canonical.com/NestedTreesDesign#creating-a-nested-tree and I'm still getting the unknown status on bar07:44
lifelessChrisMorgan: don't touch split/join07:45
lifelessChrisMorgan: its not production ready07:45
ChrisMorganOK, I was just testing it as that was what was detailed in the page.07:45
ChrisMorganI figured it wasn't ready seeing as it didn't work :P07:45
lifelessChrisMorgan: you probably want to do bzr ignore ./bar07:47
ChrisMorganOK then.  Or I could resort my structure... thinking about it more I don't need the clients stuff in the main branch... I'm not going to want to be able to `import myproj.clients.whatever`...07:48
ChrisMorganSo I think I'll actually separate it one level more in the repository.07:48
ChrisMorganThanks.07:48
ChrisMorganUh... can I "uninit"?07:49
igcpoolie, vila, lifeless: I've replied to vila's comment on my patch now07:49
ChrisMorganI've run init-repo and init in the same directory, can I go back to just the repo rather than the branch as well, or should I just scrap all my .bzr directories and start clean again?07:50
lifelessChrisMorgan: if you delete .bzr/branch and .bzr/checkout then you'll have what bzr init-repo created08:09
* vila back08:19
* igc dinner08:26
bialixhello all08:28
bialixigc is here?08:28
lifeless19:26  * igc dinner08:32
lifeless19:28 -!- bialix [n=chatzill@163-106-113-92.pool.ukrtel.net] has joined #bzr08:32
bialixthanks lifeless, and hi08:32
lifelesshi :)08:34
mathrickhiya, I have a repo (my thesis) where I started some work (library bindings) which I now want to split out into a standalone branch. But I don't want the intial commits to the thesis files to show up in the bindings' history09:40
mathrickthe commits look like that: 1..3 thesis, 4.. bindings09:40
mathrickso in essence I want to remove commits 1..3 from the history09:41
mathrickwhat's the best way to do that?09:41
mathrickthe changes are textually independent, and all bindings work happened in a subdir I bzr split out09:41
bialixfast-import-filter09:55
mathrickbialix: thanks, lemme try that10:08
ChrisMorganlifeless: thanks, I got my repository and branches all set up properly again... I think I'm happy with it this time and think it'll do all that I want :-) (Though if I could version the contents of a SQLite, MySQL or PostgreSQL database with Bazaar I'd be even happier...)10:15
mathrickbialix: that worked fine, cheers10:15
lifelessChrisMorgan: bzr can do it; doesn't make it a good idea :)10:31
ChrisMorganHow can it do it?10:31
lifelessbzr add foo.db; bzr commit.10:31
ChrisMorganThe /contents/ of the database... not the database!10:31
lifelesssqlite foo.db dump > foo.dump; bzr add foo.dump; bzr commit10:32
ChrisMorganStill not automatic :-)10:33
ChrisMorganI suppose SQLite can have hooks... I wonder what that would really do to performance.10:33
ChrisMorganGhastly idea, isn't it :D10:33
mathrickChrisMorgan: that's why people invented backups10:37
mathrickdo a periodic snapshot and version that10:37
ChrisMorganI know... it really would simplify my task though if I could use Bazaar to version the contents of a database...10:37
ChrisMorganAh well, I'll sort it out somehow :-)10:37
mathrickChrisMorgan: you could make a hook that took a snapshot before commits, but it'd presumably make commits slow10:48
ChrisMorganProblem is it's the other way round I want it - someone does something on the website (something that matters, i.e. in the admin section) and it goes and exports that and commits to bzr, and a way then to do the converse with pulling, take a diff and apply it somehow to the database.10:50
ChrisMorganI think I'm dreaming a rather far-fetched dream.  I think I'll have to be satisfied with django-reversion at the moment.10:50
mathrickChrisMorgan: in this case, what you really want is a full-fledged plugin10:50
ChrisMorganSomething like that.10:50
ChrisMorganA way to version the contents of a database.10:51
ChrisMorganClearly every table being versioned would need to have a primary key.10:51
ChrisMorganHow hard do you think it'd be?10:53
ChrisMorganDo you think it'd be reasonable and possible?10:54
ChrisMorganI imagine I'd need to learn a lot about Bazaar first.  For the moment I think I'll get on with other facets of my product.10:54
ChrisMorganI'm sure it would be fascinating to do.  I'll see if I ever get to it :-)11:02
ChrisMorganGoodnight now.11:02
=== mrevell is now known as mrevell-lunch
rubbsok, I know this is easy, but I can't seem to find it. I branched from a machine on my LAN, but now I want it to pull from lp:bzr. How do I change the parent branch?13:16
maxbpull --remember13:17
rubbscool, thanks. I knew it was something rediculously easy13:18
=== mrevell-lunch is now known as mrevell
squeekyHi kids. Using the 2.01 Mac package from the website, fresh install, I try to bzr branch or init and score "bzr: ERROR: '/Volumes/Data' is not a working copy15:11
squeekySo what went wrong?15:11
PengIck, the most recent revision of bzr.dev caused conflicts with 2.0.15:11
squeekyIt was labelled as "stable".15:12
vilafullermd: ping15:12
vilasqueeky: Pend refers to the dev version, not related to your problem, can you pastebin your $HOME/.bzr.log ?15:14
squeekyany pastebin of choice?15:14
vila!paste15:14
ubottuFor posting multi-line texts into the channel, please use http://ubuntu.pastebin.com | To post !screenshots use http://tinyurl.com/imagebin | !pastebinit to paste directly from  command line | Make sure you give us the URL for your paste - see also the channel topic15:14
squeekyhttp://ubuntu.pastebin.com/m5a8c668e15:16
PengWhat the hell, pastebin.com? Why not paste.ubuntu.com?15:18
squeekyI should empasise that /Volumes/Data is the working parent directory to the one I was trying to bzr init/branch15:18
Pengsqueeky: I suspect you have an .svn directory sitting somewhere.15:19
Pengsqueeky: ls /Volumes/Data/.svn and /Volumes/data/whatever/.svn15:19
squeekyWhat does this have to do with the price of tea in china?15:19
Pengsqueeky: bzr-svn15:20
squeekyummm, okay, wasn't using that. Can't bzr just not pay attention to .svn folders in a parent?15:20
LeoNerdHow else would it know you were in a svn checkout, though?15:20
Pengsqueeky: You are using bzr-svn.15:20
LeoNerdbzr implements a prettymuch-complete frontend to working on svn checkouts/WCs/etc...15:21
squeekywhat15:21
squeekyso... it's a piggyback scm?15:21
LeoNerdNo...15:21
LeoNerdbzr has its own native formats of course.15:21
LeoNerdIt -can- use svn -as well-15:21
LeoNerdYou can use the bzr command as a frontend to a number of different repository/wc formats, including svn, git,...15:21
LeoNerdSince you have the bzr-svn plugin loaded, it's looking for .svn directories, in case you're trying to use it on a svn checkout15:22
squeekyugh.15:22
LeoNerdI find it very useful... Being able to  bzr log10  in a svn checkout, or  bzr shelve  it15:22
LeoNerdIt actually makes svn almost useable15:22
squeekyI generally don't mix scm's. But whatever, it's fixed now, thanks Peng.15:23
LeoNerdIf you're not wanting to use the bzr-svn stuff.. then.. uh.. just don't load the bzr-svn plugin :)15:23
LeoNerdHeh.. we have a bizarre mix of cvs/svn/bzr at work.. I like not needing to remember which command is which. I just type "bzr whatever".. and it all works out15:23
squeekymeh, it's fossil for internals, git for stuff that tentatively gets public OS release, svn/cvs/bzr for patching other people's stuff.15:24
maxbI find it pretty annoying when bzr-svn kicks in when I'm not actually in a svn wc15:45
maxbIt would be better if it didn't search up for .svn, since .svn doesn't require that15:46
=== weigon__ is now known as weigon
=== beuno is now known as beuno-lunch
fullermdvila: Hmmwhat?  I didn't do it, I swear.17:38
jamabentley: are you around?17:49
jamI'm trying to sort out bug #49426917:49
ubottuLaunchpad bug 494269 in bzr "tree transform cannot change root id" [Medium,Confirmed] https://launchpad.net/bugs/49426917:49
jamAnd trying to understand what TT should be doing17:49
jamI *think* it should be allowing the tree root to be added, but at apply time it should verify that there is only one17:50
jam(the delta I'm looking at shows the new root added at the beginning, then all paths are renamed into that new location, then the old one is removed.)17:51
=== deryck is now known as deryck[lunch]
=== kfogel is now known as kfogel-lunch
=== beuno-lunch is now known as beuno
kikohey there18:36
kikosay I have a tree that contains as a subdirectory a copy of bzr18:36
kikois there a way of updating that subdirectory to a more recent version of bzr and retaining some commit history information?18:36
kikoa copy of the bzr source IYSWIM18:37
luksthat question doesn't make sense to me18:37
jamkiko: so you have a tree, such that in one subdir you also have a version of the bzr source18:37
lukshow it updating bzr in conflict with retaining history?18:37
maxbCould you elucidate "retaining some commit history information" ?18:37
jamis that correct?18:37
kikoluks, let me trivialize it18:37
jamif you used stuff like "bzr merge-into"18:38
jamto create it18:38
kikolaunchpad contains a subdirectory called lp-buildd18:38
jamthen in the future you should be able to "bzr merge $BZR"18:38
jamand it should mostly JustWork18:38
kikolp-buildd is actually managed as a separate branch18:38
kikoby lamont18:38
jam(lp:bzr-merge-into, btw)18:38
kikocan I merge the changes in lp-buildd into the launchpad tree18:39
kikowith bzr-merge-into?18:39
jamkiko: I assume you want to bring the lp-buildd code into the launchpad codebase in a subdir18:39
fullermdI think you're asking the other way around from what merge-info is for.18:39
jambzr-merge-into should do a decent job of that, IIRC18:39
maxbIIUC, yes if they already share ancestry. Otherwise, an initial delete and re-merge would be required.18:39
jamIf you are trying to split it out18:39
kikojam: they don't share any history18:40
jamthen you can split it out and play tricks with 'bzr add --file-ids-from"18:40
jamkiko: unfortunately, *today*, without the same file ids, we can't link up the changes18:40
kikogotcha18:40
abentleyjam: I believe that was one of the things my proposed changes to nested trees fixed.18:42
abentleyjam: I agree that TreeTransform should delay tree shape sanity checking until the transform has been completely specified.18:43
C-SI get the following bug: bzr: ERROR: exceptions.AttributeError: 'tuple' object has no attribute 'encode'18:44
C-Sany idea?18:44
abentleyjam: I would do that in find_conflicts18:44
jamC-S: any backtrace?18:44
jamC-S: Something is getting a tuple that is expecting a string18:44
C-Syes there is quite some backtrace, can I post it somewhere?18:44
jam!paste18:44
ubottuFor posting multi-line texts into the channel, please use http://ubuntu.pastebin.com | To post !screenshots use http://tinyurl.com/imagebin | !pastebinit to paste directly from  command line | Make sure you give us the URL for your paste - see also the channel topic18:44
C-Sjam: http://ubuntu.pastebin.com/d7752a53718:46
C-Subottu: thank you18:46
ubottuYou're welcome! But keep in mind I'm just a bot ;-)18:46
abentleyjam: see fixup_new_roots in transform.py in http://bazaar.launchpad.net/~abentley/bzr/nested-trees18:47
jamabentley: thanks for the pointer18:48
=== deryck[lunch] is now known as deryck
C-Sjam: any ideas?18:56
jamC-S: can you paste "bzr status" before the commit?18:58
jamI'm wondering if it might have something to do with a symlink, et18:59
jametc18:59
C-Sjam: http://ubuntu.pastebin.com/d125d841719:00
C-Sjam: or with Umlauts in file names?19:00
C-Sjam: I now deleted all .bzr directories and restarted.19:12
C-Sjam: Even after adding one .tex file it crashes19:12
jamC-S: what does "bzr plugins" list?19:27
C-Sjam: http://ubuntu.pastebin.com/d5abcf59f19:29
jamC-S: you could try "bzr commit --no-plugins" but that doesn't seem to be it19:32
jamcertainly this doesn't seem to happen to me, since I've been committing without probs for a long time19:32
C-Sjam: that gives a different error:19:34
C-Sjam: bzr: ERROR: No repository present: "file:///..."19:35
jamC-S: so are you in a subdirectory of a git repo?19:35
C-Sjam: hmm let me check19:36
jam(I don't know that bzr-git implements proper commit19:36
jamcommit-to-git support)19:36
C-Sjam: this was it! It works again after deleting the .git folder in the main directory.19:38
C-Sjam: it would be could to give a nice bug report19:38
jamC-S: so I think this is a bug in bzr-git, you can mention something about 'commit in git working dir fails', and include the traceback19:39
jamI'm guessing that the GitCommitBuilder.record_iter_changes is working differently than we think it should19:40
jameither that or GitTree.iter_changes() is working differently19:40
jamwhat is weird is that it seems to be a mix of WorkingTree4 (which is a bzr regular tree)19:41
jamso I don't really understand why it was confused19:41
jamC-S: steps to reproduce would also be appreciated19:41
C-Sjam: I'll file the bug. Thanks again.19:47
maxbIs there any way to hook bzr to discover all branch modifications? Such as might be needed to implement an automatic backup system?19:57
maxbIn particular, I want to know about operations that don't change the tip of a branch - e.g. tags19:58
mathrickabentley: are pipelines meant to provide a similar functionality to git rebase's patch reshaping, or is that different?20:13
abentleymathrick: No, they're meant to be an alternative to rebasing.  For similar functionality, see bzr-rewrite.20:14
kikojam, btw, you could provide the licensing information for bzr-merge-into.. ;-)20:14
mathrickabentley: oh, I didn't see rewrite on the plugins page20:15
jamkiko: __init__.py clearly states GPLv2, but I can add a COPYING.txt if it makes you feel better20:16
mathrickabentley: but pipes can still result in retroactive history changes, right?20:16
kikojam, no, I meant on launchpad :)20:16
jamah20:16
mathrickhow does that play together with published branches?20:16
abentleymathrick: bzr-rewrite was formerly called rebase, and that name is still used on the plugin page.20:16
abentleymathrick: pipes cannot result in retroactive history changes.20:17
jamkiko: done20:17
jamnot entirely sure why it matters20:17
mathrickabentley: so what's the result of adding a patch to an earlier pipe and pumping it?20:18
abentleymathrick: It's as though you did a merge and commit in the later pipe.20:18
mathrickoh20:18
mathrickso it'll be visible to someone reading patches?20:19
jamabentley: the tests I can find in transform are about moving a root directory, I'm trying to test adding a new one and removing the old one completely20:20
jamabentley: does this look valid: http://paste.ubuntu.com/355157/20:21
jam(It currently fails trying to rename the cwd, but I want to know that I'm on the right track first)20:21
abentleyjam: That looks like a reasonable change.  You're probably right that we haven't tried to handle that directly in the TT before.  I'm pair programming at the moment.20:22
=== kfogel-lunch is now known as kfogel
jamabentley: sure, I don't mean to bother you too much, but I don't really know how the TT code is supposed to hang together everywhere20:23
mathrickabentley: I'm very interested in a tool that'd let me reshape changes logically for reviewers, but I sort of can't see how pipelines help with that if they're basically merges20:24
mathrick(also, take your time if you're busy right now, it's not urgent)20:25
jammathrick: you may want to look at http://jam-bazaar.blogspot.com/2009/10/refactoring-work-for-review-and-keep.html20:31
jamwhich doesn't explicitly use pipelines20:31
jamthough you could do something like that for the individual branches20:32
mathrickjam: yeah, I don't want to lose the history if possible, but I'd like to be able to submit a logical view of the end result. Lemme just read through that20:33
jammathrick: it is how I did it, at least20:33
jambasically, you could use threads/pipelines for each of the new branches created20:33
jamhowever in *my* case, I wanted a DAG of branches, not a simple stack20:34
mathrickloom was unusable for that scenario20:34
jamthough probably not critical20:34
mathricksince the threads stack in the wrong direction20:34
jamboth pipelines and loom think in terms of a stack20:34
jamthough you can "up-thread; bzr revert"20:34
jamor use "bzr switch" to change threads without merging20:34
jammathrick: wrong direction?20:35
mathrickhmm, I might be mixing up two different scenarios20:35
mathrickjam: I know I hit that at least once, when I wanted to keep a change that wouldn't get pushed upstream when merging, but which'd sit on top of other changes (ie. editing config files to match your local dev setup without touching the deployed config)20:36
mathrickthat doesn't work, because of how changes flow through the loom20:37
mathrickIIRC, there were also similar issues when you tried to use looms for reshaping, but I'd have to rethink that from first princinples again, I'll read your post first20:37
otto_sangehelp question: when I run the command $ bzr branch lp:valo-cd20:48
otto_sangeI get the error:Server does not understand Bazaar network protocol 3, reconnecting.  (Upgrade the server to avoid this.)20:49
otto_sangeServer does not understand Bazaar network protocol 2, reconnecting.  (Upgrade the server to avoid this.)20:49
otto_sangebzr: ERROR: Generic bzr smart protocol error: Server is not a Bazaar server: Received bad protocol version marker: "error\x01Generic bzr smart protocol error: bad request u'bzr request 2'\n"20:49
jelmerotto_sange, hi20:49
otto_sangeone guy at #launchpad suggested I'd ask here. Maybe it is a locale problem.20:49
maxbWhat is your local bzr version?20:50
otto_sangeMy system: plain Ubuntu 9.10, fresh bzr installation from main, clean conf, python 2.620:50
otto_sangeBzr version 2.0.020:50
otto_sangesystem locale Finnish20:50
jelmerotto_sange: I can't reproduce the problem here - what is your locale set to?20:51
otto_sangeLANG=fi_FI.UTF-8 to be specific20:51
jelmerotto_sange: It seems to work fine with that locale as well20:52
otto_sangealthough the locale thing is just a guess. I'd expect there would be more about this on Google if all Finnish users suffered from it..20:52
otto_sangeAny other ideas?20:53
otto_sangerunning -v does not give any extra info20:53
jelmerotto_sange: I'm out of ideas at the moment, but spiv might have more ideas - I think he should be around soon.20:53
jelmerspiv: ^20:53
maxbjelmer: About those bzr-svn "inconsistent details in skipped record" warnings - I had a look at what the code was actually comparing and it seems to be complaining about one side of the comparison being a tuple, the other a list. Does that mean anything to you?20:55
jelmermaxb: We've had problems with that in the past as well20:57
jelmermaxb: I guess bzr is a bit more strict now in various places20:57
jelmermaxb: I'm happy to see bzr-svn adjusted to use whatever bzr uses20:57
maxbI should stick a "raise" in there and see where it explodes, I guess20:58
maxbOn another matter, I don't suppose you have any magical debugging tips for figuring out why bzr-svn would go into an infinite loop trying to detect svn tags on a particular repo?20:59
maxbprivate, unfortunately20:59
otto_sangejelmer: I need to get some sleep now. If anybody comes up with ideas, drop me a line at otto (a) sange.fi so that I could start contributing to a Launchpad project some day... Thanks!21:01
pooliejam, hi, shall we chat?21:02
jamsure poolie21:02
jelmerotto_sange: Will do21:02
jelmermaxb: -Dtransport is usually quite helpful21:02
maxbI'll give it a go21:03
jelmermaxb: Also, SIGQUIT is your friend.21:03
maxbah21:03
jamjelmer: I think the check needs to be less strict. We can hit that internally as well21:03
jamsome apis return [] for parent_ids, some return ()21:03
jamboth should be allowed21:03
jamI don't know how I've triggered it before, but I most certainly have, without bzr-svn21:03
jelmerjam: Most things seem to rely on tuples, e.g. knits will bail out if you try to add the same text twice with the parents as a list21:04
maxbooi, what are the strings containing four numbers? -->     ('21277 252 0 333', ((),)) ('76755 252 0 333', ([],))21:04
maxbIndeed, it looks like the tuples are the "existing" and the lists the "new" in my case21:05
spivDrat, missed otto_sange.21:14
thumperspiv: do you know?21:15
thumperspiv: I was talking to him on #launchpad21:15
thumperspiv: he did leave an email address :)21:15
spivthumper: yeah, just sending mail now21:18
spivthumper: but no, it's a mystery to me.21:18
thumper:(21:18
maxbIs there a document with a typical/recommended layout for working with a shared repository, multiple branches, and a lightweight checkout?21:21
rubbsmaxb: I don't think there is a document for that, but I'd say you could do this:21:22
rubbs./shared_repo/21:22
rubbs            /branches/21:23
rubbs                       /branch_a/21:23
rubbs                      /branch_b/21:23
rubbs            /lw_co/21:23
rubbsjust an idea21:23
maxbI'll practice a bit :-)21:27
spivrubbs, maxb: probably more common is ./repo/branch_{a,b,...} for the branches, and ./work (outside the repo) for the checkout.21:49
lifelessI do21:49
spivrubbs, maxb: that said, it'll just as well either way.21:49
rubbsah, that's a good point21:49
lifeless./project/branches21:49
spivs/it'll/it'll work/21:49
lifeless./project/working21:49
maxbah... a good point, it had not occurred to me that it could be outside.21:49
lifelesse.g. bzr/trunk, bzr/foo bzr/bar bzr/working21:50
lifelessand working is a lw checkout of e.g. trunk21:50
mathrickokay, so empirically, it seems that pipelines work sorta backwards if you want to use them to reshape changes: earlier pipes in the pipeline will have the logical view, whereas the last one will have the original changes22:03
jamabentley: the way the code is written, if you add a new root but do *not* delete the old root, things still work (fixup_new_roots always removes the old root if there are any new ones.)22:15
jamshould I add a check that self._new_root in self._removed_content ?22:15
=== mkanat_ is now known as mkanat
* mkanat is working on the final touches of the CVS->bzr migration for upstream Bugzilla, for the next few days.22:18
mathrickjam: hmm, interesting post that, but what does submit: really mean in those branches?22:19
mathrickmore generally, how can I find out what branch is submit: for the given tree?22:19
jammathrick: Are you talking about the blog post?22:19
mathrickyep22:19
jamAt *this* point, I would make submit: be the dev branch, and use launchpad's "this change depends on this other branch"22:20
jamat the time I did that code22:20
jamthat feature was not present22:20
mkanatmwhudson: Going to start on the loggerhead stuff today! :-)22:20
mathrickjam: æh, I don't understand what you're talking about :)22:20
jammathrick: the submit branch is always 'trunk'22:20
jamIMO22:20
mwhudsonmkanat: woo22:20
jamit just happens that one branch depends on another landing to get a nice diff of the changes22:21
mathrickjam: and if I don't set it up specially, what becomes submit? And how can I check what is submit at any given point?22:21
jammathrick: bzr info submit: ?22:21
mathrickahh22:21
mathrickright22:22
jamI set up a default submit in locations.conf22:22
lifelessmoin22:26
jammorning lifeless, I hope you're feeling better22:27
lifelessover the worst I think; coughed up lots of plugins w/some blood and can now breath properly ;)22:28
lifelessno fever today22:28
lifelesss/in//22:29
lifelessjam: you might like testrepository22:29
lifelessjam: it should be windows friendly22:29
jamlifeless: I saw your post, looked interesting22:29
ChrisMorganbzr co http://code.djangoproject.com/svn/django/trunk/ django-trunk is failing (yes, I've installed bzr-svn, and got it working on another repository) :-(22:30
ChrisMorganIt asks for username and password, which I leave blank, and then says 'bzr: ERROR: Not a branch: "http://code.djangoproject.com/svn/django/trunk/".'22:31
ChrisMorganreplacing bzr with svn makes it work fine22:31
mkanatIs there a way to enforce, on the repo/branch side, that nobody can check in without setting whoami?22:44
lifelessuse bzr+ssh:, and write a plugin that hooks branch pre_tip_change that checks for e.g. localhost in the host part of the author of new tips22:50
mkanatlifeless: Awesome, thanks.22:52
mkanathttp://bzr.mozilla.org/22:52
mkanatNothing really in there yet, though.22:52
mkanatlifeless: For something better than that, is there a way to make sure that committer is actually the person committing?22:53
mkanatlifeless: The SSH accounts are email addresses, if that helps....22:53
lifelessmkanat: sure, ssh sets an env variable or whatever22:54
lifelesscross check that22:54
mkanatlifeless: Right, great idea. Thanks. :-)22:54
lifelessyou can raise TipChangeRejected (or anything if you want) to signal the error - TCR gets tunnelled nicely though.22:55
mkanatCool.22:55
* mkanat has never written a plugin, so this will be new territory.22:55
abentleyjam: That sounds reasonable.23:01
pooliehi abentley23:53
pooliehi spiv?23:53
abentleypoolie: hi23:53
poolieChrisMorgan: please open a bug and paste the number here23:53
ChrisMorganIn bzr-svn?23:54
=== Noldorin_ is now known as Noldorin

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