/srv/irclogs.ubuntu.com/2010/02/25/#bzr.txt

mathricklifeless: nothing wrong with pigs! They're really smart00:00
lifelessRickCogley: to run locally ?00:00
lifelessmathrick: sure; I just didn't mean to say that to poolie, complement or not.00:00
RickCogleyyes, I have some shell and perl scripts which I'm thinking of making available, and I would like to let people download them and use them. But as painlessly as possible on my side. I.e. the latest version is "just there" for people to get.00:02
pooliehello00:02
* bialix waves00:02
pooliehello bialix00:03
pooliedid you actually mean to ping at all?00:03
bialixyou? me? not. lifeless is00:03
=== tomtom is now known as Guest69613
pooliesorry that line was directed to lifeless00:04
pooliejust saying hello to you00:04
lifelesspoolie: hi00:04
lifelessI was confused by your comment not to use fix committed00:04
lifelessI've just reread the guidelines and see now that we've changed our process00:04
poolieyup00:04
pooliei don't think the distinction is reliable00:05
pooliecause things may bounce from review etc00:05
pooliealso launchpad may get rid of the distinction00:05
pooliethere is a thread about it00:05
lifelessare we able to search for 'in progress with commit in a branch' though ?00:06
lifelessI know mpt's opinion on this00:06
lifelessah yes, I thought it was recent00:08
lifelessanyhow, its trivia00:09
lifelessI will adjust00:09
lifelesspoolie: I would like to note though, that in progress is also unreliable, as people can flit from one thing to another00:10
poolieto me 'in progress' ought to mean 'some work has been invested in this'00:12
poolietherefore all else being equal, there is a higher return in finishing it off00:13
pooliejust how valuable the work is, is a bit hard to capture in an enum00:13
lifelessa dial would be nicec00:13
lifelessI think you have it on the spot there00:13
lifelessto me 'fix committed' is 'nearly there'00:13
lifelesswhereas 'in progress' would be 'I think I can'00:13
lifelessif that makes sense00:14
lifeless[I'm not arguing to use F-C, just saying I see the issue and feel frustrated that LP is such a coarse model of how thins work]00:16
Penglifeless: I dunno if it was taken -- it probably was, though. I just don't use it as much anymore. Too many other Pengs around.00:27
poolielifeless: i desire a similar thing for mps too00:28
poolieie to sort them into 'needs lots more work' and 'pp should jfdi'00:28
* poolie is getting back into bug 456077; it's now working but needs to suppress the warning during upgrade00:29
ubottuLaunchpad bug 456077 in bzr/2.0 "MYSQL/BZR P3: bzr doesn't explain it's doing a slow cross-format fetch" [High,In progress] https://launchpad.net/bugs/45607700:30
pooliehappily the tests now automatically detect that the message is printed there and shouldn't be00:30
pooliespiv, hi?00:42
spivHey.00:44
pooliecoffee? :)00:45
thumperpoolie: just had one thanks00:45
spivAlways :)00:45
poolieso00:45
pooliewe could actually have coffee or catch up, if vincent will let you00:46
pooliealso just wanted to see how you were getting on00:46
pooliebialix: i think the import tariff stuff is promising00:47
bialixpoolie: about adding gettext to bzr core00:47
pooliewe can check if we're actually as lazy as we want to be00:47
bialixgettext is loading mo file from disk and parse it00:47
spivHmm.  Today or tomorrow?  Tomorrow would probably work better for me.00:47
bialixpoolie: so we can make it lazy till we need translations actually00:48
bialixpoolie: maybe some sort of lazy_registry will help00:49
bialixpoolie: I need to think about it00:49
lifelesstomorrow avo I can do00:49
lifelessbialix: for gettext, I think lazy is pointless00:49
pooliebialix: is this to avoid loading the .mo file, or loading gettext itself?00:49
lifelessbialix: either we use it, and we'll need it on every invocation, or we don't use it and don't need it.00:49
bialixlifeless: not so fast!00:49
bialixpoolie: to read/parse mo00:50
bialixlifeless: you don;t need gettext when you run status and it prints no results, right?00:50
pooliegood point00:50
bialixtoday bzr has very long startup00:50
bialixcomparing to hg, you know00:50
lifelessbialix: we long stuff even in that case.00:51
bialixmaybe mo parsing won't be significant00:51
poolieright, we want to pull that down, not add to it00:51
lifelessbialix: and some of what we log is stuff that we'd also output under other circumstances00:51
poolieso we need to draw a line as far as what is translatted00:51
pooliei'm not sure that mutter stuff should be00:51
pooliethough that's true there is not a clear distinction between internal and user-facing messages00:51
poolieyte00:51
poolieyet*00:51
bialixno sense to write translated strings to .bzr.log at all00:52
lifelessI agree we want to reduce the startup time; I'm just saying that *if* we start doing translations, we should expect to pay the gettext library load time + mo parsing on 99% of invocations00:52
pooliewell00:52
bialixyou won't be able to understand bug reports :-P00:52
pooliewe should aim to make it fast enough that even if it is loaded, it doesn't kill us00:52
poolie:)00:52
lifelesspoolie: agreed.00:52
pooliemaking the test suite pass under LANG=ru would be nice00:53
pooliei don't think it does now00:53
lifelessmy point is simply that lazy only applies usefully when you *can* avoid work00:53
poolieyep00:53
pooliea bit like caching00:53
lifelessoh, and, also like caching, doing lazy is itself work.00:53
bialixlifeless: actually gettext.py has some cache inside00:53
bialixbut it search the disk anyway every time00:54
bialixit will be slow on windows00:54
bialixwe can just subclass GNUTranslations class and make it lazy to load mo00:54
bialixthen we pay penalty only on each string that should be translated00:55
lifelessI think this is a case for benchmarking00:56
bialixpoolie: btw, about your recent ui changes, we may want to make the note/info metods to write translated strings only to termina;00:56
bialixand english to .bzr.log00:56
poolieinteresting00:56
bialixthis is very important IMO00:56
pooliemaybe00:56
pooliei think we need to detangle the log from the ui a bit more00:56
poolieperhaps logging everything done to the ui makes sense00:56
pooliebut it's still a bit weird atm00:57
bialixI'm not quite understand00:57
poolieso00:57
pooliefor example, some tests that want to know about messages to the user look in the equivalent of .bzr.log00:58
poolieinside the test00:58
pooliethis is a bit weird00:58
pooliesome of the methods in trace.py are to do with logging, and some with user interaction00:58
pooliethis kind of thing00:58
bialixI don't follow00:58
bialixwe should not run tests with real translations00:59
bialixrather with zzz pseudo translations, which was invented by igc00:59
poolieok00:59
poolieat the moment some tests fail just because we expect system exceptions to be in english01:00
bialixgettext is only half of the i18n and l10n01:00
bialixah, yes01:00
bialixOSError stuff01:00
bialixyep, they are done so inside python itself01:00
bialixbtw, this was changed only in 2.501:01
bialix2.4 always prints english01:01
bialixat least for me01:01
pooliei agree we don't want the tests to know about every possible translation01:01
bialixalso there will be desire to localize dates in bzr log01:02
bialixI have no idea how to test such things properly01:02
poolieit will take some creativity01:03
pooliei'm suggesting as a first step we avoid any accidental dependency on english in the tests01:03
bialixor just disable it for selftest01:03
bialixbtw, in qbzr we don't enable gettext when we run selftest01:04
bialixditto for bzr-explorer01:04
pooliejames_w: if there's something you think would be a much better main focus than merge/resolve, please do speak up01:56
james_wI think it has its merits01:57
james_wand is a focus that will bring something to all stakeholders01:57
pooliek01:58
pooliei think so too01:58
poolieif there are particular bugs you can nominate them too at any point01:59
pooliespiv, i'm sure you understand this but it's not quite clear in your recent mails03:04
pooliewhich is that some things like os.read need special handling but can be handled correctly03:04
pooliewhereas some just cannot be done correctly03:05
poolieperhaps clarifying this is less useful than just fixing the bug though :)03:05
spivpoolie: right03:21
spivpoolie: so until_no_eintr is currently correctly handling basically that case for us, read from a pipe03:22
spivUnfortunately it seems all the other uses are broken.03:23
spivThat said, siginterrupt side-steps the whole mess for us quite nicely.03:24
pooliek03:24
poolieit may not work on all platforms03:24
pooliebut it may cover enough of them03:24
spivYeah.03:28
mwhudsonthere are only three platforms anyway these days!03:33
herbteahello all03:34
spivmwhudson: hardy, karmic and lucid?03:34
poolielol03:34
mwhudsonpoolie: not quite what i meant, but that'll do03:35
* fullermd looks disgruntled :p03:35
mwhudsonfullermd: os x is almost like freebsd, right?03:36
* mwhudson runs away and stops trolling03:36
lifelessmwhudson: contagious huh ;>03:36
fullermdDon't mach me hurt you!03:36
poolieactually more seriously perhaps we should only run ppas for them03:36
poolieif that made it any easier03:37
poolieit's probably not much easier though03:37
poolieabentley: i guess you're asleep?03:37
abentleypoolie, hi.03:37
pooliehi03:37
pooliei was just running tests in a bzr 2.0 branch03:37
lifeless2230 or so, I'd guess.03:37
poolieand bzrtools's fail03:37
pooliebecause it checks the version when running the command, not when running the tests03:38
poolieso i was just thinking about this03:38
lifelesspoolie: there is a test_selftest test that fails with bzrtools; its not really bzrtools fault though. I'm sure you are seeing more, I'm just mentioning one that I saw this morning.03:38
poolieit's not really urgent03:38
pooliethis is different03:38
poolieessentially it runs its tests regardless of bzr version, but they can't possibly pass on 2.003:39
poolieso anyhow03:39
poolie- it's interesting not to grumble until someone actually uses the command03:39
pooliekind of cleaner than failing to load03:39
poolie- iwbni this was done through the standard channels, perhaps03:39
poolie- iwbni if the tests also skipped, or refused to load, if the commands aren't going to run03:40
abentleypoolie, I see.  The version mismatch checking is only done with the commands now, because people complained about bzrtools warning them when they were running irrelevant commands.03:40
poolieyeah03:40
poolieit's quite nice actually03:40
poolieperhaps that should be the standard thing03:40
poolieobviously it is a bit more difficult for plugins that act through hooks03:41
abentleyI was just about to say that.03:41
abentleyI guess I can add a version check to the bztools test_suite method.03:41
poolieand return []?03:42
poolie(semantically not literally)03:43
poolieanyhow separately, teddybears, i would like a way to cancel some user warnings systematically03:43
poolieistm it would be clean to give the uifactory a list of ones that have been squelched03:43
pooliethen upgrade() can squelch the cross-format fetch warning for the duration of its run03:43
abentleypoolie, no, I'd probably just emit a warning.  I wouldn't want to interfere with actually testing bzrtools.03:46
lifelessone thing that occurs to me03:47
lifelessif you're doing per command version locking03:47
poolieok, but at least some of the tests can't possibly pass, because they will examine the bzrlib version then fail03:47
lifelessis that you could use the test suite to tell you when commands break, and only change those commands to be requiring new versions03:47
poolieso we could say they are expected to fail03:47
pooliethat would be interesting03:47
poolieat the moment this is the same check across all commands, but applied at invocation time03:48
pooliebut you could do that03:48
lifelessput an attribute on the class; define a base value so most classes don't need to set it, sort of thing.03:48
poolieright03:49
poolieit would be interesting to consider how to do this for other things03:49
pooliein principle you could only complain about bzr-svn when you actually try to use a svn repo03:49
abentleylifeless, it's an interesting idea, but would it be useful?  Most people will not have mismatches, assuming they use packaged versions.03:49
poolieit may be overkill03:50
pooliewhat i would like to get to is to get myself out of the habit of always testing with --no-plugins03:50
poolieby removing snags when they appear03:50
lifelessabentley: it would make it easier for devs to run with plugins enabled during test runs of core03:50
lifelessabentley: s/would/might/03:50
abentleylifeless, so you would disable the tests for a command if there was a version incompatibility?03:51
lifelessabentley: I think gracefully show that the incompatibility is there, rather than hard-fail03:52
lifelessabentley: so to upgrade bzrtools, one would change the version lock, and they would start executing, and failing if there is a problem.03:52
abentleylifeless, yes, but what about the functions used by those commands?  Those typically also have tests, and would not be version-locked.03:52
lifelessabentley: two angles occur to me: How often do they actually break? And perhaps you will get patches.03:53
abentleylifeless, and it's the functions that are likely to be incompatible.  Most of the commands are thin wrappers.03:53
abentleylifeless, breaks have become pretty unusual, both in commands and in functions.03:54
poolieso perhaps you could just relax the maximum-version limit?03:56
pooliein this case i'm actually going back to an earlier version03:56
poolieso if it's marked incompatible, it probably really is03:56
pooliewhich is fine03:56
pooliebut i just want the tests to do something clean03:56
poolielike report a missing dependency03:56
=== [1]herbtea is now known as herbtea
abentleypoolie, I'm thinking of relaxing the limit during test runs.  In my testing 2.0 passes with bzrtools trunk when I do that.03:59
abentleypoolie, I can relax the minimum-version limit, but I canna predict tha futurre, so changing the maximum-version limit is riskier.04:00
poolieyeah it's tough to say if it's better to get some false alarms or to get users complaining about weird attributeerrors when it does go out of date04:01
spivHow about emitting a warning about possible version-mismatch only when an error occurs?04:03
pooliecould be good04:04
spivIdeally only on TypeErrors and AttributeErrors, but probably other kinds will happen sometimes.04:04
spivIt depends on if the breakage is "doesn't even run" or "starts to run then leaves a broken mess"04:05
spivIf the latter can occur, you really do want to bias towards fail early.04:05
herbteahi all, I'm a new bazaar user and I'm using explorer and I hope somebody can answer a question for me04:10
herbteaI've created a shared repository with a trunk04:10
herbteaadded project directory and files from a new project04:11
herbteaso far so good04:11
herbteawhen I click on the Local Changes tab for this repository there is a message " No parent location defined yet", what do I need to do to define the parent location?04:12
spivTypically that's automatically set when you first 'bzr pull', or when you create a branch by doing 'bzr branch URL'04:16
spivI'm not sure that it makes sense to set it for your case, but if you want to I'd guess that pulling from another location would do it.04:16
spiv(I'm not sure how to use explorer to do that, sorry)04:17
abentleypoolie, lifeless, I've made the change in the 2.0, 2.1 and trunk series.04:18
herbteaspiv: thanks for the info. Still not 100% clear on the best process for setting up my project for versioning04:19
poolieabentley: which one?04:20
herbteaspiv: I did a bzr init-repo on a top level dir, then a bzr init on the trunk04:20
herbteaspiv: I then added my proj dir and files to the trunk and did a commit04:21
spiv(I'm a bit curious about why you thought you should set that location?)04:21
herbteawhich location?04:21
spivWell, you asked "what do I need to do to define the parent location?", which suggests you thought you should set it.04:22
herbteayes04:22
spivBut that's a tangent to your current question, so ignore that if you like.04:22
herbteaI'm getting what appears to be an error message in explorer04:22
herbteaexplorer says "No parent location defined yet"04:23
spivThe init-repo, init, add, then commit sounds good.04:23
spivOk, sounds like something that could be improved in explorer.04:23
abentleypoolie, disabling the version check while commands are running.04:24
herbteaso, this is all local, I have a server that I want to be the main project repository, do I simply copy this top level dir I just created to the server?04:24
spivAh, ok.  You can do that, although you'll want to 'bzr remove-tree' on the server afterwards to be tidy.04:25
herbteaok, just the rev history on the server?04:26
spivOr, you can 'bzr init-repo' the location on the server, then 'bzr push' your trunk to server04:26
spivRight.04:26
herbteakewl04:26
herbteausing the locations.conf, is there a way I can specify the parent location of a branch?04:26
spivIIRC it's set in the branch's own .bzr/branch/branch.conf, but it might be possible to set it in locations.conf too04:27
spivIt would be the 'parent_location' option.04:27
herbteathanks, I'll give that a go and see if that clears the error message in explorer04:28
herbteathanks for your help spiv :)04:28
bialixgaryyyyyy04:28
herbteabye all04:29
* bialix -> zzz04:36
=== mordred_ is now known as mtaylor
LeempQuestion: Is there a good private hosting system for bzr? Eg, a software suite you can install that matches some of the feature sets Github and BitBucket provide?05:29
LeempIe, i need it private and not public.. so Launch won't work for me.. sadly.05:30
bob2you can run launchpad yourself if you like!05:32
bob2there's bzr-trac, too05:32
lifelessyou can also pay for private launchpad hosting05:41
lifelessif you want05:41
Leemplifeless: !? They're doing that now?05:44
Leemplifeless: Last i checked, ages ago, they weren't heh.05:44
poolieLeemp, https://answers.edge.launchpad.net/launchpad/+faq/20805:45
pooliesays beta but it's in production05:45
Leemppoolie: Ah, still a bit expensive when compared to Git/HG it seems though05:47
Leemppoolie: Or are they offering different plans eventually/now, than they list in that faq05:47
LeempAnd i wonder if that's per project..05:48
poolieper project05:48
LeempOuch :o05:48
poolienot that it's not per user or per repo05:48
poolieor per project group, i would imagine05:49
poolies/not/note05:49
bob2depending on what project means, that's competitive with github at least05:49
Leempbob2: Well it depends on size i suppose. For me though, a personal small developer, $5/mo gets me 5 projects iirc on github.05:50
bob25 repositories05:50
LeempSeparate issue tracking for each one, etc05:50
Leempbob2: Does launchpad group all the features it provides per repo? or per "project"? .. We're getting cross terms anyway heh.05:51
Leempbob2: Eg, would i still have 5 separate issue trackings, and whatnot, with launchpad? Or only a single issue tracking, for a single "project"?05:52
poolieLeemp: i suggest you mail them or ask in #launchpad05:52
Leemppoolie: Righto, conversation slid that way i guess :)05:53
LeempSo on the bzr side of things05:53
LeempThere's a trac mod, and i can run launchpad myself.05:53
poolieright06:02
pooliespiv, lifeless, can i have a quick review on the ui_factory side of https://code.edge.launchpad.net/~mbp/bzr/456077-cross-format-fetch/+merge/2004106:03
poolieie adding a show_user_warning(warning_id, **) that can be turned off by a flag06:03
spivpoolie: looks ok to me06:07
spivI'll add a slightly longer review to the proposal :)06:08
pooliethanks06:10
RyNy_having a problem branching from LaunchPad06:11
pooliek06:11
RyNy_This is my error06:11
RyNy_bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist.06:11
spivRyNy_: pastebin the full error?06:12
RyNy_Sorry, how?06:12
spivRyNy_: paste it into http://pastebin.com/, then share the resulting URL here06:13
RyNy_Spiv: sorry how do I get more of an error? That's all I see in Terminal.06:15
RyNy_This is the command: bzr branch lp:~pantheon-developers/projectmercury/bcfg2 /var/lib/bcfg206:15
spivRyNy_: interesting, often there's more text than that06:16
spivRyNy_: could you paste the most recent section of you ~/.bzr.log, then?06:17
poolieRyNy_: at a guess your ssh command to connect is not working06:17
pooliewhat does  'ssh bazaar.launchpad.net' do?06:17
RyNy_spiv: there's not anything more in the log file.06:20
RyNy_I also had this error on a different server trying to branch from the same source:06:21
RyNy_ bzr: ERROR: Not a branch: "bzr+ssh://bazaar.launchpad.net/~pantheon-developers/projectmercury/bcfg2/".06:21
PengThat's correct. It's not.06:22
PengThat branch does not exist,.06:23
RyNy_Peng: What am I doing wrong? Is it the ~ ?06:23
RyNy_Peng: If it is any help here is the URL for the project: https://code.launchpad.net/projectmercury06:24
Peng_RyNy_: The only existing branch in that project is lp:~pantheon-developers/projectmercury/trunk (which you can also refer to with the shorthand lp:projectmercury)06:26
RyNy_Peng: Thanks, so the branch doesn't exist. I see that now by looking at the project site at LaunchPad.06:28
RyNy_Question: I suppose if it did exist then it would appear on that URL under the branches tab, right?06:29
PengUh-huh.06:29
RyNy_Peng: Cool. I do see a bcfg2 file at http://bazaar.launchpad.net/~pantheon-developers/projectmercury/trunk/files.06:31
RyNy_Suppose if I were to guess what the correct path should be, it would be http://bazaar.launchpad.net/~pantheon-developers/projectmercury/trunk/files/head%3A/bcfg2/06:32
PengWhat are you trying to do, exactly?06:32
spivCorrect path for what?06:32
PengThose two URLs are for the Loggerhead web viewer running in bazaar.launchpad.net.06:32
spivThat's a correct path for viewing the 'bcfg2' directory of the ~pantheon-developers/projectmercury/trunk branch via the web viewer.06:33
spivBut it's not a valid location to use with 'bzr branch'06:33
RyNy_I'm trying to branch from Project Mercury, which is a high performance Drupal installation. I'm following the install directions, but they broke on that branch command.06:34
Peng"bzr branch lp:projectmercury"06:34
RyNy_You can see the install directions at: http://groups.drupal.org/node/5040806:34
PengWhere are these instructi -- thanks. :D06:34
spivRyNy_: my guess is those instructions are out of date06:35
spivRyNy_: I think someone probably renamed (or deleted?) the ~pantheon-developers/projectmercury/bcfg2 branch06:35
RyNy_I commented where I got stuck. Search on the page for bzr branch lp:~pantheon-developers/projectmercury/bcfg2 /var/lib/bcfg206:35
poolie spiv, could it be that https://bugs.edge.launchpad.net/bzr/+bug/280608 has already been fixed by you?06:35
ubottuLaunchpad bug 280608 in bzr "Stacked-on branch not unlocked when commit_write_group fails on stacked branch" [Medium,In progress]06:35
spivpoolie: it could be!06:36
spivpoolie: off the top of my head, I'm not certain.  I have certainly touched code in that area, and may well have fixed that.06:37
spivpoolie: but I couldn't be sure without trying to reproduce, I think.06:37
RyNy_ubottu: sorry, what that directed to me? Launchpad bug 28060806:38
spivpoolie: I'd guess about 70% likely to have fixed that06:38
ubottuLaunchpad bug 280608 in bzr "Stacked-on branch not unlocked when commit_write_group fails on stacked branch" [Medium,In progress] https://launchpad.net/bugs/28060806:38
ubottuError: I am only a bot, please don't think I'm intelligent :)06:38
spivRyNy_: no, that bug was for me06:38
spivRyNy_: right, I see your comments06:38
spivRyNy_: the simple fact is that there is currently no lp:~pantheon-developers/projectmercury/bcfg2 branch06:39
RyNy_Spiv: ok so I'm not loco, just bad branching instructions?06:39
PengRyNy_: Well, out-of-date instructions.06:39
RyNy_That helps I suppose. Just have to wait for the instructions to be updated or better.06:39
RyNy_Thanks for your help.06:40
spivRyNy_: right.  I expect they were good once, but have gone stale because that branch has gone06:40
spivRyNy_: If I had to guess,06:40
spivRyNy_: I would try either using lp:projectmercury branch instead, and if that fails, using the 'bcfg2' inside that branch instead.06:40
spivRyNy_: but that's just guesswork :)06:40
spivRyNy_: also, the errors you've pasted into that wiki page have the extra text I was looking for before when you first joined this channel.  Argh!  :)06:41
spiv(Even though that turned out to be unimportant)06:42
poolie:)06:42
RyNy_Spiv: sorry the wiki comments were from a couple nights ago. If you were to guess the correct bcfg2 path, what would it be?06:43
spivRyNy_: well, https://code.launchpad.net/~pantheon-developers/projectmercury/ only shows one branch06:44
spivRyNy_: and as you've noticed that branch has a bcfg2 directory (as you can see at the http://bazaar.launchpad.net/~pantheon-developers/projectmercury/trunk/files/head%3A/bcfg2/ link)06:44
spivRyNy_: so there aren't many options; probably those instructions either expect that entire branch, or that subdirectory of that branch, or something that isn't there at all.06:45
RyNy_Spiv: so is the command I'm looking for bzr branch lp:~pantheon-developers/projectmercury/trunk/bcfg2 /var/lib/bcfg206:46
spivRyNy_: I don't know06:47
spivRyNy_: Actually06:47
spivRyNy_: I know it's not that command, because that's not a branch06:47
spivRyNy_: (you can't 'bzr branch' a subdirectory of a branch)06:47
spivRyNy_: You might need "bzr branch lp:projectmercury" /var/lib/bcfg206:48
spiver,06:48
spiv"bzr branch lp:projectmercury /var/lib/bcfg2"06:48
PengRyNy_: Ask the Project Mercury people or, failing that, someone else who knows what bcfg2 is.06:49
spivOr you might need "bzr branch lp:projectmercury /tmp/projectmercury && cp -a /tmp/projectmercury/bcfg2 /var/lib/bcfg2" to just grab that subdirectory06:49
spivOr maybe something else; I really don't know.06:50
PengRyNy_: Try spiv's suggestions first, of course, but you should still report to them that their docs are out-of-date.06:50
RyNy_Cool, on the branches page of their LaunchPad page that is the only branch. I'll contact them again and see if I can get some help.06:50
RyNy_You guys have been very helpful. Thanks!06:51
spivYou're welcome.06:51
Peng:)06:51
=== RickCogley is now known as RickCogley_
pooliespiv, can you suggest anything to https://answers.launchpad.net/bzr/+question/102270 ?07:21
=== RickCogley_ is now known as Rick_Cogley
=== Rick_Cogley is now known as rickcogley
=== rickcogley is now known as RCogley
=== RCogley is now known as RickCogley
vilahi all !07:25
* fullermd waves at vila.07:25
vilafullermd: \o_07:26
fullermdvila: BTW, fix to paramiko port committed {to,yester}day, so the unadorned port won't break with setuptools.07:26
fullermdNow if only a new version of paramiko would be released that didn't crap on pycrypto...07:26
vilafullermd: good to know !07:29
vilaI dislike that kind of workaround otherwise as I tend to forget.... what was I speaking about ?07:29
fullermdEh?  Who're you?07:29
spivpoolie: sure07:33
spivpoolie: (short answer: post_branch_tip_change + TipChangeRejected)07:33
spivI mean, s/post/pre/, of course07:35
pooliethanks07:35
* poolie fixed a bug with 7 dupes, that's a nice feeling07:35
* spiv finishes for the day, time to swim07:38
poolieme too07:38
pooliecheerio07:38
pooliehi vila, bye vila07:38
spivpoolie: oh, that looks like a nice bug to have fixed!07:39
spivI might review that later tonight.07:39
* spiv -> really gone07:39
vilapoolie: lol07:39
vilalifeless: pong ?08:21
pooliehi vila09:23
vilapoolie: Are you back or a poolie's clone ? :D09:24
pooliereally here09:24
ronnyhi, where can i get something like rebase?09:24
pooliemy desktop is a bit sad09:24
vilagood ;)09:24
poolieronny: bzr-rewrite09:25
vilaronny: lp:bzr-rebase ?09:25
vilaronny: right, lp:bzr-rebase redirects to https://edge.launchpad.net/bzr-rewrite anyway09:26
ronnyhmm09:27
ronnyi reverted to using diff, pull --overwrite;patch09:28
lifelessvila: I was thinkin we should finish the parallel stuff09:32
vilalifeless: <shudder> I'd love too... What TZ are you in these days ?09:34
lifelessGMT+12 more or less09:34
vilaNZ ?09:34
lifelesswaking early in .au09:35
Kamping_Kaiservery early09:36
vilaAFAIR, your main objection was about compatibility with EC2-like setups, I still have to investigate how I can test that locally (I haven't even look at --parallel=?? damn, bzr help selftest doesn't even mention the possible values :-/)09:37
* bialix waves at vila09:38
vilabialix: _o/09:38
bialix_o>09:39
vilalol09:39
fullermdOffsides.  5 yard penalty.09:39
vilafullermd: I'm affraid neither bialix nor I can undesrtand that :D09:40
pooliei'd like to do something that suggests missing commands be installed from plugins09:42
pooliei think we talked about this before09:42
vilapoolie: with beuno I think09:42
fullermdvila: Oh, it doesn't really mean much.09:43
vilapoolie: AFAIR lifeless and beuno talked about some kind of registry but I now wonder if a bzr-guess-like approach couldn't be easier09:46
lifelessthe registry is built09:50
lifelessjust needs populating09:50
lifelessThats why I wrote the plugin metadata scanner09:50
lifelessin principle, all you need to do is:09:51
lifeless - write a plugin which hooks command not found (like -guess does)09:51
lifeless - give it a static dict of metadata09:51
lifeless - write a script to analyse the plugin metadata for as many plugins as you can get your hands on and shove it into that dict every now and then,09:51
lifelessvila: yes, that was my main objection.09:52
lifeless[parallel]09:52
poolieyeah09:56
pooliethough {'rebase', 'https://launchpad.net/bzr-rewrite'} would solve 50% of it ;-)09:57
lifelesssure09:57
lifelessI would support someone starting that way09:58
lifelessthough bzr branch lp:plugin-info is pretty easy too09:58
lifelessI'd finish it off myself, but its not top of my TODO pile09:58
Kamping_Kaiserwonder why pulling lp:bzr on consecutive days can give me file conflicts10:09
* Kamping_Kaiser blames rouge pixels10:09
bob2any local diffs?10:19
Kamping_Kaisernope.10:26
Kamping_Kaiseri'm doing an 'mr up', and theres almost always 1 or 2 bzr repos conflict out (or not apply their changes). i've not dug into mr to discover if it has a timeout of some sort on doing updates10:26
Kamping_Kaisereven with an update, i find it odd to wind up with conflicts10:27
bob2ah, not bzr itself?10:27
Kamping_Kaisertodays conflict was lp:bzr10:27
Kamping_Kaiseri don't know how bzr is called by mr to do the update though10:27
johnfIs there an easy way to have the working tree updated on the server when using bzr+ssh where all the work is done server side?10:56
vilajohnf: lp:bzr-push-and-update11:02
johnfvila: I just realised that it does actually do what I want. I misread it before, thanks11:02
johnfvila: isn't that client side?11:24
vilajohnf: it is11:25
vilaoooh, you mean you want the tree to updated automatically like with some hook ?11:25
johnfI was after something that worked on the server so that I don't have to reply on my users having a plugin installed11:25
johnfyes11:25
vilahmm11:25
johnfor even it could just push on the server to a different location11:25
johnfbut somewhere on the server I want an up to date working tree11:26
johnfmaybe I can get automirror to do what I want11:27
vilacould be11:27
vilaI don't know about pre-canned solutions for that myself, but others may11:27
gioelehello13:17
bialixhello13:23
jmlhi14:39
jmlI'm writing a plugin14:39
jmlit's designed to replace a hook that Twisted is using to require all trunk commits to add "news fragment files"14:40
jmlI figure that pre_change_branch_tip is the right kind of hook14:43
jmlbut I'm not sure whether in that hook I should check each new revision individually, or whether I should check the result of the whole14:44
Lo-lan-doHi all14:52
Lo-lan-doRemind me again how I fetch ghost revisions from another repository that has them?14:52
jelmerLo-lan-do, bzr fetch-ghosts15:15
Lo-lan-doAha, thanks.15:17
jelmerjml: I'm not sure I understand your question correctly15:18
jelmerjml: but it'll be called only once if you pull in a lot of revisions into mainline, for example15:21
abentleyjam: around?15:43
muffinresearchon the subject of pre_change_branch_tip is there an easy way of introspecting the type of change made e.g, push, commit, uncommit etc?15:45
muffinresearchsorry meant post_change_branch_tip not pre15:46
jelmermuffinresearch, you can register to individual hooks for those15:46
muffinresearchjelmer: This is running on the server rather than the client.15:47
lifelessthe server doesn't know in that case15:47
jelmermuffinresearch: does post_change_branch_tip run on the server ?15:47
lifelessjelmer: yes15:47
jelmerah, nice15:47
lifelessjelmer: (another reason to use it in zeitgeist :P)15:48
jelmerlifeless, actually for zeitgeist you'd want client side hooks since that's where your zeitgeist daemon is running15:49
lifelessjelmer: that hook runs on both sides15:49
lifelessI was meaning if you push to your laptop from somewhere15:49
jelmerah, right15:50
muffinresearchRight now I'm looking at the revnos to work out if it's a commit which feels a bit clunky.15:52
=== salgado is now known as salgado-lunch
mathrickjelmer: poke?16:00
jelmermathrick, hello16:00
mathrickdid you see the crasher about map.read() not being a method I ran into yesterday?16:00
jelmeryeah, that'd already been fixed just not pushed yet16:01
jelmersee lp:dulwich16:01
mathrickah16:01
mathrickgood then16:01
mathrickand the other bug about annotate? This one I filed properly in launchpad16:02
mathrickhttps://bugs.launchpad.net/bzr-git/+bug/526792 this one16:02
ubottuLaunchpad bug 526792 in bzr-git "Revision not present error in annotate" [Undecided,New]16:02
mathrickpoolie said it looked like a bug that's been fixed already in bzr itself, but I'm pretty up to date16:02
* mathrick notes he still doesn't understand how the new package structure for bzr is supposed to work, so far it seems to mean no new versions for karmic and no gains16:03
jelmermathrick: that looks like a bzr core bug to me16:09
mathrickok, how do I diagnose it then?16:09
jelmermathrick, what do you mean with new package structure?16:12
mathrickthe thing where PPA no longer gets packages16:12
mathrickI think it's supposed to be replaced by main repo uploads, except that I get none in karmic16:13
mathrickso overall I'm left out in the cold16:13
jelmermathrick: I think Gary has just fixed the PPA16:17
mathrickoh, lemme take a look16:18
mathrickjelmer: I might be confused, but last time I complained about it, I got told it was in the middle of a policy change and there was a thread I didn't have the time to read properly16:19
jelmermathrick: My understanding was also that the idea was to just have recent versions of bzr in backports for older Ubuntu releases16:20
jelmerbut I'm not involved in that part of Bazaar, so I'm not sure what the status or exact plans are16:20
jelmerpoolie should know more, we should ask him when he's back16:22
mathrickright16:22
mathrickmathrick@hatsumi:~/elisp/dist/dvc$ bzr log lp:bzr -r 4797.19.2..-116:22
mathrickbzr: ERROR: Start revision not found in left-hand history of end revision.16:22
mathrickhuh?16:22
mathrickwhat does that mean?16:22
mathrickit means it wants me to say -n0, but that's a crappy error message16:23
jelmermathrick, please file a bug16:24
mathrickyeah, doing that now16:24
vilamathrick: please explain what you were trying to achieve with that command16:25
jelmermathrick, thanks16:25
jelmervila: do you happen to know what the status/plans for bzr in the backports for older Ubuntu releases is?16:25
mathrickvila: see everything that happened on the main bzr branch since 2.1.0 got released16:25
mathrickI started with tag:bzr-2.1.0 and that's the revision it corresponds to16:25
vilajelmer: AIUI, it's hapening. slowly16:27
jelmermathrick: you should also be able to just use tag:2.1.0 rather than the version number16:27
mathrickjelmer: I did that, but thought the error was because of that at first16:28
jelmermathrick: although admittedly that isn't an excuse for giving such a bad error message16:28
mathrickwhich is why I switched to the explicit revno16:28
mathrickbut that doesn't help anything, since that's completely not what bzr was complaining about16:28
jelmervila: ah, thanks. This is mainly waiting for SRU's to get approved?16:28
vilathe bad error message is a consequence of an optimization... abstraction leak ftl :-/16:29
vilajelmer: that's what I understand yes16:29
mathrickwhy does it error out when I want to start with a merge anyway?16:32
mathrickvila: oh16:32
vilamathrick: if you have a up-to-date bzr.dev, 'bzr missing lp:bzr/2.1' will better answer your question I think16:32
mathrickI don't, which is why I didn't do it locally16:33
mathrickI love that bzr lets me ask questions about remote repos16:33
mathrickand I get annoyed each time git tells me I don't need that because it's not as "efficient"16:33
mathrickvila: so there's no way to give two explicit locations to bzr missing?16:35
* mathrick thinks absolutely everything should accept a location or -d16:35
vilamathrick: the only trick I can think of then is using 'bzr qlog lp:bzr/2.1 lp:bzr' :-/16:35
mathrickthat's such a boon when trying to nagivate a forest of branches you need to find a specific change in, but don't want or need to download16:36
vilamathrick: please meet bialix about generic -d :-D16:36
mathrickheh16:36
mathrickcan I file a bug about it, or is there one already?16:37
vilamathrick: note that the qlog trick allows you to navigate at will and should clearly shows what each branch is missing from the other16:37
mathrickyeah, a browser in this situation is probably the best option16:38
mathrickbut the point stands16:38
mathrickseriously, operating on arbitrary locations is to bzr what rebase -i is to git16:38
vilamathrick: I don't remember of hand, if you have good arguments, feel free to file a new one, it's sometimes easier to de-dupe16:38
mathrickie. the reason to switch16:38
vilamathrick: I agree with -d, I think it could be implemented quite easily but it may require checking all commands for consistency16:39
jelmermathrick: did the annotate error occur with a recent version of bzr? what does "bzr check" say?16:42
mathrickspeaking of killer features, it should be mentioned in bold on the "reasons to switch to bzr" page16:42
mathrickjelmer: 2.1.016:42
mathricklemme try16:42
mathrickhttps://bugs.launchpad.net/bzr/+bug/52787816:49
ubottuLaunchpad bug 527878 in bzr "All commands should accept an explicit location or -d" [Undecided,New]16:49
mathrickjelmer: http://pastebin.com/2mhRe15K16:52
mathrickbtw, it's a colocated repo, that is I'm using bzr-colo with it16:52
x_dimitrihow does one set one's identity per banch using qconfig?16:52
jelmermathrick: does bzr reconcile fix it perhaps?16:53
mathrickI can try16:53
mathrickwhat's "inconsistent parents" btw?16:53
mathrickhmm16:53
jelmertext revision parents that aren't set correctly16:53
mathrickI think it just got confused16:53
mathrickhttp://pastebin.com/aFEbpfbM <-- is that supposed to happen?16:55
mathrick~/Dev/ is my shared repo16:55
jelmermathrick: that looks ok16:59
jelmermathrick: Does annotate work now?16:59
mathricknope, though I'm hitting several bugs at once it seems16:59
mathricknope, same bug, and a couple of other ones17:00
jelmermathrick: what other ones?17:02
=== beuno is now known as beuno-lunch
mathricksorry, apparently I need a new battery for my laptop17:25
mathrickdid anything happen since <mathrick> nope, same bug, and a couple of other ones ?17:25
jelmermathrick, yeah, I asked what other bugs you were hitting?17:32
mathrickjelmer: ah, the impossibility of annotating a file that's not currently in the working tree (ie. removed or renamed)17:32
jelmermathrick, doesn't -r allow you to do that?17:33
mathricknope17:33
mathrickjelmer: http://pastebin.com/6VkcBi8J17:38
jelmerdoes bzr check still report errors?17:38
GaryvdMmathrick: Hmm annotate -r  does not work on a deleted file. Thats a bug. qannotate works though.17:39
mathricksec17:39
mathrickGaryvdM: oh, interesting17:40
mathrickjelmer: yep, still 201 inconsistent parents17:40
mathrickwhich I still don't quite understand what are17:41
jelmermathrick: "bzr reconcile" should fix those..17:41
mathrickbut apparently it didn't :\17:41
mathrickI did it again, just to be sure, and it still didn't fix anything17:45
mathrickand apparently I can't clone from it either17:47
mathrickthough curiously enough, I can branch within the colocated workspace17:48
mathrickso it might have something to do with the colocated branches, bzr branch . /tmp/test errors out with revision not present, but bzr branch colo:trunk /tmp/test works17:49
=== salgado-lunch is now known as salgado
ubuntujenkinsHi guys I am working with the ubuntu manual project and we are going to capture screen shots for all 40 languages that it is translated in. We are in the process of devleoping a program to deal with them. We were thinking of setting up a bzr branch to with subfolders for each language and within those one for each chapter. How ever we would like our program (quickshot) to only pull the folder for the relevant language. is18:15
ubuntujenkins this possible? or will I have to make forty branches?18:15
mathrickubuntujenkins: AFAIK, no, at this point it's not possible to pull a partial repo18:15
mathrickit's a requested feature, but it's not trivial to implement in bzr, which is fundamentally organised around the notion of the tree as the atomic unit of change18:16
ubuntujenkinsok thanks mathrick that was a very fast response. forty branches it is18:16
mathrickubuntujenkins: nested branches is the name of the feature that'll eventually lead there, but it's still not there to be enabled by default18:17
ubuntujenkinsdo we know when it will be avalible?18:17
=== beuno-lunch is now known as beuno
fullermdMmmm.  I think that's slightly misleading...18:18
mathrickfullermd: if it is, please correct me :)18:18
* mathrick apologises for any factual errors18:18
fullermdNested branches don't let you pull around parts of branches, they just make it easier to lay out multiple branches.18:19
ubuntujenkinsso i am right I can't do nested branches yet? I wish you could18:19
mathrickah, yeah, but with nested branches + splits it'd be possible to get a layout that pretty mimics the desired effect18:19
fullermdWell, you can manually put one branch "inside" another.  That works fine; just that the "outer" branch doesn't know anything about the "inner" one.18:20
ubuntujenkinsthat seams point less some people have requested that we have it possible to pull one huge branch so that they can compile the manual in multiple languages.18:21
fullermdRight, that's what nested trees would give you; it would automate bundling all 40 (or however many) branches together in a particular layout.18:22
ubuntujenkinsbut I coun't pull them as one big one right?18:23
fullermdWith nested trees, you would be able to.  You can't now, no.18:23
mathrickubuntujenkins: small spelling nitpicks: "however", "pointless", "seems" (seams is a different, unrelated word)18:23
fullermd(well, you can multi-pull to sorta fake it, but I presume you actually mean 'branch' when you say 'pull' there, not the actual 'pull' command)18:24
ubuntujenkinsI ment pull all 40 branches as if it was one big branch18:25
mathrickubuntujenkins: you can't do it now, but you could with nested branches, which are not finished yet18:27
mathrickin other words, no you can't, sorry18:27
ubuntujenkinscool thanks for your help guys sorry I got a bit confused in the middle of all that.18:27
fullermdThere are...   things that it's pointless to say after you /part.18:27
* fullermd goes back into his hole18:28
mathrickheh18:28
* fullermd blinks.18:30
fullermdIt's Thursday?  The heck?  What happened to Tuesday?18:30
vilaalzheimer again....18:31
* fullermd sighs.18:31
fullermdOnce again, the world fails to conform to my expectations.  This is becoming a serious problem.  Somebody needs to be taken to task.18:31
vilahehe18:32
jamhi abentley, sorry I was out this morning with a sick child18:33
jamhey vila18:33
vilahey jam!18:33
abentleyjam, hi.18:38
abentleyI was wondering whether you had any insight into the memory consumption issue I posed about in canonical-bazaar.18:38
jamhaven't gotten to that folder yet, let me go check18:39
jamso... this is with 2.1?18:40
jaminitial branch was specifically cut by about 50% for branching launchpad in the 2.1 series18:40
jamabentley: the other possibility would be to try changing the fetch to be "unordered" rather than "groupcompress"18:41
jamoh, and is this client-side, server-side? local branching?18:41
abentleyjam, this was branching using bzr.dev 5051, from Launchpad to local over bzr+ssh.18:42
jamand IIRC lp uses 64-bit python, which averages 50-100% more memory consumption than 32-bit python18:42
abentleyjam, the memory consumption I experienced was on my laptop which runs 32-bit Ubuntu.18:42
jamabentley: k, so the memory consumption you were seeing was on the client side?18:42
jamand do you know *when*?18:42
jamit could be during fetch, or it could be during building the working tree18:42
jamfor example18:43
jamor if you know what stage of fetch18:43
abentleyIt was steadily increasing during fetch.  The highest I saw was 600m+18:43
jamI *do* know some places that could be trimmed a bit more, but was trying to figure out the tradeoffs18:43
jamabentley: then how did you figure 1.8GB peak ?18:43
abentleyjam: I saw it at 1.8, but it was finishing up, and I can't swear whether it was writing pack files or what.18:44
jamk18:44
jamdo you know if the codebase has large files?18:44
abentleyI do know it was before the message about building a working tree was printed on my terminal.18:44
jamlike say a ~400MB file in there?18:44
abentleyBut the system was thrashing a lot at that point.18:44
jamthe repacking code is specifically a bit wasteful of memory sometimes18:45
jamhence 'unordered' could fix it as it wouldn't try to pack-on-the-fly as much18:45
abentleyI can say the size of the repo is 571 M and the total size of the standalone branch, including working tree is 609M18:47
abentleySo the largest a file could be would be 38M18:47
=== deryck is now known as deryck[lunch]
jamabentley: well, it could be 600M and you just have a whole bunch of 10byte files :)18:47
jamoh sorry, I missed that last part18:48
jamsure18:48
jamseems odd18:48
jamis there a lot of history? (how many revisions, etc)18:48
jamhow wide is the tree?18:48
abentleyjam, it's a conversion from bzr-svn, so the history might be wacky.18:48
abentleyjam, are you able to see the branch page?  If so, you are a "bzr expert" and can download it for yourself.18:50
jamI don't think I am, but I can check18:51
jamabentley: nope, permission denied18:52
abentleyjam: i can mirror it to devpad for you, if it helps.18:53
jamabentley: would make it easier for me to test, yes18:53
jampreferably an exact copy using lftp if you could18:53
jamso that we don't run into 'slightly different pack layout' issues18:54
abentleyjam, I'm using hitchhiker.18:57
jamthat's fine18:57
jamI just mean a mirror of the push side18:57
jamrather than 'bzr branch'18:57
abentleyjam, mirrored to: ~abentley/economist18:59
jamhmm... there only seems to be 1 pack file, is that true on the hosted side?19:05
BasicOSXIs there a way to convert a "bzr co sftp://host/repo" to a "bzr branch sftp://host/repo" ?19:07
jamBasicOSX: bzr unbind19:07
BasicOSXjam:  that's awesome ty19:07
abentleyjam, yes.19:09
GaryvdMjelmer: is this the latest dulwich branch with debian packaging: http://bzr.debian.org/users/jelmer/dulwich/unstable/ ?19:14
GaryvdM(I could not find any others, but it worries me that it is in your user folder, not some where else.)19:16
x_dimitrihow does one do the equivalent of "bzr whoami --branch USER_DETAILS" with qconfig?19:20
GaryvdMx_dimitri: you can't at the moment.19:20
x_dimitriGaryvdM: :-(19:20
GaryvdMx_dimitri: There is bug logged.19:21
x_dimitriGaryvdM: :-)19:21
mathrickspeaking of which, is there something like bzr config?19:23
GaryvdMNope19:23
mathrickit'd be a bit nicer than mucking around with text files, especially for per-branch settings, which require you to type the full path in ~/.bazaar/bazaar.conf19:24
NfNitLoopSo I was watching this talk by Linus to Google about git.  And he seemed to be adamant about the fact that git hashes all of its contents so that it can be verified.  (no disk corruption, no tampering.)19:25
NfNitLoopbzr doesn't do something similar?19:25
NfNitLoopI mean, if I do 'bzr check' and there was corruption or tampering, it'd find it, no?19:25
mathrickNfNitLoop: yes and no19:26
mathrickit hashes everything, but by default doesn't require signing19:26
mathrickso you can't actually *verify* anything unless it's signed19:26
mathrickbut the same is really true for git19:27
mathricklong story short: everything git has, bzr has too19:27
mathrickat least as far as being tamper-proof goes19:27
NfNitLoopOh.  Where does it store these hashes?19:28
mathrickNfNitLoop: bzr actually is a bit better, since git is tied to sha1. So if collision attacks against sha1 are found, like for md5, you're screwed. Whereas with bzr it'd be a matter of providing another hash algorithm to be used19:28
NfNitLoopwhat do you mean you can't "verify" anything unless it's signed?   I just mean verify that someone who gives you version {id} is actually the same as version {id} that you have, or had in the past.19:28
mathrickNfNitLoop: in the repository, it's a property of the changeset19:29
GaryvdMNfNitLoop: It stores them in the repo with the revision properties.19:29
NfNitLoopaah.    And that hash includes the hashes from its parents?19:29
mathrickyes19:29
NfNitLoopawesome.19:29
NfNitLoopYeah, Linus's talk seemd a bit ...  inaccurate in places.19:29
GaryvdMNfNitLoop: you will see it if you do bzr cat-revision -r x19:29
NfNitLoopHe claimed git was the only thing to do that.19:29
mathrickNfNitLoop: git isn't particularly more secure than anything else19:30
mathrickbzr and hg do that, monotone gets even more paranoid19:30
mathrickdarcs hashes too19:30
mathrickreally, it's the easiest way to do it if you're making a DVCS, so I'd be surprised to see anyone else do it differenetly19:30
GaryvdMNfNitLoop: that talk is old.19:30
mathricks/et/t/19:30
NfNitLoopI thought it was given this month.19:31
mathrickGaryvdM: but it was just as untrue when he said that :)19:31
GaryvdMYes19:31
mathrickNfNitLoop: if so, it must be a new one19:31
mathrickthe google talk he gave is, dunno, 1.5 years old?19:31
GaryvdMNfNitLoop: was it the one at google?19:31
NfNitLoopyeah.19:31
GaryvdMMay 200719:32
NfNitLoopOh yeah.19:32
NfNitLoopSomeone only just recently posted it to a blog I read.  (HackerNews).19:32
NfNitLoopso it was dated this month on the blog, but yeah it's from 2007.19:32
NfNitLoopstill, even then some of what he said didn't seem that accurate.19:33
mathrickNfNitLoop: Linus is a prick, to use the technical term, and it's not entirely uncommon to sacrifice accuracy to increase the emotional value of what he says19:33
mathrickso you need to take that into account when you read / listen to anything by him19:34
mathrick*uncommon for him19:34
GaryvdMIs he git? (excuse the pun)19:34
GaryvdM*Is he a git?19:34
mathrickyou could say so :)19:35
mathrickpersonally I think it's a real pity he grew to be the face of much of the FLOSS19:35
mathrickbecause we really have people who are just as smart, and aren't unbearable, obnoxious pricks19:35
NfNitLoopHeh.19:37
GaryvdMJelmer told me that he name git git as a tribute to Andrew  Tridgell.19:38
GaryvdM*named19:38
rubbsI heard he named it after himself... but I could be hearing it wrong19:39
rubbsI've got to learn git for a new job... it seems that you have to use some convoluted workflows to get it to work right.19:40
rubbsthat could just be me too.19:40
mathrickrubbs: nope19:41
NfNitLoopI played around with it a bit because a coworker really likes it.   Much prefer bzr's simplicity/flexibility.19:42
mathrickthat seems to be the essence of Linus's products. You use them the way Linus meant them to be used, or not at all19:42
mathrickeveryone else be damned19:42
mathrickI don't understand why it needs to be so complicated, but it is19:42
rubbsI just don't care for the colocated branches or the index.19:43
mathrickit has some good features, like colocated branches (though they are incredibly confusing if you don't know about them) and rebase -i19:43
mathrickbut we already have bzr-colo and rebase -i is a political issue, really19:44
NfNitLoopMy officemate is reading http://hginit.com/   and trying to figure out why he should bother with DSCMs.19:44
mathrickrubbs: colocated branches are incredibly useful in certain scenarios19:44
NfNitLoopI'm apparently not that great at articulating it.19:44
rubbsNfNitLoop: http://betterexplained.com/articles/intro-to-distributed-version-control-illustrated/19:44
=== deryck[lunch] is now known as deryck
rubbsthat's the article that really convinced me19:44
mathricknamely, when you don't want to / can't afford to reconfigure everything to use a branch in another dir19:44
rubbsalso for Hg, but easily adapted to any DVCS19:45
mathrickNfNitLoop: it's not obvious at first, so it's understandable19:45
rubbsmathrick: oh I'm sure it's useful, and in many ways I can see why, but I don't really need to worry about it.19:46
mathrickNfNitLoop: you can tell him that DVCs are better because make collaboration easy in a way that's natural for humans, not in a way that's somewhat easier for your sysadmin to setup19:46
mathricknot to mention they're easier to setup to boot19:46
ubuntujenkinshow do I merge lp:~ubuntu-manual/quickshot/screenshots-de into lp:~ubuntu-manual/quickshot/screenshots-ump?19:47
mathrickrubbs: sure, I haven't used them until recently, when I had to work on a git project, but then I actually got hooked up, because said project happens to depend on several external config files pointing to the right place, and with colocated branches I can just switch in-place to test if a bug is upstream or the result of my hacking19:47
GaryvdMubuntujenkins:19:48
GaryvdMbzr branch lp:~ubuntu-manual/quickshot/screenshots-um19:48
GaryvdMIf you have not allready19:48
GaryvdMcd screenshots-um19:48
ubuntujenkinsyep I have the branches on my computer19:48
mathrickyou can also say bzr merge lp:~ubuntu-manual/quickshot/screenshots-de -d lp:~ubuntu-manual/quickshot/screenshots-ump19:48
GaryvdMbzr merge lp:~ubuntu-manual/quickshot/screenshots-de19:48
mathrickbut if you have them locally, then just do what GaryvdM says19:49
GaryvdMmathrick: you cant merge into a remote branch19:49
mathrickno?19:49
NfNitLoopmathrick: He's arguing that with merge-tracking in SVN that you can do all of this in SVN too... which I'm not quite sure how to counter.19:49
mathrickyou should be able to19:49
GaryvdMubuntujenkins: resolve conflicts19:49
NfNitLoopother than the fact that it "feels" more natural to create lots of branches with bzr.19:49
ubuntujenkinswell I get the error bzr: ERROR: Branches have no common ancestor, and no merge base revision was specified.19:49
GaryvdMubuntujenkins: commit19:49
NfNitLoopsince it's easier, and doesn't pollute the central repo.19:49
mathrickNfNitLoop: except it's an afterthought for svn, and even svn devs admit it's not quite ready for production use yet19:50
NfNitLoopmathrick: Oh really?19:50
mathrickNfNitLoop: bzr is easier, faster, less buggy and produces smaller trees19:50
GaryvdMubuntujenkins: ah, hold on a sec, let me have a look at the contents19:50
NfNitLoopmathrick: How is it not ready for production use?  That's how we do merges here.19:50
mathrickNfNitLoop: and svn STILL doesn't give you offline commits19:50
mathrickNfNitLoop: it has many failure modes19:50
NfNitLoopmathrick: Right.  He conceded that point.19:50
GaryvdMmathrick: merge needs a working tree, which bzr does not touch if the branch is remote19:51
NfNitLoopmathrick: any idea where I might find a list of those?   *googles*19:51
ubuntujenkinsthanks GaryvdM its suprising how confusing this gets19:51
mathrickoffline commits are awesome, not because you necessarily have to be on a plane all the time, but because it really means you can start a repo absolutely anywhere, at any time19:51
mathrickGaryvdM: ah19:51
mathrickubuntujenkins: you'll get used19:52
mathrickNfNitLoop: with self-contained repos, all I need to share my repo with you is email. I can literally just zip my tree and send it to you, and have done so many times19:52
mathrickand if I ever get on a plane or train, which I occasionally do, I can work on everything I have branched, even if I haven't planned for this19:53
NfNitLoopmathrick: Yep.  He's already agreed that that is nice.19:54
mathrickand most of the time, bzr repos are still smaller than svn's checkouts :)19:54
NfNitLoopBut he's pointed out that everyone says that DSCMs are SOOOooo much better at merging without giving concrete examples of how.19:54
mathricklemme see if I can find it19:54
NfNitLoopand he's claiming that svn 1.5+ basically handle merging well enough now.19:55
ubuntujenkinsbasically screenshots-ump contains a folder for each language, screenshots-de contains a folder for each chapter I need to be able to merge screenshots-de into screenshots-ump/de (GaryvdM19:55
NfNitLoopHell, using bzr is simpler just because it remembers parent/push branches.  having to 'svn merge http://repo/path/path/to/branch/blah" is a pain in itself. :p19:56
mathrickNfNitLoop: btw, I don't know if what I said about hashes and tamper-proofness is true for svn. It's not a DVCs, so it might very well not have that built-in19:56
mathrickNfNitLoop: yeah, that is a good point19:56
GaryvdMubuntujenkins: will you need to merge one lanuage in to another?19:56
mathrickhttp://portal.acm.org/citation.cfm?id=1572196&dl=GUIDE&coll=GUIDE&CFID=77717344&CFTOKEN=95162572 <-- heh19:57
GaryvdMubuntujenkins: to do what you asked, you need to do:19:58
ubuntujenkinsGaryvdm I will have another branch for each language. The idea is they are collated into one giant branch with a folder for each language.19:58
GaryvdMThe one big branch is where you want to end up?19:59
NfNitLoopmathrick: Oh I'm sure it doesn't for svn.19:59
GaryvdMubuntujenkins: to do what you asked, you need to do:20:00
GaryvdMscreenshots-ump/ $ bzr merge screenshots-de -r 0..-120:00
GaryvdMscreenshots-ump/ $ bzr mv  screenshots-de screenshots-ump/de20:00
GaryvdMand commit20:00
mathrickNfNitLoop: another thing is that svn doesn't really look at the whole tree, only at the changed files. So you can actually get unbuildable trees from two tested patches, even though the commits are supposed to be atomic20:00
ubuntujenkinsGaryvdM thanks I will give it a go20:00
mathrickNfNitLoop: that can get very tricky, particularly when you do more extensive merges20:00
GaryvdMubuntujenkins: and after you have done that, look at bzr qlog, which will give you a better understanding of what you have done.20:01
mathrickNfNitLoop: and SVN still doesn't let you commit if you don't have commit access to the repo, which might, or might not be a problem for you in particular. But in general making people unable to version they changes just because they're not blessed is stupid and will eventually come to bite you when you don't expect it20:03
mathrickbecause you brough someone from another team to look at some particular problem, or whatever20:03
NfNitLoop*nod*   being able to commit a change and  then share it regardless of central repo permissions is quite nice.20:08
NfNitLoopbut in the corporate world not exactly desired.20:08
NfNitLoop(shhhh).  ;)20:08
NfNitLoophttp://svnbook.red-bean.com/en/1.5/svn.branchmerge.basicmerging.html#svn.branchemerge.basicmerging.stayinsync20:08
mathrickit's mostly a strawman, because it doesn't influence the central repo in any way20:09
NfNitLoopSo I found the --reintegrate option there and pointed the coworker at it.20:09
mathrickyou just get to collaborate the same way you can speak to each other without going through your manager20:09
NfNitLoopapparently you have to tell SVN which *direction* your merging, and after reintegrating w/ trunk your feature branch can't be merged anymore.20:09
NfNitLoopthat's basically a deal breaker for me, at least.20:09
NfNitLoopyou're*20:10
GaryvdMNfNitLoop: With bzr, you also give merge a direction.20:10
NfNitLoopeh?20:11
GaryvdMBut the not being able to remerge in svn does suck20:11
NfNitLoopyou just say: bzr merge source [dest]20:11
NfNitLoopbut in SVn you have to specify --reintegrate if [dest] is trunk, from which source had been branched.20:12
GaryvdMdest$ bzr merge source20:12
NfNitLoopwhereas bzr figures it out.20:12
NfNitLoopand any other sane DSCM.20:12
mathrickNfNitLoop: oh man, this is cumbersome as hell20:12
mathrickbzr just keeps track of all that for you20:13
mathrickso the whole thing is down to one command: bzr push20:13
NfNitLoopyup.20:15
mathrick"In Subversion 1.5, once a --reintegrate merge is done from branch to trunk, the branch is no longer usable for further work. It's not able to correctly absorb new trunk changes, nor can it be properly reintegrated to trunk again." <-- seriously?20:15
mathrickthat's stupid20:15
mathrickso there you have it20:15
mathrickyou *still* can't merge properly20:15
fullermdWow.  That's special.20:15
mathrickit's slightly less retarded now20:15
mathrickNfNitLoop: so tell your coworker that this kills the most common use for branches: branching out releases and fixing bugs on them while keeping the development in trunk without giving up the bugfixes20:17
mathrickyou normally do it by cd release-1.0; hack hack hack; bzr commit; bzr push20:17
mathrickand presto, trunk has the same fix now20:17
mathrickI can't see how you could possibly do that with the broken svn model20:18
GaryvdMubuntujenkins: were you successful?20:21
ubuntujenkinsGaryvdM yes and no still working on it20:21
ubuntujenkinsGaryvdM I have achived what I wanted to, bzr mv didn't work but I found a way to do thanks for your help20:33
GaryvdMGood20:33
GaryvdMubuntujenkins: did you look at qlog?20:34
ubuntujenkinserm should it be in .bzr? I think I did something wrong as I have no .bzr20:37
ubuntujenkinso I do have .bzr20:38
GaryvdMubuntujenkins: run it in the branch that you did the merge in20:38
GaryvdMscreenshots-ump/ $ bzr qlog20:38
ubuntujenkinsbzr: ERROR: unknown command "qlog" is what I get I have a bad felling :-(20:39
GaryvdMsudo apt-get install qbzr20:39
GaryvdMubuntujenkins: ^ to install it20:39
ubuntujenkinsjust installing it now.20:40
ubuntujenkinswow thats a shiny way of showing the changes  :)20:43
ubuntujenkinsI shall set up another branch and give it ago agian thanks GaryvdM20:44
GaryvdM:-) Hopefully it will help you to understand things better20:44
NfNitLoop(whoops, was afk for a bit)20:55
NfNitLoopmathrick: actually, I'm pretty sure you couldn't do 'cd release-1.0; hack; bzr commit; bzr commit20:55
NfNitLooper, bzr push20:56
NfNitLoopthe trunk would have diverged by then, and a push would complain.20:56
NfNitLoopyou'd have to do a merge into trunk.20:56
NfNitLoopbut yeah, being able to have long-lasting branches that don't break when you do a reintegrate is a good thing. :p20:56
alex-weejhalp! i installed bzr fastimport from launchpad with: "python setup.py install" and it worked, but when i run bzr fastimport or bzr fast-import it whinges about it being an unknown command20:57
NfNitLoopalex-weej: it may have installed under a different Python version's package lib.20:59
NfNitLoopis bzr using the same version of python that 'python setup.py install' used?20:59
NfNitLoop(try python -v ; bzr version)21:00
alex-weeji haven't configured it otherwise -- everything is stock ubuntu 9.1021:00
alex-weej264,  on both21:00
mathrickhmm, is there an env variable to tell bzr not to warn about dumb terminals?21:01
alex-weejdoes bzr have a cache of commands or something?21:01
GaryvdMalex-weej: no, it get's them from the plugins each time it runs21:02
alex-weejdamn this is blocking my work -- anyone have any working way of converting a git repo to a bzr one?21:02
GaryvdMalex-weej: bzr-git?21:02
alex-weejthat can do migration?21:03
GaryvdMYes, you can even push back to git later.21:03
riochI've committed a change but not pushed it, but since then made some more changes. If I undo the commit, will I lose my changes? I want to recommit everything under the one change.21:06
GaryvdMrioch: That will work.21:07
GaryvdMrioch: Just *do not* revert after you uncommit.21:08
tasslehoffHey. I've tried bzr for the first time today, after git-on-windows frustrations. I followed the git-svn example in the docs to checkout trunk and create a work branch. <hack-commit-hack-commit>, then merge changes from work to trunk. In the merge, is it possible to make bzr do the same commits to trunk that I did to work, instead of doing one big commit?21:08
riochI will uncommit, and then commit again, that right?21:08
tasslehoffhmm. did anyone understand that? :)21:08
GaryvdMrioch: Yes21:08
riochthanks21:08
GaryvdMtasslehoff: Yes. do bzr push <svn location>21:09
alex-weejok this is really f***ed up, i just installed bzr-git and now i get bzr git21:10
alex-weejbzr: ERROR: unknown command "git"21:10
alex-weejwhy is bzr doing this to me!? :(21:10
GaryvdMalex-weej: There is no bzr git command, but,,,21:10
tasslehoffGaryvdM: great. this will work if I followed "A Simple Example" from http://doc.bazaar.canonical.com/bzr.dev/en/user-guide/svn_plugin.html?21:11
GaryvdMalex-weej: with bzr-git, you can do bzr branch <url to git branch>21:11
alex-weejif it's a local file, how does it know it's git21:11
GaryvdMalex-weej: Not sure.21:11
GaryvdMI think it looks for a .git folder.21:12
alex-weejdulwich has something to do with git i guess21:12
alex-weejalex@whoosh:~/Desktop/XPRESbzr$ bzr branch /home/alex/Work/Geo-Net/XPRES/Code21:12
alex-weejbzr: ERROR: dulwich.errors.ChecksumMismatch: Checksum mismatch: Expected 6378e115d5922cf04385f515f5b3627b61971843, got 54524545000051b6002d3120340a73686172650021:12
GaryvdMalex-weej: Yes, dulwich is a library that bzr-git uses21:12
alex-weejok so it knows it's a git repo, it's just bailing for some reason :(21:13
GaryvdMjelmer: Any ideas ^21:13
=== salgado is now known as salgado-afk
GaryvdMtasslehoff: Do bzr log/bzr qlog. If you do bzr push, What you see in log will end up in svn.21:16
tasslehoffGaryvdM: thanks.21:16
GaryvdMtasslehoff: Provided what you have has not diverge from the svn branch21:16
GaryvdMalex-weej: that error suggests that the branch is corrupt21:17
alex-weejgit seems to still work OK with it with no warnings21:17
* alex-weej is just pushing git to svn and branching the svn repo instead21:18
GaryvdMalex-weej: I'm not sure then21:18
tasslehoffGaryvdM: ok.21:18
guilhembijam: hello! I have a 425MB file in my shared repo, "repository/uploads/something.reconcile" (I ran "bzr reconcile" yesterday), can I remove it?21:25
alex-weejif i have a branch already in "mybranch" can i just create a folder, bzr init-repo, and copy "mybranch" in as-is?21:35
alex-weejactually that defeats the purpose21:35
alex-weejhow do i do this properly ;)21:35
GaryvdMalex-weej: after you move the branch, do bzr reconfigure --use-shared21:36
GaryvdMin the branch21:37
GaryvdMOr21:37
GaryvdMbzr branch in the shared repo, then remove the old branch.21:37
alex-weejGaryvdM, reconfigure worked fine, thanks21:57
jamguilhembi: yes22:02
jamit is a temporary pack file for the reconcile work22:02
guilhembijam: thanks!22:02
jam'upload' is a staging area22:02
jamso if nothing is actually writing to the repo, the files there are trash22:02
guilhembiok22:03
jami'm surprised it was left behind without us cleaning it up22:03
jamwas there an error while running reconcile?22:03
guilhembithe command did return "0", no error.22:03
guilhembiTomorrow I'll set up a "check -v" job, to verify the state of the repo.22:05
guilhembijam: thanks again. Off to bed.22:05
jamsleep well22:06
x_dimitriI've just done a qdiff on over 50 files. It displays the diff for each file in turn. How do I terminate the entire process without having to go through all the files?22:22
GaryvdMcrtl-c22:23
x_dimitrithat doesn't work22:23
x_dimitriin fact, I've cloed the terminal from which I ran the command22:23
x_dimitri...closed the terminal...22:24
x_dimitrithe qdiff gui keeps popping up for each file22:24
GaryvdMOh - qdiff22:24
GaryvdMdid you do a command line gobbing?22:25
poolfoolIs there a C interface into bzrlib?22:25
x_dimitrigot it. I used ps to find it's parent process and killed that22:25
GaryvdMi.e. bzr qdiff foo*?22:25
x_dimitriGaryvdM: nope, I actualyl ran bzr qlog, then did a diff from the qlog gui22:25
GaryvdMx_dimitri: Thats odd.22:26
x_dimitrihow so?22:26
GaryvdMI don't know why its doing that22:26
GaryvdMx_dimitri: Could you describe the steps to reproduce that?22:27
x_dimitriok, l'll give it a try22:27
x_dimitricommit a couple of new files, perhaps 100 :-)22:28
x_dimitrido "bzr qlog"22:28
x_dimitriin teh qlog gui, double-click on the  line that records the commit22:29
GaryvdMx_dimitri: I get one window for all the files.22:29
x_dimitrihmm...22:29
x_dimitrithats' different...22:30
x_dimitrilet me have a look again22:30
GaryvdMx_dimitri: are you maybe using --using meld or something else?22:30
x_dimitriyes22:31
x_dimitriI'm using meld22:31
GaryvdMAh ok. I know about that, I hope to fix soon.22:31
GaryvdMThe built in diff will open one window.22:32
x_dimitriyup, you're right. Using the builtin diff shows all in one window22:32
x_dimitriwell, at least I know how to stop the 'infinite' windows when using meld22:33
GaryvdMNight all22:59
jamabentley: reply to the list. But basically they have a 300+ MB .sql.gz and a 180MB .sql.gz23:14
jamand it is in --rich-root-pack and not --2a23:14
jamanyway, I'm off for now.23:15
jamBut if they remove those files completely, their repo goes from 570MB to ~30MB, etc.23:15
jasonlifeif I follow the centralized workflow, what is the good way to handle central repo?   After I clone from the central repo and fix a bug in a branch of my local repo, do I have to push the branch to central repo?23:21
GungaDinHi23:24
GungaDinI have one branch which is a checkout of a remote branch... is it possible to reflect changes in the remote branch without committing them, in the other branch?23:25
NfNitLoopHuh?23:26
NfNitLoopYou want to commit directly to the remote branch, but not locally?23:26
spivGungaDin: what do you mean by "changes in the remote branch"?23:27
GungaDinI want the checkout to reflect the remote branch without having to commit all the time and updating in the checkout.23:28
spivOh ok.  It sounds like you don't want to use a checkout at all.23:28
pooliejasonlife, typically you will have a checkout of your central trunk23:28
spivYou just want an ordinary branch that you can do "bzr pull" in.23:28
pooliemerge your feature changes into that, and commit23:28
poolieand then everyone will see them23:29
jasonlifepoolie: Is it normal create branch in central repo? For example, my software periodically release new version.. Do I have create new branch for each version on central repo?23:37
jasonlifeDo I have to23:38
pooliejasonlife, it depends on whether you do bugfix updates to those releases23:43
pooliebut yes, it's probably a good idea to make a new central branch for each release23:43

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