/srv/irclogs.ubuntu.com/2008/03/26/#bzr.txt

LaserJockso i think somebody in LP made the other branches00:00
LaserJockbecause as bad as 1 branch is, i really want 4 of them00:00
abentleyspiv: Were there any bugs in the format detection in 1.2?00:00
spivabentley: I'm not sure.  I don't see anything in NEWS about it.00:00
LaserJockabentley: can I force it?00:01
bob2co uses the bzr default branch format, instead of the remote format00:01
spivabentley: I do vaguely recall something got fixed in that area, but I think before 1.2?00:01
abentleyOh, doh.  I forgot I defaulted checkout to --lightweight.00:02
LaserJockohh00:03
abentleyYeah, I get that failure too.00:03
LaserJockk, so I'm not nuts00:04
LaserJockdoing the checkout now00:04
abentleyThe way to force it is: bzr init --dirstate-with-subtrees $DIR; cd $DIR; bzr pull bzr+ssh://bazaar.launchpad.net/~ubuntu-core-doc/ubuntu-doc/ubuntu-hardy;00:05
schierbeckhey guys00:05
jmlsomething weird just happened to me00:05
ubotuNew bug: #206886 in bzr "bazaar send should support inlined content" [Undecided,New] https://launchpad.net/bugs/20688600:06
jmlI tried branching using 'bzr+ssh' from a server -- worked fine. Then I did branch using 'sftp' from the same server and got an authentication error.00:06
warrenCan a bzr smart server prevent clients from deleting tags?00:06
jmlthe same machine appears under a different hostname & using a different port in my .ssh/config00:07
LaserJockabentley: but will that be fast? doing a bzr pull?00:07
jmland when I use sftp://hostname:22/, branch works.00:07
warrenBTW, does pack-92 automatically mean you also have dirstate-tags?  (or the ability to do bzr tagging)00:07
jmlis Bazaar using one mechanism for bzr+ssh and another for sftp?00:08
bob2warren: yes, pack-0.92 includes tag support00:08
abentleyLaserJock: It certainly ought to be.00:08
spivjml: it shouldn't, IIRC00:08
LaserJockabentley: and it won't let me do --dirstate-with-subtrees00:09
abentleymy bad, no 's' on the end.00:09
lifelessLaserJock: the training trees were meant to be getting upgraded by tetet00:09
lifelessLaserJock: setup a local repository for them, then the cost of all 4 is minimally more than the cost of 100:10
jmlmaybe it's a bug in openssh00:10
warrenbob2, thanks for the clarification.00:10
LaserJocklifeless: can I do that with an existing branch?00:10
spivValueError: invalid literal for int() with base 10: '# Loom'00:11
spivhttp://rafb.net/p/PiTZ3863.html  has the full error.00:11
lifelessLaserJock: yes; make the repo locally, then bzr branch your existing branch into it00:13
LaserJocklifeless: oh!00:13
LaserJockI have an edubuntu-docs branch right here00:13
spivlifeless: I just got an error pulling the loom trunk into my local copy, but it was resolved when I upgraded my local branch from dirstate to pack-0.92.00:14
lifelessspiv: bizarre00:14
spivlifeless: full traceback in the pastebin above00:14
lifelessjust looks like a corrupt file00:15
spivlifeless: want a copy of the troublesome branch?  Or a bug report?00:15
lifelessspiv: it looks like the knit code being handed a loom current file00:16
lifelessspiv: which is really bizaare00:16
lifelessspiv: uhm, if you can make it reproducable sure00:17
spivlifeless: yep, I can reproduce.00:17
lifelesscool <damn>00:18
spiv:)00:18
lifelessthen I'd like enough stuff to reproduce it please :)00:18
abentleyI can't reproduce spiv's error, though I think I've seen it before.00:18
spivlifeless: http://people.ubuntu.com/~andrew/loom-pull-case.tar.gz has the branch00:19
LaserJockhmm, so how do I make a share repository?00:19
spivlifeless: I simply did "bzr pull", which pulled from bzr+ssh://bazaar.launchpad.net/~bzr-loom-devs/bzr-loom/trunk/00:19
warrenlifeless, btw, if I'm converting a huge repository from dirstate to pack-92, should I use bzr-1.3 or is 1.1 fine?00:20
lifelessLaserJock: for a svn converted project, bzr init-repo --rich-root-pack path00:20
lifelesswarren: 1.1 is fine00:20
ubotuNew bug: #206890 in bzr "Help pages for merge and pull should tell users about bundles" [Undecided,New] https://launchpad.net/bugs/20689000:20
lifelesswarren: after the conversion, just run bzr reconcile00:20
warrenDo tags come across in merges?00:22
warrenfoo-trunk> pull ../foo-bar (which has its own tags); bzr merge; bzr ci, are tags from foo-bar visible in foo-trunk now?00:23
LaserJocklifeless: so does a shared repo mean that a new branch will take common revisions from the local repo?00:25
abentleylifeless: PQM has committed my last merge request, but not published it.00:26
abentleyCould you give it a whack please?00:26
lifelessabentley: 'log' ?00:27
lifelessabentley: was the merge request for yoru log changes ?00:27
abentleyNo, it was for pulling lp: locations00:28
lifelessso if pqm didn't publish, it will have rolled back00:28
lifelesslet me look for an error00:28
abentleyLast time I tried, it told me "nothing to merge".00:29
lifelessok; weird then00:29
LaserJockdang, even a local branch takes quite some time00:33
LaserJockI seriously wonder if we shouldn't just start over00:33
abentleyLaserJock: You're branching from a location in your shared repo into another location in your shared repo?00:34
LaserJockno00:34
LaserJockfrom a branch I already had outside my shared repo into the shared repo00:34
LaserJockbut it's still local00:35
abentleyA branch in a different format?00:35
LaserJockno00:35
LaserJockI don't think so00:35
abentleylifeless told you to use rich-root-pack.  You didn't?00:35
LaserJockyep, same formate00:35
LaserJockoh, you're right00:36
LaserJockok, that makes sense then00:36
abentleySo what you are hitting is an unoptimized conversion path.00:36
LaserJockcan two bzr instances run at the same time?00:36
abentleySure.00:36
abentleyThey can't both write to the same thing at the same time, of course.00:37
LaserJockI started doing the local branch at the same time I'm doing a bzr pull00:37
LaserJockand the bzr pull doesn't seem to be doing anything00:37
abentleyYou should probably wait until the local branch is done anyhow.00:37
abentleyBut bzr+ssh doesn't give great progress indicators.00:38
* LaserJock notes that after 26 min :-)00:38
LaserJockso it looks like it's gonna be about 40 min to do the local branch00:39
abentleyHow big is this data?00:39
LaserJockwell, the branch is 217MB00:40
LaserJock.bzr is 211MB00:40
LaserJockthat's why I'm wondering about starting over00:41
LaserJockwe're carrying so much history around for like 6MB00:41
abentleyThat seems extremely disproportionate.00:43
LaserJockwell, the size of the "working tree" has grown and shrunk quite a bit with time00:43
LaserJockthe size of the files in my branch probably won't ever get over ~20MB00:44
LaserJockbut the ubuntu-docs branch is probably more like 100-150MB00:44
LaserJockit's just a frustration because it used to take < 5min or so to do a SVN checkout and that worked well for us00:47
LaserJockwe're trying to get to the same level with bzr00:47
LaserJockbut I think our project is not a great example :/00:47
lifelessLaserJock: once you have your repo seeded, upgrade it to rich-root-pack, because that is lots faster :>00:48
LaserJockyou mean push the new branch back up to LP?00:49
spivLaserJock: with a shared repo locally and rich-root-pack as the format, it'll be much snappier.  The coming stacked branches feature will also help.00:49
LaserJockspiv: I hope so :-)00:51
lifelessLaserJock: no, I don't mean push00:52
LaserJockI guess I didn't get it then00:53
LaserJockwhat branch do I want to upgrade?00:53
LaserJockthe one I'm making should be already rich-root-pack right?00:53
lifelessabentley: your patch is published00:54
abentleylifeless: tx00:54
lifelessLaserJock: what does bzr info on the repository you created say its format is ?00:54
LaserJocklifeless: just a sec, it's just finishing branching00:56
LaserJockShared repository with trees (format: rich-root-pack)00:57
LaserJockthat's the share repo obviously00:57
LaserJockand the new branch is:00:57
LaserJockRepository tree (format: rich-root-pack)00:57
LaserJockso that took about 36min to branch locally, just FYI00:57
LaserJocknow I'm trying a bzr branch of one of the other branches00:59
LaserJockohh, that's much better01:01
lifelessjames_w: so, were did we get to01:08
lifelessjames_w: right, file ids. are they deterministically allocated? do you generate correct merge graphs? (that is, does 'bzr check' give no errors on an imported branch)01:09
=== mw is now known as mw|out
* igc food02:23
=== arne^ is now known as _arne^
nirwhere is bzr 1.3 for ubuntu?02:24
nirhttps://launchpad.net/~bzr/+archive contains only 1.2.102:25
kgoetzaiui, coming02:25
* mneptok jumps up and down on kgoetz 02:46
* kgoetz bruises painfully02:46
mneptokhow's tricks, Kaiserlicious?02:48
kgoetzmneptok: pretty good. gobuntu is a bit quiet atm, but other things i;m involved in a fairly lively :)02:49
kgoetzhow is the support hotseat these days?02:51
mneptokkgoetz: getting hotter as more customers don;t like the fact we don't officially support Hardy yet02:56
jameshmneptok: I'd have thought they'd have moved on to Intrepid by now.02:58
kgoetzmneptok: hehe. and i assume it'll keep warming up until well after release02:58
mneptokkgoetz: you got that right02:58
mneptokjamesh: usually that's ~3m after libc drops into the next release ;)02:59
kgoetz;)02:59
eugeneodenanyone here familiar with bzr-loom?03:08
spivSeveral, including me.03:08
lifelessyay get_parents hath died03:10
eugeneodenspiv: hello.  you helped me with bzr-svn branch problem last monday at the sprint.  on the plane i started working on a deloomify command for bzr-loom and was wondering if anyone else was interested in that functionality.03:14
jelmerlifeless: btw, if you think setting the inventory_sha1 to "" in bzr-svn is a bad idea, please speak up :-)03:15
lifelessjelmer: its a terrible idea03:16
spiveugeneoden: I think so, jam filed some bugs on bzr-loom including one asking for a command to deloomify.03:16
lifelesseugeneoden: I think you'll find that that is in the TODO already :)03:16
spiveugeneoden: https://bugs.edge.launchpad.net/bzr-loom/+bug/20328503:17
ubotuLaunchpad bug 203285 in bzr-loom "unable to "de-loom" a branch" [Undecided,New]03:17
eugeneodencool.  i might have seen it somewhere - i'm not familiar enough with this stuff to come up with changes on my own.03:17
jelmerlifeless: worse than using a sha1 from a semi-random serializer?03:18
lifelessjelmer: well, perhaps you might be more clear about what you mean03:18
lifelessjelmer: do you mean 'when you call repository.get_revision(X) on a SvnRepository, the inventory_sha1 will be blank'03:18
lifelessjelmer: or do you mean 'the revisions in a pack repository pulled from SvnRepository have an inventory_sha1 of ""' ?03:19
lifelessjelmer: or perhaps you mean both03:22
lifelessjelmer: so for the former, I think None is appropriate if svn has no validator03:22
lifelessjelmer: for the latter it must be the validator returned by add_inventory (which will be the case if you use anything other than the lowest level apis for inserting into the pack repository)03:23
eugeneodenspiv, lifeless: i took a brute-force approach to start with - deleting last-loom and reverting the branch format.  ran into locking issues - LoomSupport.unlock() attempts to record any changes before calling the superclass unlock() and fails if last-loom has been deleted.03:26
lifelesseugeneoden: I suggest: lock(); write new format, unlock(), delete last-loom in that order03:28
lifelessit will have to be a valid loom at unlock time03:28
eugeneodenmakes sense03:28
eugeneodenlifeless: would it be better to insist that all threads have been combined except for the last implicit one or should deloomify combine all threads, leaving the contained changes as uncommited modifications?03:30
jelmerlifeless: But add_revision takes an inventory already - there should be no need to call add_inventory03:31
lifelessjelmer: right, add_revision(...,inventory=X) does sha1 = self.add_inventory(X); revision.inventory_sha1=sha1; self._add_revision...03:32
lifelessjelmer: but! you shouldn't be calling add_revision anyhow, we built CommitBuilder just for you :>03:32
lifelesseugeneoden: I would say that you must have one and only one thread or supply a --force.03:33
lifelesseugeneoden: and on force it wouldn't need to do any complex stuff, just skip the check.03:33
eugeneodenok, sounds good.03:34
jelmerlifeless: heh, commit builder is only used for the other way around :-)03:34
jelmerlifeless: add_revision doesn't appear to set revision.inventory_sha103:35
spivjelmer: I'm getting 'bzr: ERROR: Revision {('svn-v3-trunk0:bbbe8e31-12d6-0310-92fd-ac37d47ddeeb:trunk:22922',)} not present in "<bzrlib.knit.KnitGraphIndex object at 0x8c7c74c>".' when I try to update my Twisted import with current bzr-svn stable03:35
jelmerspiv: does "bzr selftest svn" pass?03:37
jelmerspiv: if not, please file a bug03:37
jelmerI'm getting some sleep :-)03:37
lifelessbbiab03:38
spivjelmer: ok03:39
spivjelmer: thanks03:39
lifelessyay internode suckage03:41
lifelessjelmer: if you replied to me, I missed it03:41
lifeless14:30 < jelmer> lifeless: But add_revision takes an inventory already - there should be no need to call add_inventory03:41
lifeless14:31 < lifeless> jelmer: right, add_revision(...,inventory=X) does sha1 = self.add_inventory(X); revision.inventory_sha1=sha1; self._add_revision...03:41
lifeless14:32 < lifeless> jelmer: but! you shouldn't be calling add_revision anyhow, we built CommitBuilder just for you :>03:41
lifeless14:32 < lifeless> eugeneoden: I would say that you must have one and only one thread or supply a --force.03:41
lifeless14:32 < lifeless> eugeneoden: and on force it wouldn't need to do any complex stuff, just skip the check.03:41
lifeless14:33 < lifeless> bbiab03:41
lifeless14:38 -!- lifeless [n=robertc@ppp245-86.static.internode.on.net] has joined #bzr03:41
spivlifeless: he replied:03:43
spiv14:34 < jelmer> lifeless: heh, commit builder is only used for the other way around :-)03:43
spiv14:35 < jelmer> lifeless: add_revision doesn't appear to set revision.inventory_sha103:43
spivAnd he also said < jelmer> I'm getting some sleep :-)03:43
spivlifeless: and with that, I think you're back in sync03:43
lifelessyay bugs03:44
lifelessjelmer: thats clearly a bug; care to fix ?03:44
poolielifeless: nice response to sjturnbull03:53
* lifeless bows03:54
LaserJocklifeless: so in the end I the branching into the shared repo too 36 min and a subsequent bzr branch of another ubuntu doc branch took 90 min04:08
LaserJockif that makes any sense04:09
lifelessLaserJock: into the same shared repo ?04:11
LaserJockyeah04:11
lifelessLaserJock: what does 'bzr info' on the second branch (in the repo) say04:11
LaserJockRepository tree (format: rich-root-pack)04:11
LaserJockand it said it's part of the shared repo04:12
lifelessok04:12
lifeless90 minutes - I have to guess that the remote format is knits04:12
LaserJockit's interesting that there is such a difference in repo sizes04:13
LaserJockthe edubuntu-docs branch (the one I did the local branch into the shared repo) is 5.5MB04:13
LaserJockthe ubuntu-docs branch which is the one I did the bzr branch on afterwards is 205MB04:14
lifelessLaserJock: did you do that one into the shared repo ?04:14
LaserJockyes04:15
LaserJockI guess the .bzr is small though04:15
lifelesscan you ls .bzr/ on that one ?04:15
LaserJockthe first is 108K and the second is 1.4M04:15
LaserJockso it's just a difference in "working tree" size04:16
LaserJockand the shared repo .bzr is 198MB04:16
lifelessok04:16
LaserJockso it looks like the shared repo is working well04:17
lifelessperhaps the svn conversion used silly svn 'branch' layers, and grabbed too much data.04:17
LaserJock90 min isn't great, but at least it's a lot better than doing the whole stinkin' thing04:18
LaserJockI believe it only had to get 178 revisions to do the ubuntu-docs branch04:18
LaserJockseems like 90 min for 178 revisions is a lot04:18
LaserJockwe're at revision 3781 so if that scaled that means it would take almost 32 hrs to do the full branch04:20
LaserJockso it must take a lot to do the conversion between formats04:20
lifelesswhats the url of the second branch you made? the launchpad url I mean04:20
* igc bbl - school pickup today04:20
LaserJockhttp://bazaar.launchpad.net/~ubuntu-core-doc/ubuntu-doc/ubuntu-hardy/04:21
LaserJocklifeless: btw, I really do appreciate your help and all the effort the bzr team puts into bzr and the LP hosting04:26
LaserJocksorry if my frustration and inability to "get" bzr sometimes made me seem cranky04:27
lifelessLaserJock: bzr info http://bazaar.launchpad.net/~ubuntu-core-doc/ubuntu-doc/ubuntu-hardy/04:33
lifelessStandalone branch (format: dirstate-with-subtree)04:33
lifelessLocation:04:33
lifeless  branch root: http://bazaar.launchpad.net/%7Eubuntu-core-doc/ubuntu-doc/ubuntu-hardy/04:33
lifelessLaserJock: ^ its in knit format, which means lots of round trips04:33
lifelessLaserJock: as I thought :>04:33
lifelesschat to tetet about this :)04:33
LaserJockso maybe we can get that changed on the LP server?04:34
LaserJockthis shared repo stuff is fantastic04:35
lifeless;)04:45
LaserJocknow, is it right that I can remove everything from a branch but the .bzr/ without ill effect?04:48
lifelessLaserJock: 'bzr remove-tree'04:49
LaserJockhot dog04:49
abentleybad lifeless: please promote "reconfigure --branch" instead.04:50
LaserJockso now I have  both edubuntu-docs and ubuntu-docs branches and it's 14MB *smaller* than my previous edubuntu-docs branch04:50
lifelessabentley: perhaps 'bzr remove-tree' could do that advertising for me :)04:51
lifelessjelmer: thanks04:52
LaserJockabentley: how would I then get the tree back, reconfigure --tree?04:52
abentleyLaserJock: Right.04:53
LaserJockI'm kinda confused/amazed. How can the ubuntu-hardy .bzr only be 40K?04:55
LaserJockthere's 178 revisions difference between the edubuntu-hardy and ubuntu-hardy branches04:55
lifelessLaserJock: the .bzr in a shared repository only contains the branch pointer04:55
LaserJockdoes it store all revisions in the shared repo and then the individual branches only hold what revisions belong to the branch04:55
LaserJockI was thinking it would hold the revisions that were not in common04:56
lifelessthat would reqire continual shuffling to keep that property04:58
lifelessall it does is move the database out of the branch and to a centralised location04:58
poolieabentley: i haven't read all of all the threads, but i don't think there is a standard way to launch them05:29
poolieit is basically like unix MUAs05:30
pooliein that to control them in detail, you need to use which one you're calling05:31
pooliei may be out of date though05:31
abentleypoolie: But at least Gnome and KDE provide a standard way of launching them, to say nothing of Windows and Mac.05:31
lifelessgnome and kde focus on usability though05:31
lifelessthe standard way to configure emacs is to write lisp05:31
abentleyI just don't want to wind up with an endless proliferation of mail clients.05:32
lifelessme neither05:32
lifelessWe could say 'get your client registered with xdg-mail'05:33
pooliewell05:33
lifelessbut that doesn't deliver a fix to the users in the short term05:33
abentleyThat requires a GUI desktop, I think.  I could see backlash.05:33
lifelesswe could promote a 'sensible-mail' alias for debian* systems :>05:33
abentleyDoes debian not provide a "sensible-editor"?05:34
bob2it does05:34
abentleyI meant "sensible-mail".05:34
abentleyIt's late.05:34
lifelessit does, but editor & mail client are different I thought :>05:34
lifelessthere is no sensible-mail on my system05:34
jdongsensible-editor Conflicts: emacs *ducks*05:34
* TFKyle wonders what it is, nano or something?05:34
abentleyjdong: Hey, play nice.05:34
jdong:)05:34
abentleyThey're Bazaar users now, we should make them feel welcome.05:35
lifelesslet me register right now05:35
lifelessthat if php switches to bzr05:36
lifelessI will _not_ stop trolling05:36
LaserJock:-)05:36
bob2check out the flock() page in the user-editable php docs sometime05:37
TFKylethink it'd be very hard to convert their cvs repo to bzr anyway (well, need a bit of automagic encoding detection iirc, the commits are in various encodings)05:37
TFKyles/commits/commit messages/05:37
bob2how does cvs handle that?05:38
bob2just throw raw bytes at the terminal with 'cvs log'?05:38
lifelesscvs spits at encodings05:38
TFKylethink so05:38
lifelessTFKyle: if you detected each one well, you could stuff it into bzr just fine05:38
lifelessTFKyle: unless a single commit had multiple encodings :>05:39
lifelessk gents, thats all she wrote;05:52
bob2that emacs patch unfairly discriminates against gnus users, anyway05:54
abentleylifeless: What if MySQL switches?05:56
* abentley clocks out of the channel just after an Oz resident.06:04
ufuntuhello :)06:16
mdkehi there. We at the ubuntu-doc project have completed our first release cycle of using bzr, it's gone relatively well! However our branch history is pretty huge so we're just trying to decide whether to start a fresh branch for the next cycle. I'd like feedback on potential advantages and disadvantages08:25
mdkeas I see it the advantages are that we can move to the new bzr format (we are currently using a bzr-svn format) and that the branch will be (much) quicker to download08:26
mdkeobviously the disadvantage is that we lose the history but we can probably live with that. Are there any other disadvantages?08:26
Peng"new bzr format"?08:27
Pengmdke: You can use rich-root-pack, which is (a variation of) the new pack format.08:28
Pengmdke: I hate losing history, so I'd say don't do that. If performance is really that bad, grit your teeth until there are further improvements, or switch to git or hg or something. :P08:29
mdkePeng: right, I meant the pack format which comes with bzr 1.008:29
mdkePeng: what are the reasons you hate losing history?08:30
Pengmdke: OTOH, if svn's history didn't import well, starting with a clean slate might be nice.08:30
Pengmdke: "Because.". It's...history. You're not supposed to lose it.08:30
mdkePeng: alright...08:32
Pengmdke: So, in summary, I'm no help at all. :P08:32
mdkewe'd have the history in the branches for the previous releases, I guess08:32
mdkewe wouldn't abandon those08:33
Pengmdke: I'd say that you shouldn't throw out the history unless you really, really need to.08:33
PengWould you be maintaining the previous branches in svn or bzr?08:33
mdkein bzr, we imported all of them08:33
mdkethe branch size is currently 200MB on disk08:34
PengOuch.08:37
* igc dinner08:38
PengThat's about the size of the entire history of Python imported into bzr.08:38
mdkethere ya go.08:38
PengAnd that has *really* bad performance.08:38
Peng(35 or 38k revisions per branch, some large number of files.)08:39
Peng(Oh, 36k.)08:39
mdkewe're only at 3700 revisions08:39
TFKylemnm, I should try branching that08:39
mdkealthough I suppose it might not be comparable, given that our material is all text08:39
mdkeand translations of text08:39
Peng4000 files.08:40
mdkePeng: do you know whether if members download the branch without revision history, they can still push to our master branch on launchpad?08:40
Pengmdke: What do you mean? Bzr needs the history.  Well, you can use lightweight checkouts, but that would be slow.08:41
mdkeyeah, I meant lightweight checkouts08:41
PengTFKyle: They distribute it as a tarball. :(08:41
mdkeso that would be corresponding slow to push?08:41
Pengmdke: Well, there's zero history stored on the client. Even "bzr status" would have to get some information from the server. And, obviously, that's slower than the local disk..08:42
TFKylePeng: indeed, hadn't completely read the page yet (just read bcannons post mentioning it a little while ago)08:42
mdkePeng: yeah, not great. So I think the answer is either to drop the history, or figure out why it's so damn huge08:43
=== thekorn_ is now known as thekorn
mdkeand do something about it08:43
Pengmdke: Huge number of files? Did anyone accidentally commit an ISO?08:43
mdkehah08:43
mdkeI can't figure out how to exclude history from a "du" command08:44
lifelessmdke: I can look at your tree tomorrow sometime08:45
lifelessmdke: I strongly urge you to do nothing in terms of discarding history for about 4 months. some good shit in the pipeline08:45
mdkelifeless: that would be great :) I just want to check it's not a wild goose chase and the problem isn't just a large working tree08:45
mdkemaybe it's bigger than I thought08:46
lifelessI think someone familiar with bzr scaling needs to look at your tree & history to make an assessment of whats going on08:46
lifeless*I* suspect svn conversion breakage08:46
lifelessfor now, I have to go. tchau.08:46
mdkelifeless: ciao08:46
mdkeah shit. The working tree is 200MB... I wasn't counting the history before08:48
mdkeI've got that in a shared repo08:48
mdkewhich is around 1.6GB08:48
mdkemy .bzr directory is 635MB08:49
mdkeI'll come back tomorrow and have a chat with lifeless08:49
mdkethanks all08:49
=== _arne^ is now known as arne^
poolie>  With regard to writing style, I agree with Steven Turnbull - the08:54
poolieyeh08:54
pooliebad paste08:54
pooliemdke: if you branch out of that repository into a new one it will carry only the relevant history08:55
awilkinsDoes the "new" format support rich roots?08:57
awilkinsI'm in a similar situation, large SVN repo (~1.5GB), large number of medium - large files, about 13000 revisions... I've not finished converting mine over yet though08:58
awilkinsJust finishing off the trunk, then I shall work on the branches08:58
awilkinsTHen I can see what kind of performance is available08:58
Pengawilkins: pack-0.92 has a rich-root variant called rich-root-pack and a subtree variant called pack-0.92-subtree. Even if you're currently using dirstate-with-subtree, you can probably upgrade to only rich-root-pack.09:06
datoPeng: to pack-0.92-subtree, you mean. and possibly to rich-root-pack, but it'll be very ver slow afaik.09:11
PengOops, I should've said "If you're currently using dirstate-with-subtree *with bzr-svn*".09:12
Pengdato: What would be slow? Why?09:12
dato-subtree -> -rich-root is slow, I think09:12
PengOh.09:12
PengYou may be correct. I'm branching ubuntu-doc's dirstate-with-subtree branch over bzr+ssh into a rich-root-pack right now, and it's going about as fast as a bzr-svn conversion (thankfully without the svn memory leaks though ;) ).09:15
Penginto a rich-root-pack repo*09:15
awilkinsPeng: I meant the "dev" format ; I'm already using rich-root-pack09:15
Pengawilkins: Oh. Shrug. That's equivalent to packs right now, isn't it?09:15
awilkinsI don't know what the benefits are...09:15
awilkinsAside : what's the custom-merge support like ATM?09:16
awilkinsi.e. per-file merge handler?09:16
PengYeah, there isn't a rich-root variant of the development format, because having three different variants of it would be a pain for little benefit.09:16
jml_*sigh*09:18
Peng?09:18
jml_mischan09:18
PengHaha, it's pulling one revision every 2-3 seconds.09:35
PengIt just took 39 seconds for one.09:36
gioelehello10:04
=== mrevell is now known as mrevell-lunch
=== mrevell-lunch is now known as mrevell
Arturikhttp://www.meine-nackte-ex.net/?uid=14331213:29
Arturikhttp://www.meine-nackte-ex.net/?uid=14331213:31
gioelehello13:35
gioeledo latest bzr versions maintain the concept of "revision ghosts"?13:40
fullermdI think they have to, since bzr has them.13:43
gioelebloody modem13:53
gioeleso, revision ghosts are still present13:54
gioelehttp://bazaar-vcs.org/Revision (now old and outdated ;)) says that revision can be saved in .bzr/repository and .bzr/branch . Do you have an example of when revisions are saved in branches and not in repositories?13:55
fullermdI don't think that's what it says.13:56
fullermd(that is, not what it means by what it's saying)13:56
fullermdIt's using 'repo' in reference to a shared repo, contrasted with a non-shared colocated repo.13:57
gioelewhat does it mean then?13:57
gioeleah13:57
fullermdCue back to my grumpings over the years about the plethora of overloadings of 'branch'.13:57
gioelebut...13:58
gioeleshould I read it as "when bazaar is given the option of deciding how to store a revision, it uses the shared repository"13:59
fullermdI didn't say the page was particularly _clear_   :)13:59
gioelebut then, does that mean that you can have a standalone tree inside a shared repository?13:59
fullermdI'm not sure what that sentence is talking about anyway.  It's either getting way too deep into internals, or referring to something ancient, or just plain double-talking.14:00
gioelejust to make sure: revisions are never stored under .bzr/branch14:00
fullermdSure.  Just take a standalone tree, and mv it into the repo.  Or create a repo above it.14:00
fullermdCorrect.14:00
fullermdThere's no way using bzr to make a branch in a repo become standalone currently (reconfig should grow that and its complement), but the construct itself is perfectly possible.14:01
gioeleok, .bzr/branch does not store revisions. I'll go ahead and forget that that wiki page exist ;)14:01
gioeleanyway. I make a little test. If you move a standalone tree inside a shared repo, a commit will store the new revision in the standalone tree, not in the shared repo.14:16
abentleygioele: I have updated http://bazaar-vcs.org/Revision.  Is it clearer now?14:18
gioeleabentley: yes14:21
gioelenow, if I get it correctly, http://bazaar-vcs.org/StandaloneBranch is wrong when it says «Standalone branches contain two components: The RCS data and a working tree.» To have or not to have a working tree is not inherent to a standalone branch14:24
abentleygioele: right.14:25
abentleygioele: I've tried to clean up http://bazaar-vcs.org/StandaloneBranch14:36
gioelehow come a shared repo (bzr init-repo) contains .bzr/branch-{format,lock}?14:36
fullermdWell, it's gotta have something declaring it a bzrdir.  Specific naming is historical.14:39
gioeleabentley: I'd change the last part of the last sentence with something like "by grouping them under a shared repository as repository branches"14:39
gioeleah, branch-format is really bzrdir-format, not related to the concept of branch14:40
abentleygioele: Good suggestion.14:42
yaccAahh!14:46
yaccbzr: ERROR: Installed bzr version 1.3 is too old to be used with bzr-svn, at least 1.4 required14:46
yaccGuess that means that I need a "build-from-source" bzr?14:47
abentleyyacc: where do you get your bzr-svn from?14:47
yaccbzr-svn: from a bzr co (stable branch)14:48
yaccbzr from Debian14:48
abentleyThen you should also get your bazaar from there.14:48
abentleyWe also have our own deb repository, if you prefer.14:48
yaccWe do?14:49
yacc:)14:49
abentleyHmm.14:49
yaccOk, let me google for it :)14:49
abentleyOr does that only support ubuntu?14:49
jelmeryacc: if you use bzr-svn from its development branch, use bzr.dev14:50
gioeleabentley: ppa is ubuntu only14:50
gioeleabentley: you left "turning them" in the last sentence of http://bazaar-vcs.org/StandaloneBranch ;)14:50
yaccjelmer: http://people.samba.org/bzr/jelmer/bzr-svn/stable/ is the devel branch of bzr-svn then?14:50
abentleyyacc: If you're using debian sid or lenny, those also contain bzr-svn.14:52
abentleygioele: Actually, I like turning them better, because "grouping them" implies that just moving the branches will make them use the shared repo.14:53
yaccabentley: yeah, but, I'm not sure if that dusty taste is that great. ;)14:53
gioeleabentley: «speed up operations by turning them grouping them under a shared repository as repository branches»14:53
gioeleyou have to choose one :P14:53
abentleygioele: Okay, fine.14:55
jelmeryacc: yes14:56
yaccabentley: guess I'll checkout bzr.dev then, deinstall bzr from Debian, and install from bzr.dev. Which makes me btw wonder if easy_install has a way to get releases from bzr branches as it has for svn? *wonder*14:56
james_wyacc: you can run bzr from source really easily14:57
james_wyacc: though is there a reason you are using bzr-svn later than 0.4.9?14:57
=== mw|out is now known as mw|not-out
yaccjames_w: good question, let say I had some fun last week push to some hosted svn repos. I'm not sure if jelmers good work solved the issue, or if I've got it configured differently which would mean that 0.4.9 might work for me.14:59
=== mw|not-out is now known as mw
james_wyacc: well you can either switch to the 0.4.9 branch, or use bzr from source15:01
james_wwhich is "bzr branch lp:bzr", and then make the bzr script from that be in your path ahead of /usr/bin, or use an alias.15:01
=== mw is now known as mw|mtg
yacclp:bzr?15:09
yaccNot http://www.bazaar-vcs/bzr/bzr.dev/ ?15:09
james_wgrabs the trunk from launchpad, you can use the full URL if you like.15:09
james_wyeah, that's fine as well.15:10
gioelespam: http://bazaar-vcs.org/jackcity15:10
gioelebye bye, thank you for the clarifications15:11
yaccjames_w: no need to install the bzr branch stuff beside a symlink?15:11
james_wnope, bzr figures it all out.15:12
yaccnice, now I just need to pull bzr.dev via UMTS, which seems to take time, time, time,15:17
yaccAt least it's a bandwidth limitation and not latency that I see here :)15:17
=== mw|mtg is now known as mw
=== lamont` is now known as lamont
mw-homeanybody in here using the nautilus plugin for bzr?  I installed it, now what?  I don't see those fancy icons.15:27
=== kiko is now known as kiko-fud
yaccAh :)15:37
yaccjames_w: where is the plugins directory of such a "devel" bzr?15:37
mw-homemaybe I need to enable the nautilus plugin/15:37
james_wyacc: either ~/.bazaar/plugins15:39
james_wor in the plugins directory within the branch15:40
james_wbzrlib/plugins/15:40
mw-homethanks15:40
yaccso /usr/lib/python2.4/site-packages/bzrlib/plugins just has to move ;)15:40
warrenAnyone know how to upgrade the repository format of my repo in launchpad?15:40
warrenbzr get FOO; bzr upgrade --pack-0.92; bzr push (doesn't work)15:41
asabilwarren: push --overwrite ?15:44
james_wwarren: bzr upgrade <url>15:44
asabiloh didn't know that was possible15:45
warren[warren@newcaprica mkdst]$ bzr upgrade "bzr+ssh://wtogami@bazaar.launchpad.net/%7Eltsp-upstream/mkdst/mkdst-trunk/"15:45
warrenbzr: ERROR: The branch format Bazaar-NG meta directory, format 1 is already at the most recent format.15:45
warren(but it isn't)15:45
james_wwhat happens if you pass --pack-0.9215:46
warrensame error message15:46
warrenasabil, push --overwrite means everyone has to blow away their tree and pull again from scratch?15:47
asabilwarren: yes am afraid15:47
james_wonly if a push without --overwrite says that they have diverged15:48
jelmerwarren: you'd want to upgrade over sftp15:48
james_wand they could use merge to get back on track, but the change that you overwrite would then still be present.15:49
warrenjelmer, will upgrade over sftp be REALLY slow if you have a huge repository?15:50
warrenjelmer, and afterward they will need to pull from scratch anyway?15:50
jelmerwarren: it will be pretty slow, yes15:51
jelmerwarren: but no need for anybody to pull from scratch afteewards15:51
warrentoo bad there's no button on launchpad to do conversion15:51
warrenI'm converting a small repository first15:51
warrenbut soon I'm doing a huge one15:52
mw-homeAnyone running the nautilus plugin?  I can't get it to work.  More specifically, I don't see the bzr icons inside nautilus.16:01
mw-homebrb16:03
warrenhmm16:06
warrenshould I worry about this?16:06
warrenrepository converted16:06
warrenbzr: ERROR: No such file: '/~ltsp-upstream/ltspfs/ltspfs-trunk/.bzr/branch/last-revision': [Errno 2] /~ltsp-upstream/ltspfs/ltspfs-trunk/.bzr/branch/last-revision16:06
james_wwarren: doing what?16:06
warrenjames_w, that was at the end of bzr upgrade --pack-0.92 sftp://wtogami@bazaar.launchpad.net/%7Eltsp-upstream/ltspfs/ltspfs-trunk/16:06
james_whmm, that sounds pretty bad.16:07
james_wis the branch still usable?16:07
warrenno idea16:08
james_w"bzr log -r 1 mailto:sftp://wtogami@bazaar.launchpad.net/%7Eltsp-upstream/ltspfs/ltspfs-trunk/" should tell you16:08
james_wah, without mailto:, sorry16:08
yaccjelmer: Any idea what this can mean: bzr: ERROR: Revision {('svn-v3-list-QlpoOTFBWSZTWTtPdCgAACpRgAAQAAK3r94gIABIbVT1Mj0QeptEEpAAANMcdP3o3SqXf2KNSpL4ShxMTeA8adCslybHoqgxGgqoZA-LuSKcKEgdp7oUAA..:3e2713fb-81e7-48d5-8ee4-88d6b0cf85af:trunk%2Flogs:44',)} not present in "<bzrlib.knit.KnitGraphIndex object at 0x8c3db6c>".16:09
warrenjames_w, seems to be OK16:09
warrenjames_w, so far I've only upgraded two of our smaller repos, I'm afraid what will happen with our larger repos...16:09
james_wwarren: could you pastebin the relevant part of ~/.bzr.log please?16:10
warrenjames_w, uh... where would that log go?16:12
warrenoh, i see.16:12
warrenjames_w, oh damn, it was a traceback16:13
james_wI'm interested in all of the output for that command, so before the traceback as well please.16:14
warrenjames_w, http://people.redhat.com/wtogami/temp/bzrcrash.txt16:17
james_wwarren: can you file a bug with that information please? It looks pretty serious to me.16:19
james_wthough it may be harmless, but it's not a good thing to happen.16:19
warrenjames_w, this is bzr-1.1 because somebody here yesterday said it should be fine.  should I use 1.3?16:20
warrenjames_w, I don't know where/how to file bugs16:21
james_wwarren: https://bugs.launchpad.net/bzr/+filebug16:22
james_w1.3 may have it fixed I guess, would you be able to try that?16:22
warrenI can upgrade16:22
warrenjames_w, should I revert my launchpad repo?  how?16:23
warrenjames_w, is there a way I can check the integrity of my repository?16:25
warren[warren@newcaprica ltspfs-trunk]$ bzr info16:27
warrenStandalone tree (format: unnamed)16:27
warrenwhat does unnamed mean?16:27
james_wbzr check is for checking16:28
warrenjames_w, if I can revert my repo, I can test 1.3 to see if the same problem happens.  How do I revert it on the launchpad server?16:29
james_wyou would need to ask a launchpad admin I think.16:30
warrenjames_w, if bzr check doesn't complain I shouldn't worry?16:38
james_wwarren: correct16:38
warrenok16:39
james_wbut please still report it, as even if it doesn't cause a problem it is still worrying for users16:39
ubotuNew bug: #207201 in bzr-svn "bzr branch against https svn url breaks" [Undecided,New] https://launchpad.net/bugs/20720116:41
jelmeryacc: hmm, sounds like you hit the same problem that spiv was seeing16:43
yaccjelmer: what can I help to debug it?16:44
yaccguess the fact that I get no branch means that I cannot run bzr check on it ;(16:45
jelmeryacc: not sure, I should probably try to reproduce it first16:47
yaccjelmer: I can retry it it with -Dcommit?16:47
jelmeryacc: this is a regression in the 0.4 branch btw16:47
jelmeryacc: can you perhaps confirm this problem doesn't occur with 0.4.9?16:48
yaccjelmer: how can I get the needed versions via bzr?16:49
jelmeryacc: the 0.4 branch should have a bzr-svn-0.4.9 tag16:49
yaccI have branches of bzr-svn stable and bzr.dev on my laptop, so I was thinking along the idea of not apt-get installing the revisions you want me to try ;)16:49
jelmeryacc: you can update to bzr-svn 0.4.9 by running something like "bzr pull --overwrite -rtag:bzr-svn-0.4.9" I think16:50
yaccjelmer and how do I switch it back to have the newest revision?16:53
yaccbtw, you have forgotten to tag 4.9, 0.4.7 is the newest one.16:54
james_wjelmer: nice job on the performance improvements.16:55
jelmerjames_w: thanks16:56
=== kiko-fud is now known as kiko
ubotuNew bug: #207211 in bzr "upgrade --pack-0.92 sftp:// failed (but worked...)" [Undecided,New] https://launchpad.net/bugs/20721117:03
barryhello folks!  i have some shelved changes that no longer apply cleanly to the working tree.  i don't want to lose my shelved changes.  what's the cleanest way to view or merge them?17:04
barrywhat will bzr unshelve --force do?17:04
james_wthanks warren17:04
james_wbarry: I believe it will run patch such that it leaves the .failed files around or whatever they are called.17:06
ubotuNew bug: #207216 in bzr ""bzr tags" should take URL argument" [Undecided,New] https://launchpad.net/bugs/20721617:06
james_wi.e. it will apply the hunks it can, and those it can't will be left for you to merge by hand.17:07
barryjames_w: ok, i can handle that :)  thanks!17:07
* barry gives it a try...17:07
=== pmezard_ is now known as pmezard
barryokay, unshelve --force doesn't change the shelve.  is there a way to manually discard the shelve, since i don't need it any more?17:09
james_wit will be a subcommand of "shelf"17:13
james_wI suspect "shelf delete"17:13
james_w"shelf delete PATCH"17:13
james_w"shelf ls" will give you the name.17:13
barryjames_w: thanks!17:15
jelmeryacc: strange, I don't see the tag here either17:17
fullermdMmph.  Do we really want to say "straight-jacket" in the Guide?17:17
jelmeryacc: I assumed that "bzr merge" brought them in17:17
jelmerI don't have my tree here at the moment17:18
jelmerbut I'll see if I can fix that later tonight17:18
jelmeryacc: for now, please use the 0.4.9 tarball17:18
yaccjelmer: will take some time, have to go hunt the family dinner.17:19
james_wfullermd: in reference to another system?17:20
fullermdWell, the usage I saw was in reference to centralized development patterns...17:20
james_wI would prefer not to, but I don't think it's necessarily that bad.17:21
fullermdOh, I don't mean conceptually or tone-wise.17:21
fullermdI mean that it's a really common misspelling, and it seems actually sufficiently common that some places accept it, but it always looks crappy to me.17:21
james_wah, I never knew how it was spelt.17:22
rexbronhello, would anyone be able to tell me the best way to merge two branches (or working trees) via bzrlib?18:44
* rexbron also thinks this would be a good section on the Integrating with bzr page on the wiki18:45
james_wit would, yes18:45
james_wmy first guess is WorkingTree.merge(other_branch), but I'll have to look18:46
james_wclose18:46
james_wfrom bzrlib import workingtree18:47
james_wfrom bzrlib import branch18:47
james_wother_branch = branch.Branch.open('wherever')18:47
james_wtree = workingtree.WorkingTree.open('wherever')18:47
james_wother_branch.lock_read()18:48
james_wtry:18:48
james_w  tree.lock_write()18:48
james_w  try:18:48
james_w    conflicts = tree.merge_from_branch(other_branch)18:49
james_w  finally:18:49
james_w     tree.unlock()18:49
james_wfinally:18:49
james_w  branch.unlock()18:49
james_wyou can then do something with conflicts, let me look what it is18:49
rexbronjames_w: does tree get locked automatically?18:49
rexbronsorry18:49
rexbronI forgot the lock_read() was for tree18:50
james_wconflicts is a number, so you can just check for > 018:50
james_wif you need to know what they are, ask the tree18:50
james_wmerge_from_branch can take a revision to merge, otherwise it just defaults to the tip of other branch.18:51
rexbronok thanks18:55
rexbronjames_w: the workingtree method rever is undocumented, but i think I can appy similar logic. Could you tell me what the old_tree varriable is for?18:58
rexbrons/rever/revert/18:58
james_wit's the tree to revert to I believe.19:00
james_wleaving it as None will mean that it uses the basis tree.19:00
james_wi.e. like "bzr revert"19:00
rexbronjames_w: kk19:01
rexbronjames_w: can revert(filenames) accept a list?19:02
rexbronhey andrea-bs19:03
andrea-bshi rexbron19:03
james_wrexbron: it should be a list19:03
rexbronok19:03
james_wso a single filename should be a list of a single value19:03
james_wI can't remember whether it's [] or None for all files.19:04
abentleyIt's None19:04
james_wah, None19:04
james_wthanks abentley19:04
rexbronjames_w: would it be interchangeable with a set?19:05
james_wshould be I guess.19:05
rexbronI guess it might be worth creating a test case19:05
james_wyep :-)19:06
james_wI don't see why there would be any ordering *required*19:06
james_wwhether the current implementation assumes it or not I'm not so sure about.19:06
rexbronjames_w: I am working on an existing codebase that uses sets, I am not sure atm if I would be able to use lists instead19:07
rexbronI could always just filenames=list(set)19:08
abentleyrexbron: "best" way to merge depends on context.  WorkingTree.merge is probably the simplest.  merge.Merger.from_revision_ids is the most powerful.19:08
rexbronabentley: In my case, I just need to merge the latest revision19:08
lifelessrexbron: A set should be fine20:04
rexbronlifeless: cool20:04
awmcclainHi all... anyone have a rough sense when the smart server will accept -u -p ?20:19
james_wawmcclain: sorry, can you explain what you mean by that?20:23
awmcclainjames_w: So, right now I'm using bzr with capistrano to manage our entire server farm. RIght now I'm sharing our repo via http:// (since I don't want to automatically create and setup new SSH key for each new machine). The http:// is restricted by domain, but we're running into DNS propogation issues for new boxes. Long story short, I'm waiting for a time when I can just pass in a user/password via command line to the bzr server.20:26
james_wah, so you want an authenticated smart server over bzr://20:26
james_w?20:26
malepthi, does anyone know when the PPA is going to be updated for bzr/bzrtools 1.3?20:26
awmcclainExactly!20:27
james_wmalept: I don't know, sorry, what release are you running?20:27
james_wawmcclain: I know some people are nervous about adding authentication to the smart server20:27
awmcclainReally, I'm just wondering if that's in the roadmap.20:27
awmcclainBecuase they feel that bzr+ssh:// handles it fine?20:28
james_wI'm not sure what the reasons are20:28
awmcclain+)20:28
james_wI think one may be that getting it right would be hard.20:28
james_was in adding an authentication system opens a whole can of worms20:29
awmcclainAh.20:29
awmcclainOk, I can look into different roads around this then.20:30
james_whowever, it keeps coming up, so I definitely wouldn't rule it out.20:30
awmcclainRight.20:30
james_wif you wanted to take it a step forward then contributing some use cases and design ideas would be good.20:30
awmcclainOh, great. I see if I can work on that this weekend.20:31
awmcclainSeems like the type that could leverage existing design patterns, at least.20:31
awmcclain*type of thing20:31
awmcclainMaybe borrow from oAuth. I dunno. I'm talking from a point of naîveté20:32
awmcclainok, great.20:32
james_wyeah, I'm sure there's stuff we can re-use20:33
lifelessawmcclain: you could use https + password auth20:39
lifelessawmcclain: authentication is tricky to get right; don't want to design our own (duh), but even implementing (say) rfc2617 digest is a pita20:42
lifelessawmcclain: so *if* we can avoid rolling our own, and still satisfy our users: thats a win.20:43
lifelessvila: do we support http/digest ?20:43
awmcclainlifeless: Very true... but could bzr pass in the u/p on the command line?20:43
warrenhow do you bzr push if your only change is a new tag?20:44
awmcclainlifeless: It has to be non-interactive20:44
vilalifeless: yes20:44
lifelessawmcclain: https://user:pass@host/20:44
bob2awmcclain: in the url20:44
lifelessvila: ^ that still works right ?20:44
awmcclainlifeless: You just made my day! Perfect!20:44
lifelessawmcclain: or you can write to the cached credentials file yourself before running bzr20:44
lifelessawmcclain: or you can provide a UI plugin for bzr that will supply passwords from an arbitrary source20:45
vilalifeless: yes20:45
awmcclainlifeless: Or just put it in the url. ;)20:45
lifelesswarren: you may have found a bug20:45
james_wwarren: I think there is currently a bug open saying that you are not able to do that from the UI20:45
* warren vaguely recalls reporting this a long time ago20:45
warrenoh, no, I reported a different bzr tag bug, since fixed.20:46
awmcclainThank you so much for your help, everyone. I say this every time, but, the community and IRC is why I evangelize bzr20:46
lifeless:P20:47
james_wthanks awmcclain20:47
* warren commits a worthless change in order to tag it20:48
james_wlifeless: hi20:49
james_wsorry I disappeared during out fast-import chat.20:49
james_wI'm around now if you want to have another go20:50
warrenlifeless, wow!20:51
warrenlifeless, bzr push did push the tag upstream but it didn't say anything happened20:51
warrenlifeless, so it actually is pushing and pulling tags properly, it just is not informative so the user thinks is isn't happening.20:54
jelmeryacc: the tags for 0.4.8 and 0.4.98 should be present now20:58
jelmerit looks like bzr doesn't add the tags to the master branch when merging but only to the local branch20:58
lifelessjames_w: hi yes21:14
james_whi lifeless21:14
james_wso, you asked about deterministic file-ids or something? sorry, I lost the scrollback.21:18
lifelessjames_w: well21:21
lifelessjames_w: I am concerned about how file ids are being handled by fast-{im,ex}port21:22
lifelessjames_w: your comment on the list suggests some fundamental design issues, and they can lead to extremely poor conversions, or at worst an inconsistent distributed datbase21:23
james_wthe cache is buggy, and I'm going to rip it out and use the parent inventories as you suggested. I wonder if your concerns run deeper than that though>21:24
lifelesswell, the presence of the cache suggests some misunderstanding of what commit has to do (and thus what a converter has to do)21:26
lifelessso I'd rather dig a little deeper :)21:26
james_wperhaps21:26
james_wI'm happy to do that, as I'm sure we'll get a better system out of it.21:27
lifelesshow do you allocate file ids in import revisions ?21:28
james_wcurrently the cache looks up based on the path and returns a file-id if any previously imported revision has that path, otherwise it generates a new random id.21:29
james_wthat is buggy for separate branches as I explained, so the alternative is to have a per-branch cache, or to just use the parent inventories21:30
james_wthe former means that a file can be deleted and resurrected, which I'm not sure is a desirable property21:31
mc__is it possible to push over http?21:32
james_wmc__: not unless you have the smart server set up for http, or the webdav plugin.21:33
mc__hm alright, we have bzr installed on our vserver. we 2 core devs push over sftp. someone else made some changes. he does not have ssh access to our server. how can he send us his changes?21:34
james_wbzr send --mail-to your-email21:34
james_wthen you can save the attachment and run "bzr merge attachment"21:35
james_wcheck the results, commit and then push21:35
mc__does that require smtp/sendmail on the server where bzr is installed?21:35
james_wno, he's emailing you21:36
lifelessjames_w: per branch cache would be buggy, because fastexport streams can represent renames :>21:36
mc__so he needs to have smtp installed on his machine?21:36
james_wso you can receive it on your workstation, save it there, commit there, and then push to your central server21:36
james_wmc__: he needs an email client.21:37
james_wit will use the default linux or windows client, or can be set to certain other clients21:37
james_w(mac as well I think)21:37
james_wlifeless: it may be possible to avoid problems there, but I don't know the ordering constraints on the stream well enough to say whether it will always be avoidable.21:38
james_wlifeless: but the parent inventories should be the easier solution anyway21:39
lifelessyup21:39
mc__alright,thank you21:39
james_whowever we still have the issue that we are importing in to a file-id based system from a stream that isn't based on file-ids, and which comes with recommendations to not generate rename entries.21:40
james_wso I think we need some rename detection somewhere along the line.21:40
james_wmc__: no problem. Please feel free to ask if you have any more queries.21:40
lifelessjames_w: why ?21:42
lifelessjames_w: or to put it another way, we don't do rename detection for cvs. why should we do it for git ?21:43
james_wI think we should do it for all systems.21:43
james_wgit is currently the least likely to be imported this way I think.21:43
james_wit's just that the documentation says something like "add and delete is just as efficient for the importer as rename entries, so use the former"21:44
lifelessso file a bug21:44
james_wso, it's possible the exporter will discard information.21:44
james_wthat's true, I'll bring it up with Shawn.21:44
lifelesssaying that its not true for all importers; exporters should not discard information they don't have to21:45
james_wyep21:45
lifelessas for applying heuristics during import conversion; this precludes any opportunity for incremental or repeatable imports21:46
lifelessunless some very hairy tricks are pulled (ask jelmer about svn mappings and revision ids)21:46
james_wI'm not sure that's entirely true is it?21:48
james_wit would require that the import heuristics be stable across releases though21:48
lifelessit requires they be stable forever for the same source tree21:49
lifelessforever is a long time21:49
james_wyes, which is a big commitment21:49
james_wI agree with your argument.21:49
lifelessI have a negative aleph-nought I prepared earlier for voting on this commitment :)21:49
james_w:-)21:50
james_wso, that leaves bzrlib, but I'm a long way away from trying to put it in there.21:50
lifelessnow, at some point it may be worth doing; in which case we break existing imports and do mapping versioning21:50
lifelessor we add heuristics to the deterministic stuff we already have (and there is no reason we can't do this). file ids are a tool not a straight jacket21:51
spivlifeless: thanks for the review of the protocol version query change.  Do you think that I should deprecate Transport.get_smart_client now?21:51
lifelessspiv: With Extreme Prejuidice21:52
spivlifeless: excellent :)21:52
spivlifeless: thanks21:52
abentleylifeless: Does that mean yelling racist insults at it while deprecating it?21:54
mw-homedoes anyone know how I could use vimdiff with bzr diff?21:56
abentleymw-home: bzr diff --using vimdiff21:56
abentleyThere is also a vimdiff plugin.21:57
james_wlifeless: Repository.get_revision_graph21:58
mw-homeabentley: that failed.21:59
mw-home$ bzr diff --using vimdiff templates/administer/myaccount.kid21:59
mw-homebzr: ERROR: no such option: --using21:59
mw-homedo i need the vimdiff plugin first?21:59
lifelessjames_w: just nuked it, what about it ?21:59
abentleymw-home: What version of bzr do you have?21:59
james_wyou said there is no replacement, but is the replacement .get_graph() and use graph methods?21:59
mw-home1.0.021:59
abentleyIt was added in 1.121:59
lifelessjames_w: there isn't a direct replacement22:00
mw-homeoh, whoops22:00
abentleyBut you can use the plugin instead.22:00
mw-homeok, now i will learn how to use plugins.22:00
lifelessjames_w: get_graph().get_parents_map returns ghost parents22:00
james_wlifeless: but it should be graph based now right?22:00
james_wI'm just interested in what the recommended way to get history information is.22:01
lifelessjames_w: same as its been since 0.9x22:01
lifelessjames_w: repository.get_graph()22:01
mw-homehow do i install a plugin?22:01
james_wgreat. I've not dealt with this sort of thing until recently, I've only used the highest level stuff.22:02
james_wlifeless: thanks for the clarification.22:02
mw-homeignore me.22:02
maleptjames_w: wrt to your PPA distro inquiry, I'm running Feisty. (sorry about the delayed answer...was AFK)22:03
mw-homeshould i checkout or branch a plugin?22:03
james_wmalept: that's cool, was just wondering if you were on hardy, as that will hopefully get a direct update soon.22:03
maleptjames_w: yeah...the box in question is a production machine, so it probably won't be upgraded to hardy until may-ish.22:04
abentleymw-home: probably branch.22:04
james_wfair enough.22:04
james_wmalept: hopefully someone will push the updates to the PPA soon.22:05
lifelesspoolie: ^ is 1.3 in the ppa?22:05
mw-homethanks for the help.  I got the plugin working.  plugins are neat.22:08
=== RAOF_ is now known as RAOF
mw-homeI'm not sure I understand how to share a repository over the intarweb.  Do I just set up a repository in the docroot of my webserver?22:20
lifelessmw-home: that will do just fine22:20
mw-homelifeless: but how do i accept inputs?22:21
lifelessspiv: I'm curious, what will22:21
lifelesssource = target = source do ?22:21
mw-homeis that when I also need to allow sftp access?22:21
lifelessmw-home: you have folk publish them themselves, or send them to you with 'bzr send'22:21
mw-homelifeless: wow.  now i get the difference between svn and bzr.  everybody can run their own web-accessible read-only server, and we all pull from each other.22:22
lifelessspiv: I *think* it binds the current value of target to source and that is all22:22
spivlifeless: in python?  It does right-to-left, IIRC, so I think you're right.22:22
spivlifeless: I'm pretty sure it takes the right-most thing, and assigns it to each of the "foo =" parts.  I forget if it does that left-to-right or right-to-left, but I guess it doesn't matter in your case :)22:24
spivlifeless: ah, yes, it does evaluate the right-hand expression, then assigns it to each target left-to-right.22:25
lifelessso if target = source returned the old value of target22:26
lifelessthen that would be a nice one liner :>22:26
spivlifeless: so anyway, yes, in your case it's like you just did "target = source"22:26
spivlifeless: the canonical way to swap two variables is "a, b = b, a".  I'm not sure if that's the fastest. (Ideally the compiler would optimise that idiom, though...)22:28
lifelessclever22:28
oleavr_is there a way to disable bzr-svn integration on a specific branch?22:48
=== oleavr_ is now known as oleavr
jelmeroleavr: "bzr --no-plugins"22:49
igcmorning all22:51
pooliespiv: call now?23:03
spivpoolie: dialling now23:04
PengHaha, it took 5.5 hours to branch lp:~ubuntu-core-doc/ubuntu-doc/ubuntu-hardy.23:11
oleavrjelmer: so there's no way to set some metadata on a branch for that?23:12
bob2what does bzr-svn do when dealing with bzr branches?  I'd've thought it only kicked in when a svn branch was involved.23:13
jelmerbob2: it does23:13
jelmeroleavr: why would you want that, anyway?23:13
oleavrjelmer: in order to have the SVN data (.svn) stored so that I can manage it manually without bzr-svn interfering (I want to handle merging from upstream by hand, typically 'quilt pop -a', 'svn up', 'quilt push')23:18
lifelessoleavr: you might consider looms :P23:18
jelmeroleavr: yeah, sounds like you could use bzr-svn and looms fine there..23:19
jelmeroleavr: if you're running svn up in that directory anyway, why do you care if bzr uses bzr-svn ?23:19
jmllifeless: how do I get a loomified branch such that I get the loom info?23:28
oleavrlifeless: it's a very promising project (TBH I hate quilt, not very usable when at times when you're forced to use a crappy OS), it's just that my first experience involved a major screw-up that was all my own fault, and because it all felt very 'magic' I wasn't sure how I could revert :) (I made a commit in the wrong thread and discovered it a little later) I should've spent some time to read the source figuring out how to do it, but I was runni23:30
oleavrjelmer: well, I've had some bad experiences with the svn integration in the past, so it was just for playing things 'safe'23:31
jelmeroleavr: what sort of things?23:33
oleavrjelmer: when I think about it it wasn't actually with bzr-svn screwing up, just the initial get/branch phase taking ages, patience running out, ditching the integration, doing an svn checkout ready to just handle it myself, and then getting annoyed by bzr-svn thinking it's dealing with a bzr-svn branch..23:42
spivjml: "bzr branch" ought to do it.23:53
spivjml: the loomified branch may need "bzr record" done in it first, perhaps.23:53
jmlspiv: with which bzr version?23:53
spivjml: whatever version, I think.23:54
spivjml: it's possible you're seeing something like https://bugs.edge.launchpad.net/bzr-loom/+bug/20161323:55
ubotuLaunchpad bug 201613 in bzr-loom "pushing looms does not work properly" [Critical,Triaged]23:55
spivjml: or https://bugs.edge.launchpad.net/bzr-loom/+bug/19389323:55
ubotuLaunchpad bug 193893 in bzr-loom "branching over bzr+ssh does not propogate loom threads" [High,Triaged]23:55
jmlhttp :)23:55
jmlbut yeah23:55
lifelessjml: so, this will work:23:56
lifelessloomify + record + branch23:57
jmlok.23:58
jmllifeless: so how do I get the looms for http://people.ubuntu.com/~robertc/baz2.0/shallow-branch?23:58
lifelesswell, the problem there is I'm using push23:59
lifeless:[23:59
lifelessso step 1: fix the push bug; step 2: get me to push using it23:59
lifelessits likely as simple as overriding push and calling self.pull in some manner23:59

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